reintroduced the names in Distutils for APIs that were relocated

This commit is contained in:
Tarek Ziadé 2010-01-26 21:21:54 +00:00
parent b28e5d7e41
commit 0276c7ad0b
2 changed files with 13 additions and 0 deletions

View file

@ -17,6 +17,10 @@ from distutils.errors import DistutilsByteCompileError
_sysconfig = __import__('sysconfig')
# kept for backward compatibility
# since this API was relocated
get_platform = _sysconfig.get_platform
def convert_path(pathname):
"""Return 'pathname' as a name that will work on the native filesystem.