Bläddra i källkod

Fixed broken constructor.

Taddeus Kroes 14 år sedan
förälder
incheckning
53fe3c91dd
2 ändrade filer med 2 tillägg och 2 borttagningar
  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 = {}