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 2017/05/22 20:31:52 UTC

svn commit: r1795846 - in /lucene/pylucene/trunk/jcc: CHANGES jcc3/python.py

Author: vajda
Date: Mon May 22 20:31:52 2017
New Revision: 1795846

URL: http://svn.apache.org/viewvc?rev=1795846&view=rev
Log:
 - fixed bug PYLUCENE-36 (Paulo Villegas)

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

Modified: lucene/pylucene/trunk/jcc/CHANGES
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/CHANGES?rev=1795846&r1=1795845&r2=1795846&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Mon May 22 20:31:52 2017
@@ -1,3 +1,8 @@
+Version 3.0 ->
+-------------------
+ - fixed bug PYLUCENE-36 (Paulo Villegas)
+ - 
+
 Version 2.23 -> 3.0
 -------------------
  - added support for Python 3 (3.3+) (with RĂ¼diger Meier and Thomas Koch)

Modified: lucene/pylucene/trunk/jcc/jcc3/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc3/python.py?rev=1795846&r1=1795845&r2=1795846&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc3/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc3/python.py Mon May 22 20:31:52 2017
@@ -1683,7 +1683,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 u"\\n".join((unicode(super(JavaError, self)), u"    Java stacktrace:", unicode(writer)))')
+    line(out, 2, 'return u"\\n".join((str(super(JavaError, self)), u"    Java stacktrace:", str(writer)))')
     line(out)
     line(out, 0, 'class InvalidArgsError(Exception):')
     line(out, 1, 'pass')