mercurial/utils/resourceutil.py
changeset 48008 c0588d389c5f
parent 47860 08f16b3331df
child 48875 6000f5b25c9b
equal deleted inserted replaced
48007:28c62f83b652 48008:c0588d389c5f
    55 
    55 
    56 
    56 
    57 try:
    57 try:
    58     # importlib.resources exists from Python 3.7; see fallback in except clause
    58     # importlib.resources exists from Python 3.7; see fallback in except clause
    59     # further down
    59     # further down
    60     from importlib import resources
    60     from importlib import resources  # pytype: disable=import-error
    61 
    61 
    62     # Force loading of the resources module
    62     # Force loading of the resources module
    63     resources.open_binary  # pytype: disable=module-attr
    63     resources.open_binary  # pytype: disable=module-attr
    64 
    64 
    65 except (ImportError, AttributeError):
    65 except (ImportError, AttributeError):