Changeset 602


Ignore:
Timestamp:
Dec 10, 2015, 10:28:23 PM (9 years ago)
Author:
dmik
Message:

python: ctypes: Provide dummy _dlopen implementation.

This makes mozilla's virtualenv work again in Firefox 31 and above.
See #140 for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified python/trunk/Lib/ctypes/__init__.py

    r391 r602  
    141141    from _ctypes import dlopen as _dlopen
    142142
     143elif _os.name == "os2":
     144    # provide a dummy implmementation that always returns nothing (see #140)
     145    def _dlopen(name, mode):
     146        return
     147
    143148from _ctypes import sizeof, byref, addressof, alignment, resize
    144149from _ctypes import get_errno, set_errno
Note: See TracChangeset for help on using the changeset viewer.