summaryrefslogtreecommitdiff
path: root/git/refs/reference.py
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-11-16 21:09:47 +0100
committerAntoine Musso <hashar@free.fr>2014-11-16 21:09:47 +0100
commitc8e70749887370a99adeda972cc3503397b5f9a7 (patch)
tree38e1241fd6d756f783b6b56dc6628ac3ca41ed4f /git/refs/reference.py
parentbed3b0989730cdc3f513884325f1447eb378aaee (diff)
downloadgitpython-c8e70749887370a99adeda972cc3503397b5f9a7.tar.gz
pep8 linting (trailing whitespace)
W291 trailing whitespace
Diffstat (limited to 'git/refs/reference.py')
-rw-r--r--git/refs/reference.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py
index dc745cce..0745b721 100644
--- a/git/refs/reference.py
+++ b/git/refs/reference.py
@@ -1,7 +1,7 @@
from symbolic import SymbolicReference
from git.util import (
- LazyMixin,
- Iterable,
+ LazyMixin,
+ Iterable,
)
from gitdb.util import (
@@ -29,7 +29,7 @@ def require_remote_ref_path(func):
class Reference(SymbolicReference, LazyMixin, Iterable):
- """Represents a named reference to any object. Subclasses may apply restrictions though,
+ """Represents a named reference to any object. Subclasses may apply restrictions though,
i.e. Heads can only point to commits."""
__slots__ = tuple()
_points_to_commits_only = False
@@ -43,7 +43,7 @@ class Reference(SymbolicReference, LazyMixin, Iterable):
:param path:
Path relative to the .git/ directory pointing to the ref in question, i.e.
refs/heads/master
- :param check_path: if False, you can provide any path. Otherwise the path must start with the
+ :param check_path: if False, you can provide any path. Otherwise the path must start with the
default path prefix of this type."""
if check_path and not path.startswith(self._common_path_default + '/'):
raise ValueError("Cannot instantiate %r from path %s" % (self.__class__.__name__, path))
@@ -87,7 +87,7 @@ class Reference(SymbolicReference, LazyMixin, Iterable):
@property
def name(self):
""":return: (shortest) Name of this reference - it may contain path components"""
- # first two path tokens are can be removed as they are
+ # first two path tokens are can be removed as they are
# refs/heads or refs/tags or refs/remotes
tokens = self.path.split('/')
if len(tokens) < 3: