[Python-checkins] r76849 - python/trunk/Lib/distutils/command/install_data.py
tarek.ziade
python-checkins at python.org
Tue Dec 15 07:29:19 CET 2009
Author: tarek.ziade
Date: Tue Dec 15 07:29:19 2009
New Revision: 76849
Log:
cleaned up the module (PEP 8 + old fashion test removal)
Modified:
python/trunk/Lib/distutils/command/install_data.py
Modified: python/trunk/Lib/distutils/command/install_data.py
==============================================================================
--- python/trunk/Lib/distutils/command/install_data.py (original)
+++ python/trunk/Lib/distutils/command/install_data.py Tue Dec 15 07:29:19 2009
@@ -8,7 +8,6 @@
__revision__ = "$Id$"
import os
-from types import StringType
from distutils.core import Command
from distutils.util import change_root, convert_path
@@ -35,7 +34,7 @@
self.data_files = self.distribution.data_files
self.warn_dir = 1
- def finalize_options (self):
+ def finalize_options(self):
self.set_undefined_options('install',
('install_data', 'install_dir'),
('root', 'root'),
@@ -45,7 +44,7 @@
def run(self):
self.mkpath(self.install_dir)
for f in self.data_files:
- if type(f) is StringType:
+ if isinstance(f, str):
# it's a simple file, so copy it
f = convert_path(f)
if self.warn_dir:
More information about the Python-checkins
mailing list