Commits

Kelsey Hightower committed 8a21506

Fixing typos in distutils2.index.mirrors

Comments (0)

Files changed (1)

mirror-authenticity

 # HG changeset patch
-# Parent 902243dc8938fda4cadce304653725e36ea8be86
+# Parent 43a2375fb8a023cb62996f6f223d48a73fb342be
 Adding support for pep 381 -- Mirror Authenticity
 
 diff --git a/distutils2/index/errors.py b/distutils2/index/errors.py
 +    The central index is assumed to be trusted, but the mirrors might be
 +    tampered.
 +
-+    In this case validate the project's simple page using the recommend
++    In this case validate the project's simple page using the recommended
 +    verification algorithm proposed by PEP 381
 +
 +    :param: url: the PyPI mirror to use
 +        return False
 +    key = load_key(server_key)
 +    try:
-+        # verify funcation taken from pypi tools
++        # verify function taken from pypi tools
 +        # https://svn.python.org/packages/trunk/pypi/tools/verify.py
 +        if verify(key, data, sig):
 +            return True