Kaydet (Commit) 49c12ac0 authored tarafından Thomas Heller's avatar Thomas Heller

Fix ctypes tests on OS X.

üst 3e6cbf17
...@@ -28,12 +28,6 @@ DEFAULT_LIBRARY_FALLBACK = [ ...@@ -28,12 +28,6 @@ DEFAULT_LIBRARY_FALLBACK = [
"/usr/lib", "/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): def dyld_env(env, var):
if env is None: if env is None:
env = os.environ env = os.environ
...@@ -123,8 +117,6 @@ def dyld_find(name, executable_path=None, env=None): ...@@ -123,8 +117,6 @@ def dyld_find(name, executable_path=None, env=None):
""" """
Find a library or framework using dyld semantics 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( for path in dyld_image_suffix_search(chain(
dyld_override_search(name, env), dyld_override_search(name, env),
dyld_executable_path_search(name, executable_path), dyld_executable_path_search(name, executable_path),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment