Skip to content

Commit

Permalink
PEP8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Feb 4, 2015
1 parent 0415e85 commit 4994de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pypass/passwordstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def get_decypted_password(self, path, entry=None):
else: # If there is no match, password is the first line
return decrypted_password.split('\n')[0]
elif entry == EntryType.hostname:
hostname = re.search('(?:host|hostname): (.+)', decrypted_password)
hostname = re.search(
'(?:host|hostname): (.+)', decrypted_password
)
return hostname.groups()[0]
else:
return decrypted_password
Expand Down

0 comments on commit 4994de7

Please sign in to comment.