Source

pylint / README.Python3

Python3
=======

Source
------

Python3 portage is made by running the 2to3 script on all modules::

  find . ! -path "*/test/*py" -name "*py" -exec 2to3-3.1 -wn {} \;


Dev
---

If you want to run the tests, simply remove the "! -path ..." option, hence
also refactoring the test files, including all data files.
Note that when running 2to3 on some test/input/ files, it will crash since
this folder contains corrupted files. Hence, we can not run directly
*2to3* on the test folder::

  $ 2to3 test/

But it will work nice with *find*.

Debian
------

For the Debian packaging, you can use the debian.py3k/ content against
the debian/ folder::

  cp debian.py3k/* debian/
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.