changeset 20:9f4369b769d0

this *may* be more portable?
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 11:17:17 -0800
parents aac4a4ea70a7
children 74b8a8793414
files bitsyauth/__init__.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyauth/__init__.py	Thu Nov 17 11:06:40 2011 -0800
+++ b/bitsyauth/__init__.py	Thu Nov 17 11:17:17 2011 -0800
@@ -71,7 +71,7 @@
 
         self.request = Request(environ)
         self.request.path_info = self.request.path_info.rstrip('/')
-        
+
         self.redirect_to = '/' + self.request.script_name.lstrip('/')
 
         # URLs intrinsic to BitsyAuth
@@ -84,7 +84,7 @@
             return response(self.request.environ, start_response)
 
         # digest auth
-        if self.request.headers.has_key('Authorization'):
+        if 'Authorization' in self.request.headers.keys():
             return self.wrapped_app(self.request.environ, start_response)
 
         response = Request(orig_environ).get_response(self.app)
@@ -355,7 +355,7 @@
 
     def __call__(self, environ, start_response):
         if environ['PATH_INFO'] == '/logout':
-            pass
+            pass # XXX unused
         try:
             return self.cookie_handler(environ, start_response)
         except auth_tkt.BadTicket: