Details
Details
- Reviewers
 durin42 - Group Reviewers
 hg-reviewers - Commits
 - rHG1a5abc45e2fa: py3: explicitly convert dict.keys() and dict.items() into a list
 
Diff Detail
Diff Detail
- Repository
 - rHG Mercurial
 - Lint
 Automatic diff as part of commit; lint not applicable. - Unit
 Automatic diff as part of commit; unit tests not applicable. 
Event Timeline
Comment Actions
One nit.
| mercurial/copies.py | ||
|---|---|---|
| 144 | please use list(c) instead of list(c.keys()) - the latter allocates an extra list on Python 2, whereas the former works consistently on both 2 and 3.  | |
please use list(c) instead of list(c.keys()) - the latter allocates an extra list on Python 2, whereas the former works consistently on both 2 and 3.