mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
This commit is contained in:
parent
166878f544
commit
58d89dba7d
1 changed files with 4 additions and 2 deletions
|
|
@ -9,8 +9,10 @@
|
||||||
|
|
||||||
|
|
||||||
# Extension for Python source files.
|
# 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):
|
class install_lib (Command):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue