A small wrapper around lib2to3 to help write Python 3 compatible code.
Project description
py3kwarn is a small wrapper around lib2to3 to help write Python3 compatible code. It provides flake8-style warning messages.
See the lib2to3 documentation for information on warning messages.
Pull requests are welcome!
Installation
Requires Python 2.7+
$ pip install py3kwarn
…or to install from the git repository:
$ git clone git://github.com/liamcurry/py3kwarn.git $ cd py3kwarn $ make install
Usage from the command line
$ py3kwarn [filename]
Usage with vim
To use with vim, check out my syntastic fork which adds py3kwarn as a syntax checker for python. If you want to use py3kwarn and syntastic with another syntax checker (like flake8), then you will have to add this to your vim config:
let g:syntastic_python_checkers=['flake8', 'py3kwarn']
TODO
An option for friendlier messages would be nice.
Use argparse to add some smarter options.
Better docs
Make it work with Python 2.6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.