Form feed (^L) characters in source code interfer with 2to3 conversion.
Bug #879189 reported by
Denis Zawada
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
flufl.enum |
Won't Fix
|
Undecided
|
Unassigned | |||
pylandro-collections-range | ||||||
Trunk |
Invalid
|
Critical
|
Unassigned |
Bug Description
>>> open('_enum.py', 'r', encoding=
4
The 2to3 conversion completes without any errors, however nothing is converted and outputted after the first occurrence of line feed character. Those characters can be found in the very first commit in munepy source code.
In a brand new installation (pip install flufl.enum==3.2) in virtualenv with Python 3.2 this results in the following error:
>>> import flufl.enum
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "$VIRTUALENV/
from ._enum import Enum, make_enum
ImportError: cannot import name Enum
Related branches
To post a comment you must log in.
This is actually a bug in Python 3.2 which was fixed in Python 3.3 (development version) but accidentally not back-ported in time to make it to Python 3.2.2.
http:// bugs.python. org/issue11250
I back ported it so it will make it into Python 3.2.3, though there's no ETA for that yet. I'm disinclined to remove the formfeeds from flufl.enum to worm around this Python bug.