thon-standalone.2.7-b2.source-code.icu4j.diff Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone Show documentation
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.
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 @@
-
-
+
+