diff options
author | Marc-André Lemburg <mal@egenix.com> | 2004-12-02 20:14:16 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2004-12-02 20:14:16 (GMT) |
commit | 58d89dba7d65997d3994f7e21ac5bc68534eacae (patch) | |
tree | 53f7f70b3e8b07111ff8e7955358e776d961d042 /Lib | |
parent | 166878f5440befa45069a2764b94ae96e6dcad4a (diff) | |
download | cpython-58d89dba7d65997d3994f7e21ac5bc68534eacae.zip cpython-58d89dba7d65997d3994f7e21ac5bc68534eacae.tar.gz cpython-58d89dba7d65997d3994f7e21ac5bc68534eacae.tar.bz2 |
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 22d0ab3..08ff543 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -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): |