Skip to content

Commit 37d5f89

Browse files
ligurioTotktonada
authored andcommitted
make exec call compatible with Python 3.x
exec was a statement in Python 2.x [1] and it has been converted to a function in Python 3.x [2], change introduced in version 3.0 [3]. 1. https://docs.python.org/2/reference/simple_stmts.html#exec 2. https://docs.python.org/3/library/functions.html#exec 3. https://docs.python.org/3/whatsnew/3.0.html
1 parent 23f164f commit 37d5f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Read package version without importing it
2222
for line in open(os.path.join(os.path.dirname(os.path.abspath('.')), "tarantool", "__init__.py")):
2323
if line.startswith("__version__"):
24-
exec line
24+
exec(line)
2525
break
2626

2727
# -- General configuration -----------------------------------------------------

0 commit comments

Comments
 (0)