Mercurial > hg
diff mercurial/statichttprepo.py @ 25978:762f4c6df6b1
statichttprepo: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 20:11:08 -0700 |
parents | 6368c51cfad6 |
children | 56b2bcea2529 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Sat Aug 08 19:56:22 2015 -0700 +++ b/mercurial/statichttprepo.py Sat Aug 08 20:11:08 2015 -0700 @@ -7,10 +7,26 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -import changelog, byterange, url, error, namespaces -import localrepo, manifest, util, scmutil, store -import urllib, urllib2, errno, os +from __future__ import absolute_import + +import errno +import os +import urllib +import urllib2 + +from .i18n import _ +from . import ( + byterange, + changelog, + error, + localrepo, + manifest, + namespaces, + scmutil, + store, + url, + util, +) class httprangereader(object): def __init__(self, url, opener):