Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: Changeset: r78102:a2f74ab95bf7 Date: 2015-06-14 23:51 +0200 http://bitbucket.org/pypy/pypy/changeset/a2f74ab95bf7/
Log: Fix one boolean test diff --git a/lib_pypy/_tkinter/app.py b/lib_pypy/_tkinter/app.py --- a/lib_pypy/_tkinter/app.py +++ b/lib_pypy/_tkinter/app.py @@ -439,8 +439,8 @@ tklib.Tcl_Free(argv[0]) def getboolean(self, s): - if isinstance(s, int): - return s + if isinstance(s, (int, long)): + return bool(s) if isinstance(s, unicode): s = str(s) if '\x00' in s: @@ -452,7 +452,7 @@ return bool(v[0]) def getint(self, s): - if isinstance(s, int): + if isinstance(s, (int, long)): return s if isinstance(s, unicode): s = str(s) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit