changeset 19:aac4a4ea70a7

whitespace
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 11:06:40 -0800
parents 814ed3208afa
children 9f4369b769d0
files bitsyauth/__init__.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyauth/__init__.py	Thu Nov 17 11:04:36 2011 -0800
+++ b/bitsyauth/__init__.py	Thu Nov 17 11:06:40 2011 -0800
@@ -256,23 +256,22 @@
             captcha_text = "Please type the word below so I know you're not a computer:"
             captcha_help = "(please %s if the page is unreadable)" % markup.link('/join?captcha=image', 'go here')
 
-            print >> captcha, markup.p('%s<br/> %s' % (captcha_text, 
+            print >> captcha, markup.p('%s<br/> %s' % (captcha_text,
                                                        markup.i(captcha_help)))
 
             # determine type of CAPTCHA
             captchas = ' '.join(self.request.GET.getall('captcha'))
             if not captchas:
                 captchas = 'pre'
-                
+
             captcha_funcs=dict(pre=self.captcha_pre,
                                image=self.captcha_png,)
             captchas = [ captcha_funcs[i](word, key) for i in captchas.split()
                          if i in captcha_funcs ]
             captchas = '\n'.join([markup.p(i) for i in captchas])
             print >> captcha, captchas
-            
             print >> captcha, markup.p(markup.input(None, **dict(name='captcha', type='text')))
-            
+
             captcha = captcha.getvalue()
 
         form = Form(action=self.urls['join'], submit='Join', post_html=captcha)
@@ -318,7 +317,7 @@
                 errors['CAPTCHA'] = 'Please type the funky looking word'
             if word != self.request.POST.get('captcha','').lower():
                 errors['CAPTCHA'] = 'Sorry, you typed the wrong word'
-        
+
         name = self.request.POST.get('Name', '')
         if not name:
             if not errors.has_key('Name'):