summaryrefslogtreecommitdiff
path: root/paste/debug/fsdiff.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:33:32 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:33:32 +0200
commit3026086c19b45382d5ceca778a5458233b485ce9 (patch)
treea58fb49cd65f9b7ff24029aeb4dfaccd657128dd /paste/debug/fsdiff.py
parent3e25cb1adbf0dce96f49a270d07028550b15e33c (diff)
parentb9ceb0a57e2c48f95e94693da5f3f4b86fbc3bff (diff)
downloadpaste-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.py17
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):
"""