[Jython-checkins] jython (2.5): Remove java imports from func bodies for pep8 and perf.

frank.wierzbicki jython-checkins at python.org
Fri Jul 27 23:57:18 CEST 2012


http://hg.python.org/jython/rev/18db8d13c227
changeset:   6815:18db8d13c227
branch:      2.5
parent:      6813:005b97117ae9
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Fri Jul 27 14:48:44 2012 -0700
summary:
  Remove java imports from func bodies for pep8 and perf.

files:
  Lib/decimal.py |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Lib/decimal.py b/Lib/decimal.py
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -3340,9 +3340,6 @@
 
     # support for Jython __tojava__:
     def __tojava__(self, java_class):
-        from java.lang import Object
-        from java.math import BigDecimal
-        from org.python.core import Py
         if java_class not in (BigDecimal, Object):
             return Py.NoConversion
         return BigDecimal(str(self))

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list