Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Switch all xrange -> range for Python 3 compatibility. #11

Merged
merged 1 commit into from
Jul 3, 2014

Conversation

kimgr
Copy link
Contributor

@kimgr kimgr commented Jul 3, 2014

$ 2to3.py -p -fxrange .

I haven't measured performance implications of this. Would you like me to do so?

I think some of these cases could switch to use enumerate() for better perf and style on both Python versions, but that sounds like a separate effort.

@indygreg
Copy link
Contributor

indygreg commented Jul 3, 2014

I doubt the performance of these changes is an issue.

indygreg added a commit that referenced this pull request Jul 3, 2014
Switch all xrange -> range for Python 3 compatibility.
@indygreg indygreg merged commit 3483377 into mozilla:master Jul 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants