From 8a34b4e119ed40f8cd0e66f1e75d915290ccdfb5 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 31 Dec 2017 17:22:59 +0100 Subject: Correctly quote regular expression Fixes a6ae1d0. --- stdnum/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdnum/util.py') 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) -- cgit v1.2.3