Fri, 14 Jun 2013 18:52:04 +0200
Avoid conversion of unicode to string and back, which could produce an exception in Py2.
Debugger/VariablesViewer.py | file | annotate | diff | comparison | revisions |
--- a/Debugger/VariablesViewer.py Fri Jun 14 17:43:32 2013 +0200 +++ b/Debugger/VariablesViewer.py Fri Jun 14 18:52:04 2013 +0200 @@ -8,6 +8,10 @@ """ from __future__ import unicode_literals # __IGNORE_WARNING__ +try: + str = unicode +except (NameError): + pass from PyQt4.QtCore import Qt, QRegExp, qVersion from PyQt4.QtGui import QTreeWidget, QTreeWidgetItem, QApplication, QAbstractItemView, \