Commits

Joel Rivera  committed 03186e6

Set relative imports in patch

  • Participants
  • Parent commits 38c5179
  • Branches py3k

Comments (0)

Files changed (1)

File CodernityDB/patch.py

        It's internal CodernityDB mechanizm, it will be called when needed
 
     """
-    import lfu_cache
-    import lfu_cache_with_lock
+    from . import lfu_cache
+    from . import lfu_cache_with_lock
     lfu_lock1lvl = lfu_cache_with_lock.create_cache1lvl(lock_obj)
     lfu_lock2lvl = lfu_cache_with_lock.create_cache2lvl(lock_obj)
     __patch(lfu_cache, 'cache1lvl', lfu_lock1lvl)
        It's internal CodernityDB mechanizm, it will be called when needed
 
     """
-    import rr_cache
-    import rr_cache_with_lock
+    from . import rr_cache
+    from . import rr_cache_with_lock
     rr_lock1lvl = rr_cache_with_lock.create_cache1lvl(lock_obj)
     rr_lock2lvl = rr_cache_with_lock.create_cache2lvl(lock_obj)
     __patch(rr_cache, 'cache1lvl', rr_lock1lvl)