diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2009-12-28 16:19:31 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2009-12-28 16:19:31 +0100 |
commit | ffae2d61b6d760a8f4328bbc351b442df55c566a (patch) | |
tree | 5a9882a183d0f2c1b5a7e2ecca9ecd75087f7f83 | |
parent | cf4160dbe6df5a54d27773eed669c9170f78bc19 (diff) |
Fixed bugs with username and password.
Username was incorrectly lowercased.
Password read from getpass() was ignored.
-rw-r--r-- | anidb.py | 2 | ||||
-rw-r--r-- | pyanidb/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -76,7 +76,7 @@ if options.login: if not options.username: options.username = raw_input('Username: ') if not options.password: - options.passord = getpass.getpass() + options.password = getpass.getpass() # Input files. diff --git a/pyanidb/__init__.py b/pyanidb/__init__.py index ccb8a89..81311f7 100644 --- a/pyanidb/__init__.py +++ b/pyanidb/__init__.py @@ -59,7 +59,7 @@ class AniDB: self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.sock.bind(('0.0.0.0', localport)) self.sock.settimeout(10) - self.username = username.lower() + self.username = username self.password = password self.server = server self.session = '' |