Mercurial > hg
comparison mercurial/extensions.py @ 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 | 78d9a7b7cdb6 |
children | 646002338365 |
comparison
equal
deleted
inserted
replaced
35857:a42455b3dbf8 | 35858:1b76a9e0a9de |
---|