Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import

Refer #256
This commit is contained in:
Eklavya Sharma
2016-03-10 21:45:34 +05:30
committed by Tim Abbott
parent 3e7827358e
commit c59185e119
51 changed files with 212 additions and 162 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python2.7
from __future__ import print_function
import dateutil.parser
import pytz
import subprocess
@@ -13,7 +14,7 @@ states = {
}
def report(state, msg):
print "%s: %s" % (state, msg)
print("%s: %s" % (state, msg))
exit(states[state])
if subprocess.check_output(['psql', 'postgres', '-t', '-c',