[Python-checkins] cpython (3.5): Fix indentation (reindent.py).
gregory.p.smith
python-checkins at python.org
Wed Sep 7 20:48:31 EDT 2016
https://hg.python.org/cpython/rev/99ce1713ae15
changeset: 103274:99ce1713ae15
branch: 3.5
parent: 103271:186bb8dc5540
user: Gregory P. Smith <greg at krypto.org> [Google Inc.]
date: Thu Sep 08 00:48:07 2016 +0000
summary:
Fix indentation (reindent.py).
files:
Lib/lib2to3/pgen2/grammar.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/lib2to3/pgen2/grammar.py b/Lib/lib2to3/pgen2/grammar.py
--- a/Lib/lib2to3/pgen2/grammar.py
+++ b/Lib/lib2to3/pgen2/grammar.py
@@ -139,12 +139,12 @@
def _make_deterministic(top):
if isinstance(top, dict):
- return collections.OrderedDict(
- sorted(((k, _make_deterministic(v)) for k, v in top.items())))
+ return collections.OrderedDict(
+ sorted(((k, _make_deterministic(v)) for k, v in top.items())))
if isinstance(top, list):
- return [_make_deterministic(e) for e in top]
+ return [_make_deterministic(e) for e in top]
if isinstance(top, tuple):
- return tuple(_make_deterministic(e) for e in top)
+ return tuple(_make_deterministic(e) for e in top)
return top
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list