diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-07-07 21:29:58 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-07-07 21:29:58 (GMT) |
commit | a5e0eaf2e1151b0e800809422a2c567efad9d556 (patch) | |
tree | c6855d94e166d69b3456fb7df52f207c4b55add1 /Lib/wsgiref/simple_server.py | |
parent | bc1a7ddc9b3840e0f5c04e4253b7cfcb25d9fb69 (diff) | |
download | cpython-a5e0eaf2e1151b0e800809422a2c567efad9d556.zip cpython-a5e0eaf2e1151b0e800809422a2c567efad9d556.tar.gz cpython-a5e0eaf2e1151b0e800809422a2c567efad9d556.tar.bz2 |
Fix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it specifies an implementation specific term.
Diffstat (limited to 'Lib/wsgiref/simple_server.py')
-rw-r--r-- | Lib/wsgiref/simple_server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py index af82f95..a6015fb 100644 --- a/Lib/wsgiref/simple_server.py +++ b/Lib/wsgiref/simple_server.py @@ -14,13 +14,14 @@ from http.server import BaseHTTPRequestHandler, HTTPServer import sys import urllib.parse from wsgiref.handlers import SimpleHandler +from platform import python_implementation __version__ = "0.2" __all__ = ['WSGIServer', 'WSGIRequestHandler', 'demo_app', 'make_server'] server_version = "WSGIServer/" + __version__ -sys_version = "Python/" + sys.version.split()[0] +sys_version = python_implementation() + "/" + sys.version.split()[0] software_version = server_version + ' ' + sys_version |