Source

lib3to2 / lib3to2 / fixes / fix_int.py

Author Commit Message Labels Comments Date
Joe Amenta
Porting lib3to2 with 2to3 for the burn-your-bridges py3k switch
joe.amenta
Stripped trailing spaces off of all lines. find . -name "*.py" -exec sed -i "s/ *$//" "{}" ";"
joe.amenta
using a regex to match numeric literals containing only zeroes all python base-10 literals are either numbers that don't start with zero or zero itself.
joe.amenta
fixing fix_int
joe.amenta
Moving normal int literal fixes to fix_int and making explicit. In all cases but repr(), 3.x int is the same as 2.x long, but repr() is enough of a reason to make this explicit.
joe.amenta
All fixes conform to one common style, and added a few comments.
joe.amenta
Various fixers changed to avoid DeprecationWarning, fix_print is less broken fix_print now has grammar conflicts.
joe.amenta
int -> long, in every case.