Avoid conversion of unicode to string and back, which could produce an exception in Py2. Py2 comp.

Fri, 14 Jun 2013 18:52:04 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Fri, 14 Jun 2013 18:52:04 +0200
branch
Py2 comp.
changeset 2717
34ef4eccdf6c
parent 2716
98c11482598e
child 2789
6593aab36403

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, \

eric ide

mercurial