Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 31430:807387581d89
py3: use iter() instead of iterkeys()
author | Rishabh Madan <rishabhmadan96@gmail.com> |
---|---|
date | Thu, 16 Mar 2017 04:53:23 +0530 |
parents | 7409eb69731f |
children | 067add650129 |
comparison
equal
deleted
inserted
replaced
31429:2471368281d1 | 31430:807387581d89 |
---|---|
2918 dirs[base] -= 1 | 2918 dirs[base] -= 1 |
2919 return | 2919 return |
2920 del dirs[base] | 2920 del dirs[base] |
2921 | 2921 |
2922 def __iter__(self): | 2922 def __iter__(self): |
2923 return self._dirs.iterkeys() | 2923 return iter(self._dirs) |
2924 | 2924 |
2925 def __contains__(self, d): | 2925 def __contains__(self, d): |
2926 return d in self._dirs | 2926 return d in self._dirs |
2927 | 2927 |
2928 if safehasattr(parsers, 'dirs'): | 2928 if safehasattr(parsers, 'dirs'): |