1. Joel Rivera
  2. CodernityDB

Commits

Joel Rivera  committed 1f52bb6

Fix two mistakes of the python3 updates.

  • Participants
  • Parent commits 519e13a
  • Branches py3k

Comments (0)

Files changed (1)

File CodernityDB/database_safe_shared.py

View file
     else:
         def next(self):
             with self.lock:
-                return self.__gen.next.next()
+                return self.__gen.next()
 
     @staticmethod
     def wrapper(method, index_name, meth_name, l=None):
     def create(self, *args, **kwargs):
         with self.close_open_lock:
             res = super(SafeDatabase, self).create(*args, **kwargs)
-            for name in six.iterkeys(self.indexes_names.iterkeys):
+            for name in six.iterkeys(self.indexes_names):
                 self.indexes_locks[name] = cdb_environment['rlock_obj']()
                 self.__patch_index(name)
             return res