Skip to content

Commit

Permalink
Fix error when using python3
Browse files Browse the repository at this point in the history
  • Loading branch information
mgee committed May 11, 2017
1 parent a315cd9 commit 7f2d5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitline.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _branch(self):
self.repo.branch = execute(['git', 'symbolic-ref', '--short', 'HEAD'])

def _stashes(self):
self.repo.stashes = len(filter(bool, execute(['git', 'stash', 'list']).splitlines()))
self.repo.stashes = len(list(filter(bool, execute(['git', 'stash', 'list']).splitlines())))

def _commit_hash(self):
self.repo.commit_hash = execute(['git', 'rev-parse', '--short', 'HEAD'])
Expand Down

0 comments on commit 7f2d5c6

Please sign in to comment.