Many of us are currently migrating our projects from Python 2 to Python 3. While using 2to3 is the suggested possibility, many of us are finding that using a single if statement to define a only few things is enough in many simple projects. This is particularly useful when iterating between coding and testing as avoids the use of 2to3.
It would be nice if Pycharm introspection supports from this type of programming without wrongly labling an error. For this purpose Pycharm would need to understand this construct (or something similar):
if sys.version < '3':
# version 2 code
# version 3 code