[PATCH 1 of 3] py3: conditionalize httplib import
Yuya Nishihara
yuya at tcha.org
Sun Jul 3 06:54:17 EDT 2016
On Fri, 1 Jul 2016 20:13:11 +0530, Pulkit Goyal wrote:
> > if sys.version_info[0] < 3:
> > import httplib
> > else:
> > import http.client as httplib
>
> Yeah we can have just one if else and fit all of them there. I will
> send a patch related to this, if its okay.
There seems no -1, let's do that. You might have to work around
test-check-pyflakes.t, which would report unused imports.
More information about the Mercurial-devel
mailing list