Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
More PY3 whack a mole.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Oct 26, 2014
1 parent 1b2c0e0 commit c417636
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jira_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
__license__ = 'MIT'
__version__ = '1.0.0'

_PY3 = bool(sys.version_info[0] == 3)


def _load_cookies(file_path):
"""Read cached cookies from file.
Expand Down Expand Up @@ -119,7 +121,7 @@ def __enter__(self):
self.authentication_failed = True
return self
else:
username = self.FORCE_USER or _prompt(raw_input, self.PROMPT_USER)
username = self.FORCE_USER or _prompt(input if _PY3 else raw_input, self.PROMPT_USER)
if not username and self.USER_CAN_ABORT:
JIRA.ABORTED_BY_USER = True
return self
Expand Down

0 comments on commit c417636

Please sign in to comment.