Re-add some deprecation warning filters
Turns out there never was a PyPEG2 release...
This commit is contained in:
parent
22b58e011d
commit
a001fd1099
@ -199,7 +199,17 @@ def _check_modules(modules):
|
||||
|
||||
for name, text in modules.items():
|
||||
try:
|
||||
importlib.import_module(name)
|
||||
# https://bitbucket.org/fdik/pypeg/commits/dd15ca462b532019c0a3be1d39b8ee2f3fa32f4e
|
||||
# pylint: disable=bad-continuation
|
||||
with log.ignore_py_warnings(
|
||||
category=DeprecationWarning,
|
||||
message=r'invalid escape sequence'
|
||||
), log.ignore_py_warnings(
|
||||
category=ImportWarning,
|
||||
message=r'Not importing directory .*: missing __init__'
|
||||
):
|
||||
# pylint: enable=bad-continuation
|
||||
importlib.import_module(name)
|
||||
except ImportError as e:
|
||||
_die(text, e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user