Commit 0ad92a85 authored by Florent Xicluna's avatar Florent Xicluna

#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.

parent 5db75ca6
......@@ -676,7 +676,7 @@ class build_ext (Command):
# extensions in debug_mode are named 'module_d.pyd' under windows
so_ext = get_config_var('SO')
if os.name == 'nt' and self.debug:
return apply(os.path.join, ext_path) + '_d' + so_ext
return os.path.join(*ext_path) + '_d' + so_ext
return os.path.join(*ext_path) + so_ext
def get_export_symbols (self, ext):
......
......@@ -206,7 +206,7 @@ def convert_path (pathname):
paths.remove('.')
if not paths:
return os.curdir
return apply(os.path.join, paths)
return os.path.join(*paths)
# convert_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