changeset 31430:807387581d89

py3: use iter() instead of iterkeys()
author Rishabh Madan <rishabhmadan96@gmail.com>
date Thu, 16 Mar 2017 04:53:23 +0530
parents 2471368281d1
children 406705701c2d
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Fri Aug 05 14:15:45 2016 +0200
+++ b/mercurial/util.py	Thu Mar 16 04:53:23 2017 +0530
@@ -2920,7 +2920,7 @@
             del dirs[base]
 
     def __iter__(self):
-        return self._dirs.iterkeys()
+        return iter(self._dirs)
 
     def __contains__(self, d):
         return d in self._dirs