Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Modernizes Python code for eventual Python 3 migration. Build on top of 2to3

License

NotificationsYou must be signed in to change notification settings

mitsuhiko/python-modernize

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.

Documentation Statushttps://travis-ci.org/python-modernize/python-modernize.svg?branch=masterhttps://coveralls.io/repos/python-modernize/python-modernize/badge.png?branch=master

About

Modernizes Python code for eventual Python 3 migration. Build on top of 2to3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors11

Languages


[8]ページ先頭

©2009-2025 Movatter.jp