1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 3e625c9

whitespace

  • Participants
  • Parent commits 7da5e9a
  • Branches default

Comments (0)

Files changed (1)

File pypy/objspace/std/listobject.py

View file
  • Ignore whitespace
         return ListStrategy.contains(self, w_list, w_obj)
 
     def _safe_contains(self, w_list, obj):
-            l = self.unerase(w_list.lstorage)
-            for i in l:
-                if i == obj:
-                    return True
-            return False
+        l = self.unerase(w_list.lstorage)
+        for i in l:
+            if i == obj:
+                return True
+        return False
 
     def length(self, w_list):
         return len(self.unerase(w_list.lstorage))
         items = self.unerase(w_list.lstorage)[:]
         return self.erase(items)
 
-
     def getslice(self, w_list, start, stop, step, length):
         if step == 1 and 0 <= start <= stop:
             l = self.unerase(w_list.lstorage)
             return W_ListObject.from_storage_and_strategy(self.space, storage, self)
 
     def append(self,  w_list, w_item):
-
         if self.is_correct_type(w_item):
             self.unerase(w_list.lstorage).append(self.unwrap(w_item))
             return