[issue10785] parser: store the filename as an unicode object
STINNER Victor
report at bugs.python.org
Wed Dec 29 00:15:15 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> maybe a more elegant solution than changing the type conditional
> on PGEN can be found
In pgen, the filename is only used to display the following warning, in indenterror():
<filename>: inconsistent use of tabs and spaces in indentation
In pratical, this warning never occurs on Grammar/Grammar: this file doesn't use indentation at all, only continuation lines.
A better solution is maybe just to drop the filename for pgen. Anyway, pgen only compiles *one* file (Grammar/Grammar), so we don't need the input filename ;-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10785>
_______________________________________
More information about the Python-bugs-list
mailing list