[pypy-commit] pypy translation-cleanup: Some style cleanups.

alex_gaynor noreply at buildbot.pypy.org
Sat Sep 29 18:05:51 CEST 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: translation-cleanup
Changeset: r57661:055f7aa9f7f2
Date: 2012-09-29 09:05 -0700
http://bitbucket.org/pypy/pypy/changeset/055f7aa9f7f2/

Log:	Some style cleanups.

diff --git a/pypy/objspace/flow/test/test_objspace.py b/pypy/objspace/flow/test/test_objspace.py
--- a/pypy/objspace/flow/test/test_objspace.py
+++ b/pypy/objspace/flow/test/test_objspace.py
@@ -471,7 +471,7 @@
         with py.test.raises(FlowingError) as excinfo:
             self.codetest(f)
         assert "modify global" in str(excinfo.value)
-        assert DATA == {'x':5, 'y':6}
+        assert DATA == {'x': 5, 'y': 6}
 
     #__________________________________________________________
     def dictliteral(name):
@@ -517,7 +517,7 @@
         def f(x):
             return not ~-x
         graph = self.codetest(f)
-        assert self.all_operations(graph) == {'is_true':1, 'invert':1, 'neg':1}
+        assert self.all_operations(graph) == {'is_true': 1, 'invert': 1, 'neg': 1}
 
     #__________________________________________________________
 
@@ -985,7 +985,7 @@
 
     def test_constfold_exception(self):
         def f():
-            return (3 + 2)/(4 - 2*2)
+            return (3 + 2) / (4 - 2 * 2)
         with py.test.raises(FlowingError) as excinfo:
             self.codetest(f)
         assert 'div(5, 0)' in str(excinfo.value)


More information about the pypy-commit mailing list