-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error why handling unicode chars #12
Comments
i have this problem, too. debian lenny, python 2.5, Pymacs 0.24 beta1, pysmell 0.7.3 |
if the .py file has multi-byte character , pysmell doesn't work! just like this : pymacs-report-error: Python: Traceback (most recent call last): |
change codefinder.py ,lines 487 |
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/pysmell-0.7.1-py2.5.egg/pysmell/codefinder.py", line 129, in handleChildren |
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected: method's list
Instead we got a nice traceback, something like attached.
What version of the product are you using? On what operating system?
PySmell 0.7.1 on Gentoo
Python 2.5
Please provide any additional information below.
Solution to this problem was replacing str() with unicode() in
codefinder.py at lines: 301, 314, 316
(I don't know why, but I had to change[remove '.value'] also lines 337 and
340 in codefinder.py, because of "object has no attribute 'value'". Is
this another issue?)
The text was updated successfully, but these errors were encountered: