Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
33760:cd2aca0808f8 | 33761:f5fc54e7e467 |
---|---|
78 (r'cext', r'parsers'): 1, | 78 (r'cext', r'parsers'): 1, |
79 } | 79 } |
80 | 80 |
81 # map import request to other package or module | 81 # map import request to other package or module |
82 _modredirects = { | 82 _modredirects = { |
83 (r'cext', r'charencode'): (r'cext', r'parsers'), | |
83 (r'cffi', r'base85'): (r'pure', r'base85'), | 84 (r'cffi', r'base85'): (r'pure', r'base85'), |
85 (r'cffi', r'charencode'): (r'pure', r'charencode'), | |
84 (r'cffi', r'diffhelpers'): (r'pure', r'diffhelpers'), | 86 (r'cffi', r'diffhelpers'): (r'pure', r'diffhelpers'), |
85 (r'cffi', r'parsers'): (r'pure', r'parsers'), | 87 (r'cffi', r'parsers'): (r'pure', r'parsers'), |
86 } | 88 } |
87 | 89 |
88 def _checkmod(pkgname, modname, mod): | 90 def _checkmod(pkgname, modname, mod): |