Skip to content

Commit c007cb6

Browse files
committed
Fix version regex parsing
1 parent 0542ecc commit c007cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import re
2020
with open("../ripe/atlas/cousteau/version.py") as _f:
21-
__version__ = re.search(r'^__version__\s*=\s*"([^"]+)"', _f.read()).group(1)
21+
__version__ = re.search(r'^__version__\s*=\s*["\']([^"\']+)["\']', _f.read(), re.M).group(1)
2222

2323
# If extensions (or modules to document with autodoc) are in another directory,
2424
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)