8000 Correctly quote regular expression · AmarisAI/python-stdnum@8a34b4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a34b4e

Browse files
committed
Correctly quote regular expression
Fixes a6ae1d0.
1 parent 271b9e4 commit 8a34b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdnum/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# util.py - common utility functions
22
# coding: utf-8
33
#
4-
# Copyright (C) 2012-2016 Arthur de Jong
4+
# Copyright (C) 2012-2017 Arthur de Jong
55
#
66
# This library is free software; you can redistribute it and/or
77
# modify it under the terms of the GNU Lesser General Public
@@ -135,7 +135,7 @@ def get_number_modules(base='stdnum'):
135135
module = sys.modules[base]
136136
# we ignore deprecation warnings from transitional modules
137137
with warnings.catch_warnings():
138-
warnings.filterwarnings('ignore', category=DeprecationWarning, module='stdnum\..*')
138+
warnings.filterwarnings('ignore', category=DeprecationWarning, module=r'stdnum\..*')
139139
for _loader, name, _is_pkg in pkgutil.walk_packages(
140140
module.__path__, module.__name__ + '.'):
141141
__import__(name)

0 commit comments

Comments
 (0)
0