worlddump: Use __future__ print_function

Commit e7361775c1 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
This commit is contained in:
John L. Villalovos
2017-02-06 13:46:32 -08:00
parent bab8516a85
commit 09949e0dc6

View File

@@ -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