소스 검색

Fixed broken constructor.

Taddeus Kroes 14 년 전
부모
커밋
53fe3c91dd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      cache.py
  2. 1 1
      importer.py

+ 1 - 1
cache.py

@@ -28,7 +28,7 @@ def seconds_to_datetime(seconds):
     return datetime(*gmtime(seconds)[:7])
 
 
-class Cache:
+class Cache(object):
     """
     A Cache instance represents a single file in the cache directory, which is
     a concatenation of the file list.

+ 1 - 1
importer.py

@@ -54,7 +54,7 @@ def separate_imports(content):
 
 class Importer(Cache):
     def __init__(self, files=[], extension=None, **kwargs):
-        Cache.__init__(self, **kwargs)
+        super(Importer, self).__init__(**kwargs)
 
         self.aliases = {}