Skip to content

Commit

Permalink
Fix dirty-flag removal in docs/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Jun 20, 2017
1 parent 3a76188 commit 49fd49e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
#
# This file is execfile()d with the current directory set to its containing dir.

import os, sys, time, cgi
import re, os, sys, time, cgi
sys.path.append(os.path.abspath(".."))

from get_version import __version__ as hy_version
if hy_version.endswith(".dirty"):
# Read the Docs might dirty its checkout, so ignore this.
hy_version = hy_version[:-len(".dirty")]
# Read the Docs might dirty its checkout, so strip the dirty flag.
hy_version = re.sub('[+.]dirty\Z', '', hy_version)

templates_path = ['_templates']
source_suffix = '.rst'
Expand Down

0 comments on commit 49fd49e

Please sign in to comment.