[pypy-svn] r49742 - pypy/branch/clr-module-improvements/pypy/module/clr

regmee at codespeak.net regmee at codespeak.net
Thu Dec 13 21:52:29 CET 2007


Author: regmee
Date: Thu Dec 13 21:52:28 2007
New Revision: 49742

Modified:
   pypy/branch/clr-module-improvements/pypy/module/clr/interp_clr.py
Log:
bug fix to enable support for generic Dictionary class

Modified: pypy/branch/clr-module-improvements/pypy/module/clr/interp_clr.py
==============================================================================
--- pypy/branch/clr-module-improvements/pypy/module/clr/interp_clr.py	(original)
+++ pypy/branch/clr-module-improvements/pypy/module/clr/interp_clr.py	Thu Dec 13 21:52:28 2007
@@ -161,8 +161,9 @@
             is_static = get_meth.get_IsStatic()
         if b_prop.get_CanWrite():
             set_meth = b_prop.GetSetMethod()
-            set_name = set_meth.get_Name()
-            is_static = set_meth.get_IsStatic()
+            if set_meth:
+                set_name = set_meth.get_Name()
+                is_static = set_meth.get_IsStatic()
         b_indexparams = b_prop.GetIndexParameters()
         if len(b_indexparams) == 0:
             properties.append((b_prop.get_Name(), get_name, set_name, is_static))



More information about the Pypy-commit mailing list