diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-15 13:31:00 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-15 13:31:00 -0400 |
commit | 915f05b7445af2c51b63d22e429d9a7397221518 (patch) | |
tree | 9ff03ffcad38171cba39620cc0e68d98eed9f2d3 /setuptools/package_index.py | |
parent | b34eec598da6d2668de58cba166f5ac5d063ba9d (diff) | |
download | external_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-x | setuptools/package_index.py | 6 |
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( |