Commits

Andriy Kornatskyy  committed c229b74

Fixed PEP8 warnings.

  • Participants
  • Parent commits b71aaaa

Comments (0)

Files changed (2)

File demos/app_http.py

 {
     c = document.getElementById('captcha');
     c.onclick = function() {
-        this.src=this.src.replace(/&r=\d+/g,'')+'&r='+Math.floor(Math.random()*100+1);
+        this.src=this.src.replace(/&r=\d+/g,'') + '&r=' + \
+            Math.floor(Math.random() * 100 + 1);
     };
 }
 </script>

File demos/app_web.py

         return self.get('Well done!')
 
 
-
 templates = {
     'welcome': """@require(m, captcha, path_for, errors)
 <html><head><style>
 {
     c = document.getElementById('captcha');
     c.onclick = function() {
-        this.src=this.src.replace(/&r=\d+/g,'')+'&r='+Math.floor(Math.random()*100+1);
+        this.src=this.src.replace(/&r=\d+/g,'') + '&r=' + \
+            Math.floor(Math.random() * 100 + 1);
     };
 }
 </script>