summaryrefslogtreecommitdiff
path: root/cherrypy/test/benchmark.py
diff options
context:
space:
mode:
authorLakin Wecker <none@none>2009-05-31 22:49:16 +0000
committerLakin Wecker <none@none>2009-05-31 22:49:16 +0000
commit6c6194ed7e9f14d12c0420b65992918b82b46dd2 (patch)
tree76b5bf80a85157e976b243e21504cd9e8604a7c4 /cherrypy/test/benchmark.py
parent33505a4a710f014e99da2f9f0d6a7c7cc88fc27a (diff)
downloadcherrypy-git-6c6194ed7e9f14d12c0420b65992918b82b46dd2.tar.gz
trunk - cosmetic change bringing this file more inline with the python3 version
Diffstat (limited to 'cherrypy/test/benchmark.py')
-rw-r--r--cherrypy/test/benchmark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/test/benchmark.py b/cherrypy/test/benchmark.py
index 74df8825..aaa692cd 100644
--- a/cherrypy/test/benchmark.py
+++ b/cherrypy/test/benchmark.py
@@ -301,7 +301,7 @@ def startup_modpython(req=None):
"""Start the CherryPy app server in 'serverless' mode (for modpython/WSGI)."""
if cherrypy.engine.state == cherrypy._cpengine.STOPPED:
if req:
- if req.get_options().has_key("nullreq"):
+ if "nullreq" in req.get_options():
cherrypy.engine.request_class = NullRequest
cherrypy.engine.response_class = NullResponse
ab_opt = req.get_options().get("ab", "")