aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-15 13:31:00 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-15 13:31:00 -0400
commit915f05b7445af2c51b63d22e429d9a7397221518 (patch)
tree9ff03ffcad38171cba39620cc0e68d98eed9f2d3 /setuptools/package_index.py
parentb34eec598da6d2668de58cba166f5ac5d063ba9d (diff)
downloadexternal_python_setuptools-915f05b7445af2c51b63d22e429d9a7397221518.tar.gz
external_python_setuptools-915f05b7445af2c51b63d22e429d9a7397221518.tar.bz2
external_python_setuptools-915f05b7445af2c51b63d22e429d9a7397221518.zip
Use 'is_valid' instead of simply 'valid' or 'check', which are less clear about the purpose of the method. Fixes AttributeError introduces in 0.9.2. Fixes #42.0.9.3
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 4c4a647d..70aabd1b 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -202,7 +202,7 @@ class ContentChecker(object):
"""
return
- def check(self):
+ def is_valid(self):
"""
Check the hash. Return False if validation fails.
"""
@@ -239,7 +239,7 @@ class HashChecker(ContentChecker):
def feed(self, block):
self.hash.update(block)
- def check(self):
+ def is_valid(self):
return self.hash.hexdigest() == self.expected
def report(self, reporter, template):
@@ -445,7 +445,7 @@ class PackageIndex(Environment):
"""
checker.report(self.debug,
"Validating %%s checksum for %s" % filename)
- if not checker.valid():
+ if not checker.is_valid():
tfp.close()
os.unlink(filename)
raise DistutilsError(