Add stubs for CGIHTTPServer (#3196)

This commit adds:
* Stubs for CGIHTTPServer in the Python 2 standard library, as requested in #1147.
* Stubs for six.moves.CGIHTTPServer in Python 2, as requested in #22.
This commit is contained in:
Bouteillebleu
2019-08-19 14:34:29 +01:00
committed by Sebastian Rittau
parent b2cd972b17
commit d5a918de7b
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
# Stubs for CGIHTTPServer (Python 2.7)
from typing import List
import SimpleHTTPServer
class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
cgi_directories: List[str]
def do_POST(self) -> None: ...

View File

@@ -0,0 +1 @@
from CGIHTTPServer import *

View File

@@ -36,7 +36,7 @@ from . import http_client
from . import email_mime_text
# import email.MIMEBase as email_mime_base
from . import BaseHTTPServer
# import CGIHTTPServer as CGIHTTPServer
from . import CGIHTTPServer
from . import SimpleHTTPServer
from . import cPickle
from . import queue