diff options
author | Marcel Hellkamp <marc@gsites.de> | 2022-05-26 20:35:37 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2022-05-26 20:35:37 +0200 |
commit | d21578043dad16917d3a182111f25553d85c4931 (patch) | |
tree | 9847a07607358088fee81e8125009f1e4408ce6d | |
parent | a2b0ee6bb4ce88895429ec4aca856616244c4c4c (diff) | |
download | bottle-d21578043dad16917d3a182111f25553d85c4931.tar.gz |
Fix: Bad deprecation warning in cherrypy server adapter
-rw-r--r-- | bottle.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2795,9 +2795,9 @@ class WSGIRefServer(ServerAdapter): class CherryPyServer(ServerAdapter): def run(self, handler): # pragma: no cover - depr(0, 13, "The wsgi server part of cherrypy was split into a new " - "project called 'cheroot'.", "Use the 'cheroot' server " - "adapter instead of cherrypy.") + depr("The wsgi server part of cherrypy was split into a new " + "project called 'cheroot'. Use the 'cheroot' server " + "adapter instead of cherrypy.") from cherrypy import wsgiserver # This will fail for CherryPy >= 9 self.options['bind_addr'] = (self.host, self.port) |