diff options
author | Thomas Heller <theller@ctypes.org> | 2007-07-14 18:51:36 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-07-14 18:51:36 +0000 |
commit | c4e3a82c25532567f70afeaaa5bdc7f55d0a0ea3 (patch) | |
tree | a9d5807d967135307b921fc6ddcf6e7bdfe53b53 /Lib | |
parent | 1d66620b27ec36ef0a18eb1e61b9f2e97b87667d (diff) | |
download | cpython-c4e3a82c25532567f70afeaaa5bdc7f55d0a0ea3.tar.gz |
Fix ctypes tests on OS X.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/macholib/dyld.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/ctypes/macholib/dyld.py b/Lib/ctypes/macholib/dyld.py index 837da4d4df..2bd43c353e 100644 --- a/Lib/ctypes/macholib/dyld.py +++ b/Lib/ctypes/macholib/dyld.py @@ -28,12 +28,6 @@ DEFAULT_LIBRARY_FALLBACK = [ "/usr/lib", ] -def ensure_utf8(s): - """Not all of PyObjC and Python understand unicode paths very well yet""" - if isinstance(s, str): - return s.encode('utf8') - return s - def dyld_env(env, var): if env is None: env = os.environ @@ -123,8 +117,6 @@ def dyld_find(name, executable_path=None, env=None): """ Find a library or framework using dyld semantics """ - name = ensure_utf8(name) - executable_path = ensure_utf8(executable_path) for path in dyld_image_suffix_search(chain( dyld_override_search(name, env), dyld_executable_path_search(name, executable_path), |