File: 01-fix_quiet_parsing.patch

package info (click to toggle)
python-bottle 0.10.11-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,332 kB
  • sloc: python: 4,605; makefile: 191
file content (19 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Enrico Zini <enrico@debian.org>
Subject: remove "quiet" from the args passed to the server adapter
Forwarded: no

---
 bottle.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- python-bottle.orig/bottle.py
+++ python-bottle/bottle.py
@@ -1225,7 +1225,7 @@ def run(app=None, server=AutoServer, hos
         interval=1, reloader=False, **kargs):
     """ Runs bottle as a web server. """
     app = app if app else default_app()
-    quiet = bool(kargs.get('quiet', False))
+    quiet = bool(kargs.pop('quiet', False))
     # Instantiate server, if it is a class instead of an instance
     if isinstance(server, type):
         server = server(host=host, port=port, **kargs)