Mercurial > hg
diff mercurial/url.py @ 29455:0c741fd6158a
py3: conditionalize httplib import
The httplib library is renamed to http.client in python 3. So the
import is conditionalized and a test is added in check-code to warn
to use util.httplib
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 28 Jun 2016 16:01:53 +0530 |
parents | fc777c855d66 |
children | 486de14eb394 |
line wrap: on
line diff
--- a/mercurial/url.py Wed Jun 29 19:43:27 2016 -0700 +++ b/mercurial/url.py Tue Jun 28 16:01:53 2016 +0530 @@ -10,7 +10,6 @@ from __future__ import absolute_import import base64 -import httplib import os import socket @@ -22,8 +21,9 @@ sslutil, util, ) + +httplib = util.httplib stringio = util.stringio - urlerr = util.urlerr urlreq = util.urlreq