diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-12-15 06:29:19 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-12-15 06:29:19 (GMT) |
commit | c0680e2d4b6fcee6e8b5a1b049de2cfa95668c7d (patch) | |
tree | 196e23458d617c855e31f48ca06490c3a6eddbfa /Lib | |
parent | bf306cadd6d5bbbc19d12b92ba6afd6591293d50 (diff) | |
download | cpython-c0680e2d4b6fcee6e8b5a1b049de2cfa95668c7d.zip cpython-c0680e2d4b6fcee6e8b5a1b049de2cfa95668c7d.tar.gz cpython-c0680e2d4b6fcee6e8b5a1b049de2cfa95668c7d.tar.bz2 |
cleaned up the module (PEP 8 + old fashion test removal)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/install_data.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index ec78ce3..ab40797 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -8,7 +8,6 @@ platform-independent data files.""" __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 @@ class install_data(Command): 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 @@ class install_data(Command): 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: |