diff options
author | Craig Northway <craig.northway@gmail.com> | 2014-07-25 11:26:48 +1000 |
---|---|---|
committer | Craig Northway <craig.northway@gmail.com> | 2014-07-25 19:19:22 +1000 |
commit | a23d0d8617ba3119069e610fc7b0850a17322726 (patch) | |
tree | d8bc5213dd7e7c7f0befdf65afecb13d5435f873 /git/db/py/submodule.py | |
parent | 75194159abce545bfa38c3172efb42da9b0017dc (diff) | |
download | gitpython-a23d0d8617ba3119069e610fc7b0850a17322726.tar.gz |
Autopep8 fixes with maximum line length 120
Diffstat (limited to 'git/db/py/submodule.py')
-rw-r--r-- | git/db/py/submodule.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/git/db/py/submodule.py b/git/db/py/submodule.py index 0f2120c5..39b20961 100644 --- a/git/db/py/submodule.py +++ b/git/db/py/submodule.py @@ -8,26 +8,27 @@ from git.db.interface import SubmoduleDB __all__ = ["PureSubmoduleDB"] + class PureSubmoduleDB(SubmoduleDB): + """Pure python implementation of submodule functionality""" - + @property def submodules(self): return Submodule.list_items(self) - + def submodule(self, name): try: return self.submodules[name] except IndexError: raise ValueError("Didn't find submodule named %r" % name) # END exception handling - + def create_submodule(self, *args, **kwargs): return Submodule.add(self, *args, **kwargs) - + def iter_submodules(self, *args, **kwargs): return RootModule(self).traverse(*args, **kwargs) - + def submodule_update(self, *args, **kwargs): return RootModule(self).update(*args, **kwargs) - |