]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
authorMarc-André Lemburg <mal@egenix.com>
Thu, 2 Dec 2004 20:14:16 +0000 (20:14 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Thu, 2 Dec 2004 20:14:16 +0000 (20:14 +0000)
Lib/distutils/command/install_lib.py

index 22d0ab37a7570cb6eeaef7ed728d793ff4c769eb..08ff543449c04c773108c875601415b3f5755ac4 100644 (file)
@@ -9,8 +9,10 @@ from distutils.errors import DistutilsOptionError
 
 
 # Extension for Python source files.
-PYTHON_SOURCE_EXTENSION = os.extsep + "py"
-
+if hasattr(os, 'extsep'):
+    PYTHON_SOURCE_EXTENSION = os.extsep + "py"
+else:
+    PYTHON_SOURCE_EXTENSION = ".py"
 
 class install_lib (Command):