Message6941
> I added the unconditional ImportError and it was, as one would expect,
> caught, resulting in the non-mangled name being used and everything working.
AS I thought.
Let's focus on trying to get the import working correctly.
How about this?
#######################
import java
try:
# Name mangled by jarjar?
import org.python.apache.xerces.parsers.SAXParser
_xerces_parser = "org.python.apache.xerces.parsers.SAXParser"
except ImportError:
_xerces_parser = "org.apache.xerces.parsers.SAXParser"
except java.lang.ClassDefNotFoundException:
_xerces_parser = "org.apache.xerces.parsers.SAXParser"
#######################
We can tidy it up later if it works. |
|
Date |
User |
Action |
Args |
2012-03-20 22:45:10 | amak | set | messageid: <1332283510.66.0.0900215581119.issue1537@psf.upfronthosting.co.za> |
2012-03-20 22:45:10 | amak | set | recipients:
+ amak, kwatford |
2012-03-20 22:45:10 | amak | link | issue1537 messages |
2012-03-20 22:45:10 | amak | create | |
|