##// END OF EJS Templates
py3: conditionalize access to socketserver.ForkingMixIn...
Matt Harbison -
r39866:d1e0b905 default
parent child Browse files
Show More
@@ -174,8 +174,12 b' class _httprequesthandler(httpservermod.'
174 env[r'wsgi.errors'] = _error_logger(self)
174 env[r'wsgi.errors'] = _error_logger(self)
175 env[r'wsgi.multithread'] = isinstance(self.server,
175 env[r'wsgi.multithread'] = isinstance(self.server,
176 socketserver.ThreadingMixIn)
176 socketserver.ThreadingMixIn)
177 env[r'wsgi.multiprocess'] = isinstance(self.server,
177 if util.safehasattr(socketserver, 'ForkingMixIn'):
178 socketserver.ForkingMixIn)
178 env[r'wsgi.multiprocess'] = isinstance(self.server,
179 socketserver.ForkingMixIn)
180 else:
181 env[r'wsgi.multiprocess'] = False
182
179 env[r'wsgi.run_once'] = 0
183 env[r'wsgi.run_once'] = 0
180
184
181 wsgiref.validate.check_environ(env)
185 wsgiref.validate.check_environ(env)
General Comments 0
You need to be logged in to leave comments. Login now