# HG changeset patch # User Denis Laxalde # Date 1491320636 -7200 # Node ID 752b94ed974831be924b2f52e0b26af9493787d2 # Parent f54286c1cef518d72a3cc3f09fc54232703db50b [hooks] Remove list() around repo.sources_by_uri There's no need to convert it as a list anymore since sources_by_uri is a property and will not be modified. diff -r f54286c1cef5 -r 752b94ed9748 cubicweb/hooks/__init__.py --- a/cubicweb/hooks/__init__.py Wed Apr 05 14:31:44 2017 +0200 +++ b/cubicweb/hooks/__init__.py Tue Apr 04 17:43:56 2017 +0200 @@ -56,7 +56,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.items()): + for uri, source in repo.sources_by_uri.items(): if (uri == 'system' or not repo.config.source_enabled(source) or not source.config['synchronize']): diff -r f54286c1cef5 -r 752b94ed9748 cubicweb/server/serverctl.py --- a/cubicweb/server/serverctl.py Wed Apr 05 14:31:44 2017 +0200 +++ b/cubicweb/server/serverctl.py Tue Apr 04 17:43:56 2017 +0200 @@ -1063,7 +1063,7 @@ else: sources.append(source) else: - for uri, source in list(repo.sources_by_uri.items()): + for uri, source in repo.sources_by_uri.items(): if (uri != 'system' and repo.config.source_enabled(source) and source.config['synchronize']):