mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 14:50:17 +00:00
Use print() function to fix install on python 3
clint 0.3.2 can't be installed on python 3.3 because of a print statement.
This commit is contained in:
@@ -8,7 +8,7 @@ Module for simple interactive prompts handling
|
||||
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
from re import match, I
|
||||
|
||||
@@ -30,7 +30,7 @@ def yn(prompt, default='y', batch=False):
|
||||
if not batch:
|
||||
input = raw_input(prompt).strip()
|
||||
else:
|
||||
print prompt
|
||||
print(prompt)
|
||||
input = ''
|
||||
|
||||
# If input is empty default choice is assumed
|
||||
|
||||
Reference in New Issue
Block a user