hooks/__init__.py
changeset 10662 10942ed172de
parent 9775 614f8f3d2a35
child 10961 6ff786884aad
--- a/hooks/__init__.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/hooks/__init__.py	Tue Sep 15 16:15:03 2015 +0200
@@ -52,7 +52,7 @@
         def update_feeds(repo):
             # take a list to avoid iterating on a dictionary whose size may
             # change
-            for uri, source in list(repo.sources_by_uri.iteritems()):
+            for uri, source in list(repo.sources_by_uri.items()):
                 if (uri == 'system'
                     or not repo.config.source_enabled(source)
                     or not source.config['synchronize']):
@@ -72,7 +72,7 @@
 
     def __call__(self):
         def expire_dataimports(repo=self.repo):
-            for uri, source in repo.sources_by_uri.iteritems():
+            for uri, source in repo.sources_by_uri.items():
                 if (uri == 'system'
                     or not repo.config.source_enabled(source)):
                     continue