Francois Dion avatar Francois Dion committed 8e0c4e6

pep8 compliance

Comments (0)

Files changed (1)

webpy/forms/fo1.py

     def __init__(self):
         self.render = web.template.render('templates')
 
-        vpass = form.regexp(r".{3,20}$", 
-                    "must be between 3 and 20 characters")
+        vpass = form.regexp(r".{3,20}$",
+                            "must be between 3 and 20 characters")
         vemail = form.regexp(r"[^@]+@[^@]+\.[^@]+",
-                     "must be a valid email address")
+                             "must be a valid email address")
         self.register_form = form.Form(
             form.Textbox("username", description="Username"),
             form.Textbox("email", vemail, description="E-Mail"),
             form.Password("password", vpass, description="Password"),
             form.Password("password2", description="Repeat password"),
             form.Button("submit", type="submit", description="Register"),
-                validators = [
-                    form.Validator("Passwords did't match", 
-                        lambda i: i.password == i.password2)
-                ]
-
-            )
+            validators=[
+                form.Validator("Passwords did't match",
+                               lambda i: i.password == i.password2)
+            ]
+        )
 
     def GET(self):
         # do $:f.render() in the template
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.