diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-04 16:32:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-04 16:32:03 +0300 |
commit | 4417aee6f26adabc46552b53481656d9e37281b1 (patch) | |
tree | 16c671c1f1089f09142a5c17f231ab0ce17d8240 /obnamlib/repo_interface.py | |
parent | 572faf19054c59bf6ecf181b448c4392b35548df (diff) | |
download | obnam-4417aee6f26adabc46552b53481656d9e37281b1.tar.gz |
Cleanups suggested by pep8
Diffstat (limited to 'obnamlib/repo_interface.py')
-rw-r--r-- | obnamlib/repo_interface.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py index 0081aeb3..59f92d95 100644 --- a/obnamlib/repo_interface.py +++ b/obnamlib/repo_interface.py @@ -73,6 +73,7 @@ _integer_keys = [ for i, name in enumerate(_string_keys + _integer_keys): globals()[name] = i + def _filter_integer_keys(prefix): return [globals()[name] for name in _integer_keys @@ -311,7 +312,7 @@ class RepositoryInterface(object): # Operations on the repository itself. @classmethod - def setup_hooks(self, hooks): # pragma: no cover + def setup_hooks(self, hooks): # pragma: no cover '''Create any hooks for this repository format. Note that this is a class method. @@ -692,7 +693,7 @@ class RepositoryInterface(object): ''' raise NotImplementedError() - def walk_generation(self, gen_id, dirname): # pragma: no cover + def walk_generation(self, gen_id, dirname): # pragma: no cover '''Like os.walk, but for a generation. This is a generator. Each return value is a pathname. @@ -858,7 +859,7 @@ class RepositoryInterface(object): raise NotImplementedError() -class RepositoryInterfaceTests(unittest.TestCase): # pragma: no cover +class RepositoryInterfaceTests(unittest.TestCase): # pragma: no cover '''Tests for implementations of RepositoryInterface. |