Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (7 sloc) 0.271 kb
790b8a8 @mitsuhiko Approaching python3 compatibility
authored
1 from lib2to3 import fixer_base
2 from lib2to3.fixer_util import Name, BlankLine
3
4
5 # whyever this is necessary..
6
7 class FixXrange2(fixer_base.BaseFix):
8 PATTERN = "'xrange'"
9
10 def transform(self, node, results):
11 node.replace(Name('range', prefix=node.prefix))
Something went wrong with that request. Please try again.