From 09949e0dc61d9ef420b1528d0549092f88bc422a Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 6 Feb 2017 13:46:32 -0800 Subject: [PATCH] worlddump: Use __future__ print_function Commit e7361775c112e32ea517eddc344641897d273d25 changed the code to use Python 3 style print function, but when doing 'print()' in Python 2.7 it would print '()': >>> print() () Import the __future__ print function so that a blank line will be printed as expected. This will now work the same in Python 2 & 3. Change-Id: I61742e107278f2327c18c9ab0de52d1914f16c97 --- tools/worlddump.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/worlddump.py b/tools/worlddump.py index 1ce931efd5..1244dfbec3 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -17,6 +17,8 @@ """Dump the state of the world for post mortem.""" +from __future__ import print_function + import argparse import datetime from distutils import spawn