diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2017-12-31 17:22:59 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2017-12-31 18:28:06 +0100 |
commit | 8a34b4e119ed40f8cd0e66f1e75d915290ccdfb5 (patch) | |
tree | 5c33ef48c9268d378122a9db07c79cb08aeb0228 /stdnum/util.py | |
parent | 271b9e4192443b93d3d849851ded7190887e87ee (diff) |
Correctly quote regular expression
Fixes a6ae1d0.
Diffstat (limited to 'stdnum/util.py')
-rw-r--r-- | stdnum/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/util.py b/stdnum/util.py index 58dc8d5..698a22e 100644 --- a/stdnum/util.py +++ b/stdnum/util.py @@ -1,7 +1,7 @@ # util.py - common utility functions # coding: utf-8 # -# Copyright (C) 2012-2016 Arthur de Jong +# Copyright (C) 2012-2017 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -135,7 +135,7 @@ def get_number_modules(base='stdnum'): module = sys.modules[base] # we ignore deprecation warnings from transitional modules with warnings.catch_warnings(): - warnings.filterwarnings('ignore', category=DeprecationWarning, module='stdnum\..*') + warnings.filterwarnings('ignore', category=DeprecationWarning, module=r'stdnum\..*') for _loader, name, _is_pkg in pkgutil.walk_packages( module.__path__, module.__name__ + '.'): __import__(name) |