changeset 21:74b8a8793414

whitespace cleanup
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 11:20:03 -0800 (2011-11-17)
parents 9f4369b769d0
children 9aa73d2d5aa8
files bitsyauth/__init__.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyauth/__init__.py	Thu Nov 17 11:17:17 2011 -0800
+++ b/bitsyauth/__init__.py	Thu Nov 17 11:20:03 2011 -0800
@@ -62,7 +62,7 @@
 
         if not CAPTCHA:
             self.captcha = False
-        
+
     ### WSGI/HTTP layer
 
     def __call__(self, environ, start_response):
@@ -144,7 +144,7 @@
             retval.update(dict([(('/join/%s.png' % key), 'image_captcha')
                                 for key in self.keys]))
         return retval
-        
+
     def get_response(self, text, content_type='text/html'):
         res = Response(content_type=content_type, body=text)
         res.content_length = len(res.body)
@@ -163,7 +163,7 @@
         function = getattr(self, handler)
 
         if self.request.method == 'GET':
-            # XXX could/should do this with decorators            
+            # XXX could/should do this with decorators
             return self.get_response(function(wrap=True),
                                      content_type=self.content_type.get(handler,'text/html'))
         if self.request.method == 'POST':
@@ -184,7 +184,7 @@
         key = self.request.path_info.split('/join/')[-1]
         key = int(key.split('.png')[0])
         return skimpyAPI.Png(self.keys[key], scale=3.0).data()
-                
+
     ### forms and their display methods
 
     ### login
@@ -205,7 +205,7 @@
         form = self.login_form(action=action, referer=referer)
         join = self.urls.get('join')
         retval = form(errors)
-        if join:        
+        if join:
             retval += '<br/>\n' + markup.a('join', href="%s" % join)
         retval = markup.div(retval)
         if wrap: