Pylint cleanups
This commit is contained in:
parent
8d8396b07b
commit
a2128a4787
@ -407,7 +407,6 @@ class Application(object):
|
|||||||
|
|
||||||
def report(self, environ, calendars, content, user):
|
def report(self, environ, calendars, content, user):
|
||||||
"""Manage REPORT request."""
|
"""Manage REPORT request."""
|
||||||
# TODO: support multiple calendars here
|
|
||||||
calendar = calendars[0]
|
calendar = calendars[0]
|
||||||
headers = {'Content-Type': 'text/xml'}
|
headers = {'Content-Type': 'text/xml'}
|
||||||
answer = xmlutils.report(environ["PATH_INFO"], content, calendar)
|
answer = xmlutils.report(environ["PATH_INFO"], content, calendar)
|
||||||
|
@ -35,6 +35,9 @@ from wsgiref.simple_server import make_server
|
|||||||
import radicale
|
import radicale
|
||||||
|
|
||||||
|
|
||||||
|
# This is a script, many branches and variables
|
||||||
|
# pylint: disable=R0912,R0914
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
"""Run Radicale as a standalone server."""
|
"""Run Radicale as a standalone server."""
|
||||||
# Get command-line options
|
# Get command-line options
|
||||||
@ -168,6 +171,8 @@ def run():
|
|||||||
server.server_name, server.server_port))
|
server.server_name, server.server_port))
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
|
|
||||||
|
# pylint: enable=R0912,R0914
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run()
|
run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user