- Notifications
You must be signed in to change notification settings - Fork27
Modernizes Python code for eventual Python 3 migration. Build on top of 2to3
License
mitsuhiko/python-modernize
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Python _ _ _ __ ___ __| |___ _ _ _ _ (_)______ | ' \/ _ \/ _` / -_) '_| ' \| |_ / -_) |_|_|_\___/\__,_\___|_| |_||_|_/__\___|
Maintainedship Abandoned
This repository is not under active development. The canonical location isathttps://github.com/python-modernize/python-modernize
This library is a very thin wrapper aroundlib2to3 to utilize itto make Python 2 code more modern with the intention of eventuallyporting it over to Python 3.
Thepython-modernize command works like2to3. Here's how you'd rewrite asingle file:
python-modernize -w example.py
It does not guarantee, but it attempts to spit out a codebase compatiblewith Python 2.6+ or Python 3. The code that it generates has a runtimedependency onsix, unless the--no-six option is used. Version 1.8.0 or later ofsix isrecommended. Some of the fixers output code that is not compatible withPython 2.5 or lower.
Documentation:python-modernize.rtfd.org.
See theLICENSE file for the license ofpython-modernize.Using this tool does not affect licensing of the modernized code.

About
Modernizes Python code for eventual Python 3 migration. Build on top of 2to3
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.