Fixing the deprecated library function

os.popen() is deprecated since version 2.6. Resolved with use of
    subprocess module.

Change-Id: Ib6a91ee525e2e57d3901d2c0c1b2d1305bc4566f
This commit is contained in:
Anandprakash Dnyaneshwar Tandale 2015-06-29 15:04:30 +05:30
parent e4d57d6bed
commit bde24cb7c2

View File

@ -23,6 +23,7 @@ import os
import os.path
import sys
from subprocess import Popen
def get_options():
parser = argparse.ArgumentParser(
@ -46,7 +47,7 @@ def _dump_cmd(cmd):
print cmd
print "-" * len(cmd)
print
print os.popen(cmd).read()
subprocess.Popen(cmd, shell=True)
def _header(name):