Mercurial > public > mercurial-scm > hg
diff mercurial/policy.py @ 33761:f5fc54e7e467
encoding: drop circular import by proxying through '<policy>.charencode'
I decided not to split charencode.c to new C extension module because it
would duplicate binary codes unnecessarily.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 31 Jul 2017 23:13:47 +0900 |
parents | cd2aca0808f8 |
children | 2c37f9dabc32 |
line wrap: on
line diff
--- a/mercurial/policy.py Mon Jul 31 23:40:36 2017 +0900 +++ b/mercurial/policy.py Mon Jul 31 23:13:47 2017 +0900 @@ -80,7 +80,9 @@ # map import request to other package or module _modredirects = { + (r'cext', r'charencode'): (r'cext', r'parsers'), (r'cffi', r'base85'): (r'pure', r'base85'), + (r'cffi', r'charencode'): (r'pure', r'charencode'), (r'cffi', r'diffhelpers'): (r'pure', r'diffhelpers'), (r'cffi', r'parsers'): (r'pure', r'parsers'), }