diff options
author | Daniel Hahler <git@thequod.de> | 2017-08-18 11:53:37 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-08-18 11:53:37 +0200 |
commit | 5359bb8ba50e5c8e6ceefad84b74c5af237b1403 (patch) | |
tree | a5ac78dad4077db62537c6b57e1b6fc00567a919 /utils/jssplitter_generator.py | |
parent | b2f841fcaa34b4bde49325917a406c4bc15a5b05 (diff) | |
download | sphinx-git-5359bb8ba50e5c8e6ceefad84b74c5af237b1403.tar.gz |
Fix DeprecationWarning for r'…(?u)'
Fixes
> DeprecationWarning: Flags not at the start of the expression …
Diffstat (limited to 'utils/jssplitter_generator.py')
-rw-r--r-- | utils/jssplitter_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/jssplitter_generator.py b/utils/jssplitter_generator.py index 75f0353af..05b8628b3 100644 --- a/utils/jssplitter_generator.py +++ b/utils/jssplitter_generator.py @@ -5,9 +5,9 @@ import subprocess import sys import six -# find char codes they are matched with Python's \\w(?u) +# find char codes they are matched with Python's (?u)\\w -match = re.compile(r'\w(?u)') +match = re.compile(r'(?u)\w') begin = -1 ranges = [] |