diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 12:16:44 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 12:16:44 +0100 |
commit | 257264743154b975bc156f425217593be14727a9 (patch) | |
tree | 755ccbe76bc225ef237264e1b45bcb17202087ec /git/config.py | |
parent | 4d9b7b09a7c66e19a608d76282eacc769e349150 (diff) | |
download | gitpython-257264743154b975bc156f425217593be14727a9.tar.gz |
Applied autopep8
Commandline was
autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/git/config.py b/git/config.py index 15aa76f0..8a15466f 100644 --- a/git/config.py +++ b/git/config.py @@ -80,7 +80,7 @@ class SectionConstraint(object): It supports all ConfigParser methods that operate on an option""" __slots__ = ("_config", "_section_name") _valid_attrs_ = ("get_value", "set_value", "get", "set", "getint", "getfloat", "getboolean", "has_option", - "remove_section", "remove_option", "options") + "remove_section", "remove_option", "options") def __init__(self, config, section): self._config = config @@ -136,7 +136,7 @@ class GitConfigParser(cp.RawConfigParser, object): # (either : or =), followed # by any # space/tab r'(?P<value>.*)$' # everything up to eol - ) + ) # list of RawConfigParser methods able to change the instance _mutating_methods_ = ("add_section", "remove_section", "remove_option", "set") @@ -165,7 +165,8 @@ class GitConfigParser(cp.RawConfigParser, object): if not read_only: if isinstance(file_or_files, (tuple, list)): - raise ValueError("Write-ConfigParsers can operate on a single file only, multiple files have been passed") + raise ValueError( + "Write-ConfigParsers can operate on a single file only, multiple files have been passed") # END single file check if not isinstance(file_or_files, basestring): @@ -338,7 +339,7 @@ class GitConfigParser(cp.RawConfigParser, object): # make sure we do not overwrite into an existing file if hasattr(fp, 'truncate'): fp.truncate() - #END + # END # END handle stream or file # WRITE DATA |