def get_int_noerr(self, arg):
if self.curframe:<EOL><INDENT>g = self.curframe.f_globals<EOL>l = self.curframe.f_locals<EOL><DEDENT>else:<EOL><INDENT>g = globals()<EOL>l = locals()<EOL>pass<EOL><DEDENT>try:<EOL><INDENT>val = int(eval(arg, g, l))<EOL><DEDENT>except (SyntaxError, NameError, ValueError, TypeError):<EOL><INDENT>return None<EOL><DEDENT>return val<EOL>
Eval arg and it is an integer return the value. Otherwise
        return None