diff options
author | nfnty <git@nfnty.se> | 2017-01-15 23:09:58 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-01-17 05:59:04 +0100 |
commit | 84a22ae0c78b087b0cb080f47620291833586e6f (patch) | |
tree | 95b6c55d171d61d9c1c6b552ce17c2e34ba21acc /ranger/ext/vcs/git.py | |
parent | 52403c53841a30edf550f5610e33e6c0981caad1 (diff) | |
download | ranger-84a22ae0c78b087b0cb080f47620291833586e6f.tar.gz |
linting: pylint 2.0.0
Diffstat (limited to 'ranger/ext/vcs/git.py')
-rw-r--r-- | ranger/ext/vcs/git.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/ext/vcs/git.py b/ranger/ext/vcs/git.py index 640d8bfe..c6cb2bf3 100644 --- a/ranger/ext/vcs/git.py +++ b/ranger/ext/vcs/git.py @@ -161,12 +161,13 @@ class Git(Vcs): return 'none' output = self._run(['rev-list', '--left-right', '{0:s}...{1:s}'.format(remote, head)]) + # pylint: disable=no-member ahead = re.search(r'^>', output, flags=re.MULTILINE) behind = re.search(r'^<', output, flags=re.MULTILINE) + # pylint: enable=no-member if ahead: return 'diverged' if behind else 'ahead' - else: - return 'behind' if behind else 'sync' + return 'behind' if behind else 'sync' def data_branch(self): try: |