/usr/lib/python3/dist-packages/eventlet/green/http/server.py is in python3-eventlet 0.18.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from eventlet import patcher
from eventlet.green import os, time, select, socket, SocketServer, subprocess
from eventlet.green.http import client
from eventlet.green.urllib import parse as urllib_parse
patcher.inject('http.server', globals(),
('http.client', client), ('os', os), ('select', select),
('socket', socket), ('socketserver', SocketServer), ('time', time),
('urllib.parse', urllib_parse))
CGIHTTPRequestHandler.run_cgi = patcher.patch_function(
CGIHTTPRequestHandler.run_cgi, ('subprocess', subprocess))
del urllib_parse
del client
del patcher
|