Skip to content

Commit

Permalink
Updated version searching regex in conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
speratus committed Sep 11, 2019
1 parent f5dc86e commit 3ae3179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# The full version, including alpha/beta/rc tags
version = ''
with open('../blinkter/__init__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read()).group(1)
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
release = version

master_doc = 'index'
Expand Down

0 comments on commit 3ae3179

Please sign in to comment.