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:
parent
e4d57d6bed
commit
bde24cb7c2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user