divmod-dev team mailing list archive
-
divmod-dev team
-
Mailing list archive
-
Message #00219
[Bug 942603] [NEW] AttributeError in a Turkish locale
Public bug reported:
A user came into the #vim channel on IRC looking for help with the
pyflakes plugin. I tracked down the error to a bug(?) in pyflakes: it
doesn't work in a Turkish locale. Instead you get
AttributeError: 'Checker' object has no attribute 'ATTRiBUTE'
Screenshot of the original error: http://i.imgur.com/gAfRB.png
The user's locale:
LANG=tr_TR.UTF-8
LANGUAGE=
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=
This workaround fixed the error for that user:
<mgedmin> edit that pyflakes/checker.py file, find line 317 (actual number might differ depending on the version) -- the line that does 'nodeType = node.__class__.__name__.upper()'
<mgedmin> change it to 'nodeType = node.__class__.__name__.upper().replace("i", "I")'
** Affects: pyflakes
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/942603
Title:
AttributeError in a Turkish locale
Status in Pyflakes:
New
Bug description:
A user came into the #vim channel on IRC looking for help with the
pyflakes plugin. I tracked down the error to a bug(?) in pyflakes: it
doesn't work in a Turkish locale. Instead you get
AttributeError: 'Checker' object has no attribute 'ATTRiBUTE'
Screenshot of the original error: http://i.imgur.com/gAfRB.png
The user's locale:
LANG=tr_TR.UTF-8
LANGUAGE=
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=
This workaround fixed the error for that user:
<mgedmin> edit that pyflakes/checker.py file, find line 317 (actual number might differ depending on the version) -- the line that does 'nodeType = node.__class__.__name__.upper()'
<mgedmin> change it to 'nodeType = node.__class__.__name__.upper().replace("i", "I")'
To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/942603/+subscriptions
Follow ups
References