Skip to content

Commit

Permalink
Fixing two PEP-8 failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Mar 5, 2014
1 parent 179a4c4 commit 2a2f4f8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bugwarrior/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def get_service_password(service, username, oracle=None, interactive=False):
* retrieving password from a secure store (@oracle:use_keyring, default)
* asking the password from the user (@oracle:ask_password, interactive)
* executing a command and use the output as password (@oracle:eval:<command>)
* executing a command and use the output as password
(@oracle:eval:<command>)
Note that the keyring may or may not be locked
which requires that the user provides a password (interactive mode).
Expand Down Expand Up @@ -51,7 +52,12 @@ def get_service_password(service, username, oracle=None, interactive=False):
password = getpass.getpass(prompt)
elif oracle.startswith('@oracle:eval:'):
command = oracle[13:]
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
p = subprocess.Popen(
command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
)
password = p.stdout.read()[:-1]

if password is None:
Expand Down

0 comments on commit 2a2f4f8

Please sign in to comment.