[pypy-svn] r49615 - pypy/branch/clr-module-improvements/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Tue Dec 11 00:19:43 CET 2007
Author: antocuni
Date: Tue Dec 11 00:19:42 2007
New Revision: 49615
Modified:
pypy/branch/clr-module-improvements/pypy/translator/cli/dotnet.py
Log:
fix for pythonnet 2.0
Modified: pypy/branch/clr-module-improvements/pypy/translator/cli/dotnet.py
==============================================================================
--- pypy/branch/clr-module-improvements/pypy/translator/cli/dotnet.py (original)
+++ pypy/branch/clr-module-improvements/pypy/translator/cli/dotnet.py Tue Dec 11 00:19:42 2007
@@ -421,7 +421,7 @@
def _create_NativeException(cliClass):
from pypy.translator.cli.query import getattr_ex
TYPE = cliClass._INSTANCE
- if PythonNet.__name__ == 'CLR':
+ if PythonNet.__name__ in ('CLR', 'clr'):
# we are using pythonnet -- use the .NET class
name = '%s.%s' % (TYPE._namespace, TYPE._classname)
res = getattr_ex(PythonNet, name)
More information about the Pypy-commit
mailing list