diff options
author | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 22:08:08 -0300 |
---|---|---|
committer | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 22:08:08 -0300 |
commit | b62a93ab0f8f3d442ee8e0155df7c8a9355816a7 (patch) | |
tree | 257d1a08a89ac5f36af204f7a700aaf553620f4b | |
parent | 554f49e7d75d1cbbee7567c577744222295eadd4 (diff) | |
download | pylint-b62a93ab0f8f3d442ee8e0155df7c8a9355816a7.tar.gz |
code commented and import moved so it won't run when python>2.5
-rw-r--r-- | reporters/__init__.py | 2 | ||||
-rw-r--r-- | setup.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/reporters/__init__.py b/reporters/__init__.py index ced2f77..a767a05 100644 --- a/reporters/__init__.py +++ b/reporters/__init__.py @@ -28,8 +28,8 @@ if sys.version_info >= (3, 0): def cmp(a, b): return (a > b) - (a < b) -import stringformat if sys.version_info < (2, 6): + import stringformat stringformat.init(True) def diff_string(old, new): @@ -132,6 +132,9 @@ class MyInstallLib(install_lib.install_lib): exclude = set() shutil.rmtree(dest, ignore_errors=True) shutil.copytree(directory, dest) + # since python2.5's copytree doesn't support the ignore + # parameter, the following loop to remove the exclude set + # was added for (dirpath, dirnames, filenames) in os.walk(dest): for n in filenames: if n in exclude: |