Replace calls to raw_input by calls to input() which is not evaluated as
an expression in Python3. Import input from builtins to maintain
current behavior on Python2. This was produced by running
futurize's stage2 lib2to3.fixes.fix_raw_input.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 38422 Build 38421: arc lint + arc unit
Event Timeline
Comment Actions
I believe adding this to the files should work:
try: from builtins import input as raw_input except ImportError: pass
Comment Actions
The import from builtins without renaming ought to be sufficient. It basically means input on Python2 behaves like raw_input. It's weird that 2to3's fix_raw_input did this transformation without adding the import. I'm glad you were more careful evaluating the change than me.
lnt/external/stats/stats.py | ||
---|---|---|
227 | This is dependent on the "future" package. I guess the update to the package dependency list needs to move earlier in patch set to this patch? |
This is dependent on the "future" package. I guess the update to the package dependency list needs to move earlier in patch set to this patch?