Clean up bogus whitespace changes/inconsistency

This commit is contained in:
Kyle Evans 2016-10-25 21:36:47 -05:00
parent 37f51ef983
commit 35d480bc48
3 changed files with 6 additions and 6 deletions

View file

@ -426,7 +426,7 @@ class OctoPrintFlaskResponse(flask.Response):
def passive_login():
if octoprint.server.userManager.enabled:
user = octoprint.server.userManager.login_user(flask_login.current_user)
user = octoprint.server.userManager.login_user(flask_login.current_user)
else:
user = flask_login.current_user

View file

@ -672,8 +672,8 @@ class CustomHTTPServer(tornado.httpserver.HTTPServer):
``default_max_body_size`` is the default maximum body size to apply if no specific one from ``max_body_sizes`` matches.
"""
def __init__(self, *args, **kwargs):
pass
def __init__(self, *args, **kwargs):
pass
def initialize(self, request_callback, no_keep_alive=False, io_loop=None,
xheaders=False, ssl_options=None, protocol=None,

View file

@ -444,15 +444,15 @@ class User(UserMixin):
def get_name(self):
return self._username
@property
@property
def is_active(self):
return self._active
@property
@property
def is_user(self):
return "user" in self._roles
@property
@property
def is_admin(self):
return "admin" in self._roles