Skip to content
Browse files

pep-8 compliance

  • Loading branch information...
1 parent 799dcb2 commit 36b7bd4c6f15f56c2be20bfb8bd1642f5e2436b2 @ytjohn ytjohn committed
Showing with 12 additions and 8 deletions.
  1. +12 −8 demos/pycket/pycketdemo.py
View
20 demos/pycket/pycketdemo.py
@@ -44,11 +44,11 @@ def __init__(self):
settings['pycket'] = {
'engine': 'redis',
'storage': {
- 'host' : 'localhost',
- 'port' : 6379,
- 'db_sessions' : 10,
- 'db_notifications' : 11,
- }
+ 'host': 'localhost',
+ 'port': 6379,
+ 'db_sessions': 10,
+ 'db_notifications': 11
+ }
}
cyclone.web.Application.__init__(self, handlers, **settings)
@@ -73,13 +73,17 @@ def get(self):
class AuthHandler(BaseHandler, SessionMixin):
def get(self):
- self.write('<form method="post">Enter your username: <input name="username" type="text"><button type="submit" class="btn">Login</button></form>')
-
+ self.write('<form method="post">'
+ 'Enter your username: <input name="username" type="text">'
+ '<button type="submit" class="btn">Login</button></form>')
def post(self):
username = self.get_argument('username')
if not username:
- self.write('<form method="post">Enter your username: <input name="username" type="text"><button type="submit" class="btn">Login</button></form>')
+ self.write('<form method="post">Enter your username: '
+ '<input name="username" type="text">'
+ '<button type="submit" class="btn">Login</button>'
+ '</form>')
else:
self.session.set('user', username)
self.redirect('/')

0 comments on commit 36b7bd4

Please sign in to comment.
Something went wrong with that request. Please try again.