Skip to content

Commit f7d03f8

Browse files
committed
Use the version module correctly in edit_on_github
Closes astropy#55.
1 parent 8667bd2 commit f7d03f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/conf.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143

144144
versionmod = __import__(setup_cfg['package_name'] + '.version')
145145
edit_on_github_project = setup_cfg['github_project']
146-
if versionmod.release:
147-
edit_on_github_branch = "v" + versionmod.version
146+
if versionmod.version.release:
147+
edit_on_github_branch = "v" + versionmod.version.version
148148
else:
149149
edit_on_github_branch = "master"
150150

0 commit comments

Comments
 (0)