mirror of https://github.com/cheat/cheat.git
First attempt at making utils.py compatible with Python 2 and 3.
This commit is contained in:
parent
28478ff257
commit
d1d5d84e4c
|
@ -1,3 +1,4 @@
|
||||||
|
from __future__ import print_function
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -53,4 +54,4 @@ def prompt_yes_or_no(question):
|
||||||
|
|
||||||
def warn(message):
|
def warn(message):
|
||||||
""" Prints a message to stderr """
|
""" Prints a message to stderr """
|
||||||
print >> sys.stderr, (message)
|
print((message), file=sys.stderr)
|
||||||
|
|
Loading…
Reference in New Issue