From bde24cb7c20a9797eb581a39a9f0839c4951300d Mon Sep 17 00:00:00 2001 From: Anandprakash Dnyaneshwar Tandale Date: Mon, 29 Jun 2015 15:04:30 +0530 Subject: [PATCH] Fixing the deprecated library function os.popen() is deprecated since version 2.6. Resolved with use of subprocess module. Change-Id: Ib6a91ee525e2e57d3901d2c0c1b2d1305bc4566f --- tools/worlddump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/worlddump.py b/tools/worlddump.py index 7acfb5e97d..0f1a6a1da9 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -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):