diff --git a/attic/_version.py b/attic/_version.py index f87a0f5f2..bb5f6079b 100644 --- a/attic/_version.py +++ b/attic/_version.py @@ -1,7 +1,7 @@ IN_LONG_VERSION_PY = True # This file helps to compute a version number in source trees obtained from -# git-archive tarball (such as those provided by githubs download-from-tag +# git-archive tarball (such as those provided by github's download-from-tag # feature). Distribution tarballs (build by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains the computed version number. diff --git a/attic/repository.py b/attic/repository.py index b52d41c61..d2905727f 100644 --- a/attic/repository.py +++ b/attic/repository.py @@ -79,9 +79,9 @@ class Repository(object): config.write(fd) def get_index_transaction_id(self): - indicies = sorted((int(name[6:]) for name in os.listdir(self.path) if name.startswith('index.') and name[6:].isdigit())) - if indicies: - return indicies[-1] + indices = sorted((int(name[6:]) for name in os.listdir(self.path) if name.startswith('index.') and name[6:].isdigit())) + if indices: + return indices[-1] else: return None diff --git a/attic/testsuite/__init__.py b/attic/testsuite/__init__.py index 684eeb91b..6b9d4fe91 100644 --- a/attic/testsuite/__init__.py +++ b/attic/testsuite/__init__.py @@ -19,7 +19,7 @@ except ImportError: has_lchflags = hasattr(os, 'lchflags') -# The mtime get/set precison varies on different OS and Python versions +# The mtime get/set precision varies on different OS and Python versions if 'HAVE_FUTIMENS' in getattr(posix, '_have_functions', []): st_mtime_ns_round = 0 elif 'HAVE_UTIMES' in sysconfig.get_config_vars(): @@ -68,7 +68,7 @@ class AtticTestCase(unittest.TestCase): if has_lchflags: attrs.append('st_flags') if not fuse or not os.path.isdir(path1): - # dir nlink is always 1 on our fuse fileystem + # dir nlink is always 1 on our fuse filesystem attrs.append('st_nlink') d1 = [filename] + [getattr(s1, a) for a in attrs] d2 = [filename] + [getattr(s2, a) for a in attrs] @@ -109,7 +109,7 @@ def get_tests(suite): class TestLoader(unittest.TestLoader): - """A customzied test loader that properly detects and filters our test cases + """A customized test loader that properly detects and filters our test cases """ def loadTestsFromName(self, pattern, module=None):