Commits

TK Soh committed 7441c2a

style fix: add space after commas

Comments (0)

Files changed (1)

         self.hunk = hunk
         self.added, self.removed = countchanges(self.hunk)
 
-    def __cmp__(self,rhs):
+    def __cmp__(self, rhs):
         # since the hunk().toline needs to be adjusted when hunks are
         # removed/added, we can't take it into account when we cmp
-        attrs = ['header','fromline','proc','hunk','added','removed']
+        attrs = ['header', 'fromline', 'proc', 'hunk', 'added', 'removed']
         for attr in attrs:
-            selfattr = getattr(self,attr,None)
-            rhsattr = getattr(rhs,attr,None)
+            selfattr = getattr(self, attr, None)
+            rhsattr = getattr(rhs, attr, None)
 
             if selfattr is None or rhsattr is None:
                 raise Exception("non-existant attribute %s" % attr)
 
-            rv = cmp(selfattr,rhsattr)
+            rv = cmp(selfattr, rhsattr)
             if rv != 0:
                 return rv
         return rv