From 5d228de79d074d8e4ab4bbf804bbf3d9e406ac6f Mon Sep 17 00:00:00 2001 From: LiuNanke Date: Sat, 9 Jan 2016 21:55:24 +0800 Subject: [PATCH] Replace deprecated library function os.popen() with subprocess os.popen() is deprecated since version 2.6. Resolved with use of subprocess module. Closes-bug: #1529836 Change-Id: I3701a14026a85898bc01f3102369a2f87de56015 --- doc/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 8ada916da..6683c4579 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -162,9 +162,9 @@ html_static_path = [] # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", - "-n1"] + "-n1"] html_last_updated_fmt = subprocess.Popen(git_cmd, - stdout=subprocess.PIPE).communicate()[0] + stdout=subprocess.PIPE).communicate()[0] # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities.