Mercurial > hg
diff i18n/hggettext @ 35858:1b76a9e0a9de
wireprotoserver: don't import symbol from hgweb.common
Importing hgweb.common requires importing hgweb.
hgweb/__init__.py contains a bit of code and does imports of large
parts of the hgweb.* module tree.
All we need is a constant defining the integer status code for
HTTP OK. So just redefine HTTP_OK in wireprotoserver.py and avoid
the excessive imports.
Differential Revision: https://phab.mercurial-scm.org/D1967
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 31 Jan 2018 11:13:11 -0800 |
parents | d5ef17608159 |
children | 0585337ea787 |