Browse code

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

John L. Villalovos authored on 2017/02/07 06:46:32
Showing 1 changed files
... ...
@@ -17,6 +17,8 @@
17 17
 
18 18
 """Dump the state of the world for post mortem."""
19 19
 
20
+from __future__ import print_function
21
+
20 22
 import argparse
21 23
 import datetime
22 24
 from distutils import spawn