lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1809363 - in /lucene/pylucene/trunk/jcc: CHANGES jcc2/python.py jcc3/python.py
Date Sat, 23 Sep 2017 01:21:16 GMT
Author: vajda
Date: Sat Sep 23 01:21:15 2017
New Revision: 1809363

URL: http://svn.apache.org/viewvc?rev=1809363&view=rev
Log:
 - fixed bug with using split instead of rpartition on path (Petrus Hyvönen)

Modified:
    lucene/pylucene/trunk/jcc/CHANGES
    lucene/pylucene/trunk/jcc/jcc2/python.py
    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=1809363&r1=1809362&r2=1809363&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/CHANGES (original)
+++ lucene/pylucene/trunk/jcc/CHANGES Sat Sep 23 01:21:15 2017
@@ -3,6 +3,7 @@ Version 3.0 ->
  - fixed bug PYLUCENE-36 (Paulo Villegas)
  - reworked type construction to use PyType_FromSpecWithBases (Python 3)
  - added 'm' suffix to linux -lpython statement for shared jcc lib
+ - fixed bug with using split instead of rpartition on path (Petrus Hyvönen)
  - 
 
 Version 2.23 -> 3.0

Modified: lucene/pylucene/trunk/jcc/jcc2/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc2/python.py?rev=1809363&r1=1809362&r2=1809363&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc2/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc2/python.py Sat Sep 23 01:21:15 2017
@@ -1691,7 +1691,7 @@ def compile(env, jccPath, output, module
                 else:
                     copytree(module, dst, False)
             else:
-                shutil.copy2(module.split('.')[0] + '.py', modulePath)
+                shutil.copy2(rpartition(module, '.')[0] + '.py', modulePath)
 
     line(out)
     line(out, 0, 'class JavaError(Exception):')

Modified: lucene/pylucene/trunk/jcc/jcc3/python.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/jcc/jcc3/python.py?rev=1809363&r1=1809362&r2=1809363&view=diff
==============================================================================
--- lucene/pylucene/trunk/jcc/jcc3/python.py (original)
+++ lucene/pylucene/trunk/jcc/jcc3/python.py Sat Sep 23 01:21:15 2017
@@ -1684,7 +1684,7 @@ def compile(env, jccPath, output, module
                 else:
                     copytree(module, dst, False)
             else:
-                shutil.copy2(module.split('.')[0] + '.py', modulePath)
+                shutil.copy2(module.rpartition('.')[0] + '.py', modulePath)
 
     line(out)
     line(out, 0, 'class JavaError(Exception):')



Mime
View raw message