Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49c12ac

Browse files
author
Thomas Heller
committed
Fix ctypes tests on OS X.
1 parent 3e6cbf1 commit 49c12ac

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Lib/ctypes/macholib/dyld.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@
2828
"/usr/lib",
2929
]
3030

31-
def ensure_utf8(s):
32-
"""Not all of PyObjC and Python understand unicode paths very well yet"""
33-
if isinstance(s, str):
34-
return s.encode('utf8')
35-
return s
36-
3731
def dyld_env(env, var):
3832
if env is None:
3933
env = os.environ
@@ -123,8 +117,6 @@ def dyld_find(name, executable_path=None, env=None):
123117
"""
124118
Find a library or framework using dyld semantics
125119
"""
126-
name = ensure_utf8(name)
127-
executable_path = ensure_utf8(executable_path)
128120
for path in dyld_image_suffix_search(chain(
129121
dyld_override_search(name, env),
130122
dyld_executable_path_search(name, executable_path),

0 commit comments

Comments
 (0)