Merge "Fixing the deprecated library function."

This commit is contained in:
Jenkins 2016-01-27 23:47:59 +00:00 committed by Gerrit Code Review
commit 8748669941
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
from __future__ import print_function
import subprocess
import sys
import os
import fileinput
@ -76,8 +77,11 @@ pygments_style = 'sphinx'
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project
git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1"
html_last_updated_fmt = os.popen(git_cmd).read()
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
"-n1"]
html_last_updated_fmt = subprocess.Popen(git_cmd,
stdout=subprocess.PIPE).\
communicate()[0]
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass