1 new changeset in py: http://bitbucket.org/hpk42/py/changeset/91d2234a6c41/ changeset: 91d2234a6c41 user: gutworth date: 2011-07-05 18:35:32 summary: don't show locals which start with @ affected #: 2 files (35 bytes)
--- a/py/_code/code.py Tue Jul 05 11:29:33 2011 -0500 +++ b/py/_code/code.py Tue Jul 05 11:35:32 2011 -0500 @@ -462,7 +462,7 @@ def repr_locals(self, locals): if self.showlocals: lines = [] - keys = list(locals) + keys = [loc for loc in locals if loc[0] != "@"] keys.sort() for name in keys: value = locals[name] --- a/testing/code/test_excinfo.py Tue Jul 05 11:29:33 2011 -0500 +++ b/testing/code/test_excinfo.py Tue Jul 05 11:35:32 2011 -0500 @@ -384,7 +384,7 @@ def test_repr_local(self): p = FormattedExcinfo(showlocals=True) - loc = {'y': 5, 'z': 7, 'x': 3, '__builtins__': {}} # __builtins__} + loc = {'y': 5, 'z': 7, 'x': 3, '@x': 2, '__builtins__': {}} reprlocals = p.repr_locals(loc) assert reprlocals.lines assert reprlocals.lines[0] == '__builtins__ = <builtins>' Repository URL: https://bitbucket.org/hpk42/py/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn