summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2009-12-28 16:19:31 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2009-12-28 16:19:31 +0100
commitffae2d61b6d760a8f4328bbc351b442df55c566a (patch)
tree5a9882a183d0f2c1b5a7e2ecca9ecd75087f7f83
parentcf4160dbe6df5a54d27773eed669c9170f78bc19 (diff)
Fixed bugs with username and password.
Username was incorrectly lowercased. Password read from getpass() was ignored.
-rw-r--r--anidb.py2
-rw-r--r--pyanidb/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/anidb.py b/anidb.py
index b354c2d..81f6850 100644
--- a/anidb.py
+++ b/anidb.py
@@ -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 = ''