Author: thomas.heller
Date: Sat Jul 14 20:51:36 2007
New Revision: 56375
Modified:
python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py
Log:
Fix ctypes tests on OS X.
Modified: python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py
==============================================================================
--- python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py (original)
+++ python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py Sat Jul 14
20:51:36 2007
@@ -28,12 +28,6 @@
"/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 @@
"""
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),
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins