def _set_int(self, commands, name):
if name in commands:<EOL><INDENT>try:<EOL><INDENT>value = int(commands[name])<EOL>setattr(self, name, value)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
set integer value from commands