Fixed an issue in a third party package causing a stacktrace on Python2 in a call to str().

Mon, 04 May 2015 19:42:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 04 May 2015 19:42:53 +0200
changeset 4247
c5d6a59a8cdd
parent 4242
2f22ff4951c6
child 4249
ec015f3b8fdb

Fixed an issue in a third party package causing a stacktrace on Python2 in a call to str().

ThirdParty/Send2Trash/send2trash/plat_other.py file | annotate | diff | comparison | revisions
--- a/ThirdParty/Send2Trash/send2trash/plat_other.py	Fri May 01 11:28:29 2015 +0200
+++ b/ThirdParty/Send2Trash/send2trash/plat_other.py	Mon May 04 19:42:53 2015 +0200
@@ -15,6 +15,10 @@
 # find or create the user's trash directory.
 
 from __future__ import unicode_literals
+try:
+    str = unicode
+except NameError:
+    pass
 
 import sys
 import os

eric ide

mercurial