Skip to content

Commit

Permalink
fix non-ascii passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyJD committed Apr 21, 2013
1 parent a3aa56b commit 23c424b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,10 @@ def create(self, auth=False):
if self.username is None:
printf("Please input your MusicBrainz username: ")
self.username = user_input()
printf("Please input your MusicBrainz password: ")
password = getpass.getpass("")
password = getpass.getpass(
"Please input your MusicBrainz password: ")
# The musicbrainz server seems to accept passwords in latin1"
password = password.decode(sys.stdin.encoding).encode("latin1")
print("")
if StrictVersion(musicbrainz2_version) >= "0.7.4":
# There is a warning printed above, when < 0.7.4
Expand Down

0 comments on commit 23c424b

Please sign in to comment.