First attempt at making utils.py compatible with Python 2 and 3.

This commit is contained in:
Erik Cox 2014-09-13 15:09:40 -07:00
parent 28478ff257
commit d1d5d84e4c
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
from __future__ import print_function
import os
import sys
@ -53,4 +54,4 @@ def prompt_yes_or_no(question):
def warn(message):
""" Prints a message to stderr """
print >> sys.stderr, (message)
print((message), file=sys.stderr)