Support python 3
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
17682c58db
commit
809443d6d0
23 changed files with 128 additions and 85 deletions
|
|
@ -9,6 +9,7 @@ import ssl
|
|||
import subprocess
|
||||
|
||||
from docker import version as docker_py_version
|
||||
from six.moves import input
|
||||
|
||||
from .. import __version__
|
||||
|
||||
|
|
@ -23,7 +24,7 @@ def yesno(prompt, default=None):
|
|||
Unrecognised input (anything other than "y", "n", "yes",
|
||||
"no" or "") will return None.
|
||||
"""
|
||||
answer = raw_input(prompt).strip().lower()
|
||||
answer = input(prompt).strip().lower()
|
||||
|
||||
if answer == "y" or answer == "yes":
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue