From c8e70749887370a99adeda972cc3503397b5f9a7 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 21:09:47 +0100 Subject: pep8 linting (trailing whitespace) W291 trailing whitespace --- git/config.py | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'git/config.py') diff --git a/git/config.py b/git/config.py index b7b36e9e..15aa76f0 100644 --- a/git/config.py +++ b/git/config.py @@ -74,12 +74,12 @@ def set_dirty_and_flush_changes(non_const_func): class SectionConstraint(object): - """Constrains a ConfigParser to only option commands which are constrained to + """Constrains a ConfigParser to only option commands which are constrained to always use the section we have been initialized with. 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", + _valid_attrs_ = ("get_value", "set_value", "get", "set", "getint", "getfloat", "getboolean", "has_option", "remove_section", "remove_option", "options") def __init__(self, config, section): @@ -92,7 +92,7 @@ class SectionConstraint(object): return super(SectionConstraint, self).__getattribute__(attr) def _call_config(self, method, *args, **kwargs): - """Call the configuration at the given method which must take a section name + """Call the configuration at the given method which must take a section name as first argument""" return getattr(self._config, method)(self._section_name, *args, **kwargs) @@ -109,10 +109,10 @@ class GitConfigParser(cp.RawConfigParser, object): This variation behaves much like the git.config command such that the configuration will be read on demand based on the filepath given during initialization. - The changes will automatically be written once the instance goes out of scope, but + The changes will automatically be written once the instance goes out of scope, but can be triggered manually as well. - The configuration file will be locked if you intend to change values preventing other + The configuration file will be locked if you intend to change values preventing other instances to write concurrently. :note: @@ -127,7 +127,7 @@ class GitConfigParser(cp.RawConfigParser, object): t_lock = LockFile re_comment = re.compile('^\s*[#;]') - #} END configuration + #} END configuration OPTCRE = re.compile( r'\s*(?P