A small wrapper around lib2to3 that provide warnings messages for Python 3 incompatible code.
Project description
# py3kwarn [![Build Status](https://travis-ci.org/liamcurry/py3kwarn.png)][travis]
py3kwarn is a small wrapper around lib2to3 to help write Python3 compatible code. It provides flake8-style warning messages.
Currently requires Python 2.7+.
See the [lib2to3][lib2to3] documentation for information on warning messages.
Pull requests are welcome!
## Usage
py3kwarn test.py
## Usage with vim
To use with vim, check out [my syntastic fork][my-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 let g:syntastic_python_checkers=[‘flake8’, ‘py3kwarn’] to your vim config.
## TODO
An option for friendlier messages would be nice.
[A flake8 extension][flake8-ext].
Use argparse to add some smarter options.
Better docs
Make it work with Python 2.6
[my-fork]: https://github.com/liamcurry/syntastic/tree/py3kwarn [travis]: https://travis-ci.org/liamcurry/py3kwarn [flake8-ext]: http://flake8.readthedocs.org/en/latest/extensions.html [lib2to3]: http://docs.python.org/2.6/library/2to3.html#fixers
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.
Source Distribution
Built Distribution
File details
Details for the file py3kwarn-0.1.tar.gz
.
File metadata
- Download URL: py3kwarn-0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87dd072358cc51558b5ed222651a3f05b361f9ca65036ffabc3a54fe05dea8d1 |
|
MD5 | fa7c33ff3bf8c3b8c57140448e64c37c |
|
BLAKE2b-256 | 06c14b963a1a4e8cbcd898f991d25e9ea3cf7a9ef80231ae75768042155a08f2 |
File details
Details for the file py3kwarn-0.1.macosx-10.8-intel.exe
.
File metadata
- Download URL: py3kwarn-0.1.macosx-10.8-intel.exe
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35af445371bde903a71d58273c8f1dc252e096fbc729ae21f1571de088006540 |
|
MD5 | 8e6dafbd2602986368cb8c30d0d6c3be |
|
BLAKE2b-256 | cd350d57ca1a6238a1438aa2c841fd2ec04e7013377dd96166d7e7c426d743d8 |