Skip to content
Snippets Groups Projects
Commit 8de310e8 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

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

Pushing to GitHub fails under Python 2.7 without this.

#326
parent 7aec15c8
No related branches found
No related tags found
1 merge request!43demandimport: add 'brotli' to ignores, so urllib3 can detect its absence
Pipeline #13237 passed with warnings
......@@ -59,7 +59,10 @@
# COMPAT: hg 4.7 - demandimport.ignore was renamed to demandimport.IGNORES and
# became a set
try:
demandimport.IGNORES.add(b'collections')
demandimport.IGNORES |= {
b'collections',
b'brotli', # only needed in Python 2.7
}
except AttributeError: # pre 4.7 API
demandimport.ignore.extend([
b'collections',
......@@ -63,6 +66,7 @@
except AttributeError: # pre 4.7 API
demandimport.ignore.extend([
b'collections',
b'brotli',
])
__version__ = b'0.9.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment