Modernize the code now that Python 2.5 is no longer supported

#208 Merged
Repository
Deleted repository
Branch
default (a57746876bea)
Repository
birkenfeld
Branch
default
Author
  1. Dmitry Shachnev
Reviewers
Description

This is based on output of futurize --stage1, with the following changes:

  • Do not add from __future__ import division imports, not needed;
  • Fix indentation in multi-line print statements;
  • Do not use sys.intern directly for Python 2 (it's a bug in futurize);
  • Do not use from __future__ import print_function where all print statements are trivial;
  • Replace xxx_todo_changeme with proper variable name.

This is first part of fix for issue #1350.

  • Issues #1350: Drop 2to3 mechanism closed

Comments (6)