Fixing the deprecated library function
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.
Change-Id: Ib6a91ee525e2e57d3901d2c0c1b2d1305bc4566f
diff --git a/tools/worlddump.py b/tools/worlddump.py
index 7acfb5e..0f1a6a1 100755
--- a/tools/worlddump.py
+++ b/tools/worlddump.py
@@ -23,6 +23,7 @@
import os.path
import sys
+from subprocess import Popen
def get_options():
parser = argparse.ArgumentParser(
@@ -46,7 +47,7 @@
print cmd
print "-" * len(cmd)
print
- print os.popen(cmd).read()
+ subprocess.Popen(cmd, shell=True)
def _header(name):