Mercurial > hg-stable
changeset 20701:d20817ac628a
fix_bytesmod: use the "from mercurial" form of the import to avoid breaking httpclient
Without this patch, 2to3's rewrites to httpclient cause it to fail to
import. With this patch, it's probably hopelessly broken, but at least
won't block forward progress on non-http2 functionality on Python 3.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 04 Feb 2014 18:33:25 -0500 |
parents | 1147563faf62 |
children | 2764148aa088 |
files | contrib/hgfixes/fix_bytesmod.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/hgfixes/fix_bytesmod.py Mon Mar 10 17:52:42 2014 -0400 +++ b/contrib/hgfixes/fix_bytesmod.py Tue Feb 04 18:33:25 2014 -0500 @@ -37,7 +37,7 @@ if self.filename.endswith(bfn): return if not self.filename.endswith('mercurial/py3kcompat.py'): - touch_import('.', 'py3kcompat', node=node) + touch_import('mercurial', 'py3kcompat', node=node) formatstr = results['formatstr'].clone() data = results['data'].clone()