[pypy-commit] pypy default: windows fix (mattip, stakkars)

ctismer noreply at buildbot.pypy.org
Fri Dec 9 14:44:10 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: 
Changeset: r50324:8abfe57358d8
Date: 2011-12-09 14:20 +0100
http://bitbucket.org/pypy/pypy/changeset/8abfe57358d8/

Log:	windows fix (mattip, stakkars)

diff --git a/pypy/rlib/rdynload.py b/pypy/rlib/rdynload.py
--- a/pypy/rlib/rdynload.py
+++ b/pypy/rlib/rdynload.py
@@ -115,7 +115,8 @@
 if _WIN32:
     DLLHANDLE = rwin32.HMODULE
 
-    def dlopen(name):
+    def dlopen(name, mode=-1):
+        # mode is unused on windows, but a consistant signature
         res = rwin32.LoadLibrary(name)
         if not res:
             err = rwin32.GetLastError()


More information about the pypy-commit mailing list