Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1848)

Issue 5503068: Series of commits directed to solve once and for all this issue

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by Carlos Córdoba
Modified:
13 years, 2 months ago
Visibility:
Public.

Description

Issue 812

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -25 lines) Patch
M spyderlib/plugins/editor.py View 1 chunk +4 lines, -2 lines 0 comments Download
M spyderlib/plugins/history.py View 2 chunks +6 lines, -1 line 1 comment Download
M spyderlib/spyder.py View 2 chunks +2 lines, -4 lines 0 comments Download
M spyderlib/userconfig.py View 2 chunks +3 lines, -1 line 0 comments Download
M spyderlib/utils/encoding.py View 2 chunks +24 lines, -3 lines 0 comments Download
M spyderlib/utils/external/path.py View 2 chunks +2 lines, -8 lines 0 comments Download
M spyderlib/utils/module_completion.py View 3 chunks +5 lines, -5 lines 0 comments Download
M spyderlib/widgets/sourcecode/codeeditor.py View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 1
pierre.raybaut
13 years, 2 months ago (2012-01-07 14:37:46 UTC) #1
http://codereview.appspot.com/5503068/diff/1/spyderlib/plugins/history.py
File spyderlib/plugins/history.py (right):

http://codereview.appspot.com/5503068/diff/1/spyderlib/plugins/history.py#new...
spyderlib/plugins/history.py:243: if os.environ.get('QT_API') != 'pyside':
This is not a good idea: this won't work with PyQt API #2 for which filename
won't be a QString.

The simplest way for dealing with this would be:
(this is doing exactly the same thing as your original code but will work with
PyQt API#1/2 and PySide)

if not isinstance(filename, basestring): # filename is a QString
    filename = unicode(filename.toUtf8(), 'utf-8')
command = unicode(command)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b