Changeset 14102
- Timestamp:
- Nov 18, 2019 11:56:46 AM (3 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/dev-5819 merged: 14098
- Property svn:mergeinfo changed
-
trunk/Python/src/pymodelica/compiler_wrappers.py
r14056 r14102 24 24 from .compiler_interface import * 25 25 from .compiler_logging import CompilerLogHandler, LogHandlerThread 26 from pymodelica.common import python3_flag27 26 from pymodelica.common.core import list_to_string 28 27 from .compiler_exceptions import * 29 28 from distutils.version import StrictVersion 29 jpype_jexception_compatibility = True if StrictVersion(jpype.__version__) >= '0.7.0' else False 30 30 class ModelicaCompiler(object): 31 31 """ … … 40 40 Modelica models. A compiler instance can be used multiple times. 41 41 """ 42 self._java_exception = jpype.JException if python3_flagelse jpype.JavaException42 self._java_exception = jpype.JException if jpype_jexception_compatibility else jpype.JavaException 43 43 44 44 try: … … 523 523 # we need to compare the raised exception with the reference exception 524 524 # in different ways. 525 return type(raised_ex) is ref_ex if python3_flagelse raised_ex.javaClass() is ref_ex525 return type(raised_ex) is ref_ex if jpype_jexception_compatibility else raised_ex.javaClass() is ref_ex 526 526 527 527 if _py_handle_exception(ex, CompilerException):
Note: See TracChangeset
for help on using the changeset viewer.