All Downloads are FREE. Search and download functionalities are using the official Maven repository.

thon-standalone.2.7-b2.source-code.icu4j.diff Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4
Show newest version
diff -r 00594f892a87 Lib/unicodedata.py
--- a/Lib/unicodedata.py	Mon Apr 07 20:28:09 2014 -0600
+++ b/Lib/unicodedata.py	Mon Apr 07 20:33:22 2014 -0600
@@ -1,9 +1,18 @@
 import java.lang.Character
-from com.ibm.icu.text import Normalizer
-from com.ibm.icu.lang import UCharacter, UProperty
-from com.ibm.icu.util import VersionInfo
-from com.ibm.icu.lang.UCharacter import EastAsianWidth, DecompositionType
-from com.ibm.icu.lang.UCharacterEnums import ECharacterCategory, ECharacterDirection
+try:
+    # import from jarjar-ed version
+    from org.python.icu.text import Normalizer
+    from org.python.icu.lang import UCharacter, UProperty
+    from org.python.icu.util import VersionInfo
+    from org.python.icu.lang.UCharacter import EastAsianWidth, DecompositionType
+    from org.python.icu.lang.UCharacterEnums import ECharacterCategory, ECharacterDirection
+except ImportError:
+    # development version of Jython, so use extlibs
+    from com.ibm.icu.text import Normalizer
+    from com.ibm.icu.lang import UCharacter, UProperty
+    from com.ibm.icu.util import VersionInfo
+    from com.ibm.icu.lang.UCharacter import EastAsianWidth, DecompositionType
+    from com.ibm.icu.lang.UCharacterEnums import ECharacterCategory, ECharacterDirection
 
 
 __all__ = (
diff -r 00594f892a87 build.xml
--- a/build.xml	Mon Apr 07 20:28:09 2014 -0600
+++ b/build.xml	Mon Apr 07 20:33:22 2014 -0600
@@ -445,7 +445,7 @@
 
     
         
-            
+            
             
             
             
@@ -576,6 +576,8 @@
             
             
             
+            
+            
             
             
             
@@ -596,8 +598,8 @@
             
             
             
-			
-			
+	    
+	    
             
             
             




© 2015 - 2024 Weber Informatics LLC | Privacy Policy