From 58d89dba7d65997d3994f7e21ac5bc68534eacae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Thu, 2 Dec 2004 20:14:16 +0000 Subject: Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2). --- Lib/distutils/command/install_lib.py | 6 ++++-- 1 file 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): -- cgit v0.12