Canonicalize variable order #21

This commit is contained in:
Ram Rachum 2019-04-24 15:57:20 +03:00
parent efc7dd0a97
commit 64bc472b7c
2 changed files with 3 additions and 3 deletions

View file

@ -174,10 +174,10 @@ class Tracer:
newish_string = ('Starting var:.. ' if event == 'call' else
'New var:....... ')
for name, value_repr in newish_local_reprs.items():
for name, value_repr in sorted(newish_local_reprs.items()):
self.write('{indent}{newish_string}{name} = {value_repr}'.format(
**locals()))
for name, value_repr in modified_local_reprs.items():
for name, value_repr in sorted(modified_local_reprs.items()):
self.write('{indent}Modified var:.. {name} = {value_repr}'.format(
**locals()))
# #

View file

@ -15,7 +15,7 @@ def read_file(filename):
setuptools.setup(
name='PySnooper',
version='0.0.14',
version='0.0.15',
author='Ram Rachum',
author_email='ram@rachum.com',
description="A poor man's debugger for Python.",