# HG changeset patch # User Martin von Zweigbergk # Date 1562998790 25200 # Node ID f8ef6d5f56f216d754bb77435ad4a26fe2878d28 # Parent ce6e69b2f7596bd22e50ba7a48b7530aa097030c py3: don't depend on map() iterating over its input map(some_generator()) in py2 returns a list, while in py3 it returns a generator, so the passed-in generator won't be called unless the returned one is. diff -r ce6e69b2f759 -r f8ef6d5f56f2 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Thu Jul 11 16:49:01 2019 -0700 +++ b/hgext3rd/evolve/__init__.py Fri Jul 12 23:19:50 2019 -0700 @@ -1322,7 +1322,8 @@ markers.append(m) ui.write(_('Old store is version %d, will rewrite in version %d\n') % ( repo.obsstore._version, new_format)) - map(f.write, obsolete.encodemarkers(markers, True, new_format)) + for data in obsolete.encodemarkers(markers, True, new_format): + f.write(data) f.close() ui.write(_('Done!\n'))