comparison mercurial/util.py @ 29566:075146e85bb6

py3: conditionalize BaseHTTPServer, SimpleHTTPServer and CGIHTTPServer import The BaseHTTPServer, SimpleHTTPServer and CGIHTTPServer has been merged into http.server in python 3. All of them has been merged as util.httpserver to use in both python 2 and 3. This patch adds a regex to check-code to warn against the use of BaseHTTPServer. Moreover this patch also includes updates to lower part of test-check-py3-compat.t which used to remain unchanged.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 13 Jul 2016 23:38:29 +0530
parents 3239e2fdd2e2
children 37cccad55410
comparison
equal deleted inserted replaced
29565:143d21a7343e 29566:075146e85bb6
46 ) 46 )
47 47
48 for attr in ( 48 for attr in (
49 'empty', 49 'empty',
50 'httplib', 50 'httplib',
51 'httpserver',
51 'pickle', 52 'pickle',
52 'queue', 53 'queue',
53 'urlerr', 54 'urlerr',
54 'urlparse', 55 'urlparse',
55 # we do import urlreq, but we do it outside the loop 56 # we do import urlreq, but we do it outside the loop