mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
First attempt at making utils.py compatible with Python 2 and 3.
This commit is contained in:
parent
28478ff257
commit
d1d5d84e4c
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue