Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install modernize

How to install modernize

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install modernize
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2 Available View build log
0.2 Available View build log
Windows (64-bit)
0.2 Available View build log
0.2 Available View build log
Mac OS X (10.5+)
0.2 Available View build log
0.2 Available View build log
Linux (32-bit)
0.2 Available View build log
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
0.2 Available View build log
0.2 Available View build log
 
Lastest release
version 0.2 on May 23rd, 2012
Python _ _

_ __ ___ __| |___ _ _ _ _ (_)______

System Message: WARNING/2 (<string>, line 2); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 3)

Block quote ends without a blank line; unexpected unindent.
' / _ / _` / -_) '_| ' | |_ / -_)

System Message: WARNING/2 (<string>, line 3); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 4)

Line block ends without a blank line.

|_|_|____/__,____|_| |_||_|_/_____|

This library is a very thin wrapper around lib2to3 to utilize it to make Python 2 code more modern with the intention of eventually porting it over to Python 3.

It does not guarantee, but it attempts to spit out a Python 2/3 compatible codebase. The code that it generates has a runtime dependency on six.

Unicode Literal Control:

  • By default modernize will wrap literals with the six helpers. This is useful if you want to support Python 3.1 and Python 3.2 without bigger changes.
  • Alternatively there is the --compat-unicode flag which does not change unicode literals at all which means that you can take advantage of PEP 414.
  • The last alternative is the --future-unicode flag which imports the unicode_literals from the __future__ module. This requires Python 2.6 and later and will require that you mark bytestrings with b'' and native strings in str(b'') or something similar that survives the transformation.

Docutils System Messages

System Message: ERROR/3 (<string>, line 4); backlink

Undefined substitution referenced: "_|_".

System Message: ERROR/3 (<string>, line 4); backlink

Undefined substitution referenced: "_||_".

System Message: ERROR/3 (<string>, line 4); backlink

Unknown target name: "_|_".

System Message: ERROR/3 (<string>, line 4); backlink

Unknown target name: "_||_".

Subscribe to package updates

Last updated May 23rd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.