Pylint across Python versions

thomas.lehmann at adtech.com thomas.lehmann at adtech.com
Mon Feb 10 12:39:06 CET 2014


Hi,

somebody who can tell me about pylint experiences across
different Python version.

Example:
I'm using a construct like this:

if sys.version.startswith("3."):
    unicode = str

The reason is that Python 3 does not have this
function anymore but pylint yells for Python < 3
about redefinition also it does not happen.

How to get forward with this?

Regards,
Thomas



More information about the Python-list mailing list