diff options
author | ianb <devnull@localhost> | 2006-10-20 19:46:49 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-10-20 19:46:49 +0000 |
commit | aaca5bdf2e660ef9ecff4c06c7ecbaa14518079f (patch) | |
tree | 1916e3eb0f70e6a6e480fb67825b9bce43e03fff /paste/auth | |
parent | 96644d94fd727e919d6a3d52998f276c90cbf770 (diff) | |
download | paste-aaca5bdf2e660ef9ecff4c06c7ecbaa14518079f.tar.gz |
Several name problems, small bugs, extra imports caught by pyflakes
Diffstat (limited to 'paste/auth')
-rw-r--r-- | paste/auth/auth_tkt.py | 1 | ||||
-rw-r--r-- | paste/auth/cookie.py | 2 | ||||
-rw-r--r-- | paste/auth/digest.py | 2 | ||||
-rw-r--r-- | paste/auth/open_id.py | 2 |
4 files changed, 2 insertions, 5 deletions
diff --git a/paste/auth/auth_tkt.py b/paste/auth/auth_tkt.py index 999e8c7..e3e64dc 100644 --- a/paste/auth/auth_tkt.py +++ b/paste/auth/auth_tkt.py @@ -39,7 +39,6 @@ non-Python code run under Apache. import time as time_mod import md5 -import cgi import Cookie from paste import request diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py index ebb9aba..df63329 100644 --- a/paste/auth/cookie.py +++ b/paste/auth/cookie.py @@ -373,7 +373,7 @@ def make_auth_cookie( try: maxlen = int(maxlen) except ValueError: - raise ValieError('Bad value for maxlen (must be int): %r' + raise ValueError('Bad value for maxlen (must be int): %r' % maxlen) return AuthCookieHandler( app, cookie_name=cookie_name, scanlist=scanlist, diff --git a/paste/auth/digest.py b/paste/auth/digest.py index eae81a2..0fe380b 100644 --- a/paste/auth/digest.py +++ b/paste/auth/digest.py @@ -31,7 +31,7 @@ to use sha would be a good thing. """ from paste.httpexceptions import HTTPUnauthorized from paste.httpheaders import * -import md5, time, random, urllib2 +import md5, time, random def digest_password(realm, username, password): """ construct the appropriate hashcode needed for HTTP digest """ diff --git a/paste/auth/open_id.py b/paste/auth/open_id.py index d4996d4..eb01150 100644 --- a/paste/auth/open_id.py +++ b/paste/auth/open_id.py @@ -57,8 +57,6 @@ __all__ = ['AuthOpenIDHandler'] import cgi import urlparse -import cgitb -import sys import re import paste.request |