Author: Maciej Fijalkowski <[email protected]>
Branch: remove-list-smm
Changeset: r62551:c89ecff7b525
Date: 2013-03-20 10:34 -0700
http://bitbucket.org/pypy/pypy/changeset/c89ecff7b525/

Log:    some whitespace

diff --git a/pypy/objspace/std/multimethod.py b/pypy/objspace/std/multimethod.py
--- a/pypy/objspace/std/multimethod.py
+++ b/pypy/objspace/std/multimethod.py
@@ -32,10 +32,10 @@
 
     def get_w_value(self, space):
         return None
-    
+
     def get_w_type(self, space):
         return None
-    
+
     def __str__(self):
         return '<FailedToImplement(None, None)>'
 
@@ -47,13 +47,13 @@
     def get_w_value(self, space):
         # convenience: same semantics as with OperationError
         return self.w_value
-    
+
     def get_w_type(self, space):
         return self.w_type
 
     def __str__(self):
         return '<FailedToImplement(%s, %s)>' % (self.w_type, self.w_value)
-    
+
 
 
 def raiseFailedToImplement():
@@ -108,9 +108,9 @@
         if installer.is_empty():
             return None
         else:
-            return installer.install()        
-        
-    
+            return installer.install()
+
+
 
     # ____________________________________________________________
     # limited dict-like interface to the dispatch table
@@ -176,7 +176,7 @@
         self.non_empty = self.build_tree([], multimethod.dispatch_tree)
 
         self.baked_perform_call = baked_perform_call
-        
+
         if self.non_empty:
             perform = [(None, prefix, 0)]
         else:
@@ -353,18 +353,18 @@
         bodylines.append('')
         source = '\n'.join(bodylines)
 
-        # XXX find a better place (or way) to avoid duplicate functions 
+        # XXX find a better place (or way) to avoid duplicate functions
         l = miniglobals.items()
         l.sort()
         l = tuple(l)
         key = (source, l)
-        try: 
+        try:
             func = self.mmfunccache[key]
-        except KeyError: 
+        except KeyError:
             exec compile2(source) in miniglobals
             func = miniglobals[funcname]
-            self.mmfunccache[key] = func 
-        #else: 
+            self.mmfunccache[key] = func
+        #else:
         #    print "avoided duplicate function", func
         self.to_install.append((target, funcname, func, source, fallback))
         return func
@@ -791,7 +791,7 @@
             if '_mixin_' not in base.__dict__:
                 result |= baseclasses(base)
         return result
-    
+
     bag = baseclasses(classlist[0])
     for cls in classlist[1:]:
         bag &= baseclasses(cls)
@@ -959,6 +959,7 @@
         miniglobals['__name__'] = __name__
         entry = FuncEntry(bodylines, miniglobals, fallback)
         key = entry.key()
+
         try:
             entry = self.mmfunccache[key]
         except KeyError:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to