summaryrefslogtreecommitdiffstats
path: root/module/lib/bottle.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/lib/bottle.py')
-rw-r--r--module/lib/bottle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/lib/bottle.py b/module/lib/bottle.py
index 2c243278e..f4e93de9d 100644
--- a/module/lib/bottle.py
+++ b/module/lib/bottle.py
@@ -298,13 +298,13 @@ class Router(object):
def path_filter(self, conf):
return r'.*?', None, None
-
+
def add_filter(self, name, func):
''' Add a filter. The provided function is called with the configuration
string as parameter and must return a (regexp, to_python, to_url) tuple.
The first element is a string, the last two are callables or None. '''
self.filters[name] = func
-
+
def parse_rule(self, rule):
''' Parses a rule into a (name, filter, conf) token stream. If mode is
None, name contains a static rule part. '''
@@ -2422,10 +2422,10 @@ class FileCheckerThread(threading.Thread):
thread.interrupt_main()
break
time.sleep(self.interval)
-
+
def __enter__(self):
self.start()
-
+
def __exit__(self, exc_type, exc_val, exc_tb):
if not self.status: self.status = 'exit' # silent exit
self.join()