Merge "Fix html_last_updated_fmt for Python3"

This commit is contained in:
Jenkins 2017-06-22 18:48:03 +00:00 committed by Gerrit Code Review
commit c4dcb5a160
1 changed files with 2 additions and 5 deletions

View File

@ -82,13 +82,10 @@ release = version_info.release_string()
giturl = (u"https://git.openstack.org/cgit/openstack/barbican/tree/"
"api-guide/source")
git_cmd = ["/usr/bin/git", "rev-parse", "HEAD"]
gitsha = subprocess.Popen(
git_cmd, stdout=subprocess.PIPE).communicate()[0]
gitsha = subprocess.check_output(git_cmd).decode('utf-8')
# source tree
pwd = subprocess.Popen(
"pwd", stdout=subprocess.PIPE).communicate()[0].strip('\n')
pwd = subprocess.check_output("pwd").decode('utf-8')
# html_context allows us to pass arbitrary values into the html template
html_context = {"pwd": pwd,