[Python-checkins] cpython (merge 3.5 -> default): 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/56bd6ff4c98e
changeset: 103275:56bd6ff4c98e
parent: 103273:7b9ef58da99d
parent: 103274:99ce1713ae15
user: Gregory P. Smith <greg at krypto.org> [Google Inc.]
date: Thu Sep 08 00:48:22 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

AltStyle によって変換されたページ (->オリジナル) /