Commits

Anonymous committed e18eb7c

better constructor

  • Participants
  • Parent commits 2b515cf

Comments (0)

Files changed (1)

 
 class DistributionDirectories(dict):
 
-    def __init__(self, iterable=None, use_cache=True):
-        if iterable is None:
-            iterable = []
-        super(DistributionDirectories, self).__init__(iterable)
+    def __init__(self, paths=None, use_cache=True):
+        super(DistributionDirectories, self).__init__()
+        if paths is not None:
+            for path in paths:
+                self.append(path)
         self.use_cache = use_cache
 
     def __setitem__(self, path, dir):