demandimport: add 'brotli' to ignores, so urllib3 can detect its absence

Pushing to GitHub fails under Python 2.7 without this.

#326
parent 7aec15c8f9f1
Pipeline #13237 passed with stages
in 3 minutes and 22 seconds
...@@ -59,10 +59,14 @@ from mercurial import ( ...@@ -59,10 +59,14 @@ from mercurial import (
# COMPAT: hg 4.7 - demandimport.ignore was renamed to demandimport.IGNORES and # COMPAT: hg 4.7 - demandimport.ignore was renamed to demandimport.IGNORES and
# became a set # became a set
try: try:
demandimport.IGNORES.add(b'collections') demandimport.IGNORES |= {
b'collections',
b'brotli', # only needed in Python 2.7
}
except AttributeError: # pre 4.7 API except AttributeError: # pre 4.7 API
demandimport.ignore.extend([ demandimport.ignore.extend([
b'collections', b'collections',
b'brotli',
]) ])
__version__ = b'0.9.0' __version__ = b'0.9.0'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment