Skip to content

Commit

Permalink
Enable build of docs with Python 3
Browse files Browse the repository at this point in the history
`file()` is no longer a built-in in Python 3. It is better to just use a single call to `open` chained with a `read`.
  • Loading branch information
ghisvail committed Jun 4, 2017
1 parent 2a958e6 commit 1c5669f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/source/conf.py
Expand Up @@ -43,9 +43,7 @@

# Grab version from bottleneck/version.py
ver_file = os.path.join('..', '..', 'bottleneck', 'version.py')
fid = file(ver_file, 'r')
VER = fid.read()
fid.close()
VER = open(ver_file, 'r').read()
VER = VER.split("= ")
VER = VER[1].strip()
VER = VER.strip('"')
Expand Down

0 comments on commit 1c5669f

Please sign in to comment.