mirror of
https://github.com/cheat/cheat.git
synced 2025-07-13 01:01:58 +02:00
First attempt at making utils.py compatible with Python 2 and 3.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user