summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett <brett@nextglass.co>2014-05-28 15:20:06 -0400
committerBrett <brett@nextglass.co>2014-05-28 15:20:06 -0400
commitaee23e702ead4a269a5484b9e9fec928a7de0c83 (patch)
treec2db274acfa3d82a3ee08a39a9abee7b1c11b406
parent7f09a53474a168541c488e6c946c4b767fc2bb8d (diff)
downloadbottle-aee23e702ead4a269a5484b9e9fec928a7de0c83.tar.gz
clean whitespace
-rw-r--r--bottle.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bottle.py b/bottle.py
index 583c213..0254af5 100644
--- a/bottle.py
+++ b/bottle.py
@@ -1157,7 +1157,7 @@ class BaseRequest(object):
maxread -= len(part)
if read(2) != rn:
raise err
-
+
@DictProperty('environ', 'bottle.request.body', read_only=True)
def _body(self):
body_iter = self._iter_chunked if self.chunked else self._iter_body
@@ -2097,7 +2097,7 @@ class ConfigDict(dict):
def load_dict(self, source, namespace='', make_namespaces=False):
''' Import values from a dictionary structure. Nesting can be used to
represent namespaces.
-
+
>>> ConfigDict().load_dict({'name': {'space': {'key': 'value'}}})
{'name.space.key': 'value'}
'''
@@ -2353,7 +2353,7 @@ class FileUpload(object):
def filename(self):
''' Name of the file on the client file system, but normalized to ensure
file system compatibility. An empty filename is returned as 'empty'.
-
+
Only ASCII letters, digits, dashes, underscores and dots are
allowed in the final filename. Accents are removed, if possible.
Whitespace is replaced by a single dash. Leading or tailing dots
@@ -2777,20 +2777,20 @@ class CherryPyServer(ServerAdapter):
from cherrypy import wsgiserver
self.options['bind_addr'] = (self.host, self.port)
self.options['wsgi_app'] = handler
-
+
certfile = self.options.get('certfile')
if certfile:
del self.options['certfile']
keyfile = self.options.get('keyfile')
if keyfile:
del self.options['keyfile']
-
+
server = wsgiserver.CherryPyWSGIServer(**self.options)
if certfile:
server.ssl_certificate = certfile
if keyfile:
server.ssl_private_key = keyfile
-
+
try:
server.start()
finally: