Simplify requirements check run_command invocation

Since run_command() already strips stdout and stderr before
returning them, there's no need to strip them again later.

Change-Id: Id5e16c57f5371dcb4a3fd532faaf52712e38c75c
This commit is contained in:
Jeremy Stanley 2015-03-24 23:25:09 +00:00
parent 62551ed16e
commit 2640b85cfe
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ def main():
# build a list of requirements in the proposed change,
# and check them for style violations while doing so
head = run_command("git rev-parse HEAD")[0].strip()
head = run_command("git rev-parse HEAD")[0]
head_reqs = RequirementsList('HEAD')
head_reqs.read_all_requirements(strict=True)
@ -148,7 +148,7 @@ def main():
print err
os.chdir(reqdir)
print "requirements git sha: %s" % run_command(
"git rev-parse HEAD")[0].strip()
"git rev-parse HEAD")[0]
os_reqs = RequirementsList('openstack/requirements')
if branch == 'master' or branch.startswith('feature/'):
include_dev = True