Skip to content

Commit bf6b94b

Browse files
committed
Repair version token reg for Black formatting
We should move this to setup.cfg style but for now just get things to work.
1 parent 1b3c27d commit bf6b94b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
v = open(
88
os.path.join(os.path.dirname(__file__), "sphinx_paramlinks/__init__.py")
99
)
10-
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
10+
VERSION = (
11+
re.compile(r".*__version__ = [\"'](.*?)[\"']", re.S)
12+
.match(v.read())
13+
.group(1)
14+
)
1115
v.close()
1216

1317
readme = os.path.join(os.path.dirname(__file__), "README.rst")

0 commit comments

Comments
 (0)