diff hgext/share.py @ 22973:bcff9ecdaae0

encoding: avoid cyclic dependency around "parsers" in pure Python build 80f2b63dd83a brought "asciilower" and "import parsers" into "encoding.py". This works fine with "parsers" module in C implementation, but doesn't with one in pure Python implementation, because the latter causes cyclic dependency below and aborting execution: util => i18n => encoding => parsers => util This patch delays importing "parsers" module until it is really needed, to avoid cyclic dependency around "parsers" in pure Python build.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Fri, 17 Oct 2014 02:07:04 +0900
parents 5a4d1a6c605f
children 141baca16059
line wrap: on
line diff