You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2015/10/28 05:30:08 UTC

svn commit: r1710939 - /lucene/pylucene/trunk/jcc/jcc/python.py

Author: vajda
Date: Wed Oct 28 04:30:08 2015
New Revision: 1710939

URL: http://svn.apache.org/viewvc?rev=1710939&view=rev
Log:
fixed bug PYLUCENE-35

Modified:
    lucene/pylucene/trunk/jcc/jcc/python.py

Modified: lucene/pylucene/trunk/jcc/jcc/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc/python.py?rev=1710939&r1=1710938&r2=1710939&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc/python.py Wed Oct 28 04:30:08 2015
@@ -1700,7 +1700,7 @@ def compile(env, jccPath, output, module
     line(out, 1, 'def __str__(self):')
     line(out, 2, 'writer = StringWriter()')
     line(out, 2, 'self.getJavaException().printStackTrace(PrintWriter(writer))')
-    line(out, 2, 'return "\\n".join((super(JavaError, self).__str__(), "    Java stacktrace:", str(writer)))')
+    line(out, 2, 'return u"\\n".join((unicode(super(JavaError, self)), u"    Java stacktrace:", unicode(writer)))')
     line(out)
     line(out, 0, 'class InvalidArgsError(Exception):')
     line(out, 1, 'pass')