diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 02:33:32 +0200 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-22 02:33:32 +0200 |
| commit | 3026086c19b45382d5ceca778a5458233b485ce9 (patch) | |
| tree | a58fb49cd65f9b7ff24029aeb4dfaccd657128dd /paste/debug/fsdiff.py | |
| parent | 3e25cb1adbf0dce96f49a270d07028550b15e33c (diff) | |
| parent | b9ceb0a57e2c48f95e94693da5f3f4b86fbc3bff (diff) | |
| download | paste-3026086c19b45382d5ceca778a5458233b485ce9.tar.gz | |
Merged in mfrobben/paste (pull request #21)
Fix bad reference to iterator variable
Diffstat (limited to 'paste/debug/fsdiff.py')
| -rw-r--r-- | paste/debug/fsdiff.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/paste/debug/fsdiff.py b/paste/debug/fsdiff.py index 156a2e4..6f9ec2d 100644 --- a/paste/debug/fsdiff.py +++ b/paste/debug/fsdiff.py @@ -17,12 +17,8 @@ try: # Python 3 import collections.UserDict as IterableUserDict except ImportError: - try: - # Python 2.5-2.7 - from UserDict import IterableUserDict - except ImportError: - # Python <= 2.4 - from paste.util.UserDict24 import IterableUserDict + # Python 2.5-2.7 + from UserDict import IterableUserDict import operator import re @@ -131,13 +127,6 @@ class Snapshot(IterableUserDict): return True return False - def _ignore_file(self, fn): - if fn in self.ignore_paths: - return True - if self.ignore_hidden and os.path.basename(fn).startswith('.'): - return True - return False - def _find_traverse(self, path, result): full = os.path.join(self.base_path, path) if os.path.isdir(full): @@ -298,7 +287,7 @@ class Dir(File): "Directory %r doesn't have content" % self) bytes = property(bytes__get) - + def _space_prefix(pref, full, sep=None, indent=None, include_sep=True): """ |
