[pypy-svn] r77275 - pypy/branch/jitffi/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Wed Sep 22 16:57:45 CEST 2010


Author: fijal
Date: Wed Sep 22 16:57:44 2010
New Revision: 77275

Modified:
   pypy/branch/jitffi/pypy/rlib/clibffi.py
Log:
Remove a parameter that noone seems to use


Modified: pypy/branch/jitffi/pypy/rlib/clibffi.py
==============================================================================
--- pypy/branch/jitffi/pypy/rlib/clibffi.py	(original)
+++ pypy/branch/jitffi/pypy/rlib/clibffi.py	Wed Sep 22 16:57:44 2010
@@ -552,16 +552,15 @@
         AbstractFuncPtr.__del__(self)
 
 class CDLL(object):
-    def __init__(self, libname, unload_on_finalization=True):
+    def __init__(self, libname):
         """Load the library, or raises DLOpenError."""
-        self.unload_on_finalization = unload_on_finalization
         self.lib = lltype.nullptr(rffi.CCHARP.TO)
         ll_libname = rffi.str2charp(libname)
         self.lib = dlopen(ll_libname)
         lltype.free(ll_libname, flavor='raw')
 
     def __del__(self):
-        if self.lib and self.unload_on_finalization:
+        if self.lib:
             dlclose(self.lib)
             self.lib = lltype.nullptr(rffi.CCHARP.TO)
 



More information about the Pypy-commit mailing list