mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
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 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)
|
||||
|
Loading…
Reference in New Issue
Block a user