changeset 182:47d25d61abfa

remove generators (compat with python2.3)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 13 Jan 2009 15:39:22 +0100
parents e37f9d3fd5e7
children 1c46ad3f56aa
files fetch_command.py tests/test_rebuildmeta.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/fetch_command.py
+++ b/fetch_command.py
@@ -127,9 +127,9 @@ def replay_convert_rev(hg_editor, svn, r
             hg_editor.ui.flush()
             if p[-1] == '/':
                 dirpath = p[len(rootpath):]
-                files_to_grab.update((dirpath + f for f,k in
+                files_to_grab.update([dirpath + f for f,k in
                                       svn.list_files(dirpath, r.revnum)
-                                      if k == 'f'))
+                                      if k == 'f'])
             else:
                 files_to_grab.add(p[len(rootpath):])
         hg_editor.ui.status('\nFetching files...\n')
--- a/tests/test_rebuildmeta.py
+++ b/tests/test_rebuildmeta.py
@@ -71,7 +71,7 @@ def buildmethod(case, name, stupid):
 
 attrs = {'_do_case': _do_case,
          }
-for case in (f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')):
+for case in [f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')]:
     name = 'test_' + case[:-len('.svndump')]
     attrs[name] = buildmethod(case, name, False)
     name += '_stupid'