From f5d11b750ecc982541d1f936488248f0b42d75d3 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:15:50 +0100 Subject: pep8 linting (whitespaces) W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file --- git/refs/remote.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'git/refs/remote.py') diff --git a/git/refs/remote.py b/git/refs/remote.py index 6f075619..4c73b094 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -7,12 +7,12 @@ import os __all__ = ["RemoteReference"] - + class RemoteReference(Head): """Represents a reference pointing to a remote head.""" _common_path_default = Head._remote_common_path_default - - + + @classmethod def iter_items(cls, repo, common_path = None, remote=None): """Iterate remote references, and if given, constrain them to the given remote""" @@ -21,7 +21,7 @@ class RemoteReference(Head): common_path = join_path(common_path, str(remote)) # END handle remote constraint return super(RemoteReference, cls).iter_items(repo, common_path) - + @classmethod def delete(cls, repo, *refs, **kwargs): """Delete the given remote references. @@ -38,7 +38,7 @@ class RemoteReference(Head): except OSError: pass # END for each ref - + @classmethod def create(cls, *args, **kwargs): """Used to disable this method""" -- cgit v1.2.3 From be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:51:04 +0100 Subject: pep8 linting (blank lines expectations) E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n) --- git/refs/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/refs/remote.py') diff --git a/git/refs/remote.py b/git/refs/remote.py index 4c73b094..6dd0856c 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -9,10 +9,10 @@ __all__ = ["RemoteReference"] class RemoteReference(Head): + """Represents a reference pointing to a remote head.""" _common_path_default = Head._remote_common_path_default - @classmethod def iter_items(cls, repo, common_path = None, remote=None): """Iterate remote references, and if given, constrain them to the given remote""" -- cgit v1.2.3 From 614907b7445e2ed8584c1c37df7e466e3b56170f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 16 Nov 2014 20:56:53 +0100 Subject: pep8 linting (whitespace before/after) E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals --- git/refs/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/refs/remote.py') diff --git a/git/refs/remote.py b/git/refs/remote.py index 6dd0856c..394ad9e5 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -14,7 +14,7 @@ class RemoteReference(Head): _common_path_default = Head._remote_common_path_default @classmethod - def iter_items(cls, repo, common_path = None, remote=None): + def iter_items(cls, repo, common_path=None, remote=None): """Iterate remote references, and if given, constrain them to the given remote""" common_path = common_path or cls._common_path_default if remote is not None: -- cgit v1.2.3 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/refs/remote.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git/refs/remote.py') diff --git a/git/refs/remote.py b/git/refs/remote.py index 394ad9e5..e3827ad9 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -26,11 +26,11 @@ class RemoteReference(Head): def delete(cls, repo, *refs, **kwargs): """Delete the given remote references. :note: - kwargs are given for compatability with the base class method as we + kwargs are given for compatability with the base class method as we should not narrow the signature.""" repo.git.branch("-d", "-r", *refs) - # the official deletion method will ignore remote symbolic refs - these - # are generally ignored in the refs/ folder. We don't though + # the official deletion method will ignore remote symbolic refs - these + # are generally ignored in the refs/ folder. We don't though # and delete remainders manually for ref in refs: try: -- cgit v1.2.3