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

Pushing to GitHub fails under Python 2.7 without this.

https://foss.heptapod.net/mercurial/hg-git/-/issues/326
1 files changed, 5 insertions(+), 1 deletions(-)

M hggit/__init__.py
M hggit/__init__.py +5 -1
@@ 59,10 59,14 @@ from mercurial import (
 # 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',
+        b'brotli',
     ])
 
 __version__ = b'0.9.0'