Skip to content

Commit

Permalink
MIN Make conf.py Python 3.5 compatible
Browse files Browse the repository at this point in the history
This is what readthedocs still uses
  • Loading branch information
luispedro committed Oct 16, 2018
1 parent 63afc3e commit e2e1458
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
#
p = subprocess.run(['./build-scripts/read-version.sh'],
cwd='../../',
stdout=subprocess.PIPE,
encoding='utf-8')
stdout=subprocess.PIPE)
# The full version, including alpha/beta/rc tags.
release = p.stdout.strip()
release = p.stdout.decode('utf-8').strip()

# The short X.Y version.
version = release.split('-')[0]
Expand Down

0 comments on commit e2e1458

Please sign in to comment.