diff options
author | Ziad Sawalha <gerrit@highbridgellc.com> | 2014-05-04 11:51:47 -0500 |
---|---|---|
committer | Ziad Sawalha <gerrit@highbridgellc.com> | 2014-05-04 11:51:47 -0500 |
commit | 27f381d2c64a4e65a88af4b154b84b1349281225 (patch) | |
tree | 5e0887c81466cd9b6ff771dc20af4a62db69d650 | |
parent | 52014fa25858e8c1157ce939e43f7211bb9ac291 (diff) | |
download | bottle-27f381d2c64a4e65a88af4b154b84b1349281225.tar.gz |
Minor Cleanup: refactor socket address variable
-rw-r--r-- | bottle.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2830,12 +2830,13 @@ class EventletServer(ServerAdapter): if not patcher.is_monkey_patched(os): msg = "Bottle requires eventlet.monkey_patch() (before import)" raise RuntimeError(msg) + address = (self.host, self.port) try: - wsgi.server(listen((self.host, self.port)), handler, + wsgi.server(listen(address), handler, log_output=(not self.quiet)) except TypeError: # Fallback, if we have old version of eventlet - wsgi.server(listen((self.host, self.port)), handler) + wsgi.server(listen(address), handler) class RocketServer(ServerAdapter): |