mirror of https://github.com/docker/compose.git
Define WindowsError on non-win32 platforms
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
0cd35913c3
commit
d3e645488a
|
@ -12,6 +12,13 @@ from six.moves import input
|
||||||
|
|
||||||
import compose
|
import compose
|
||||||
|
|
||||||
|
# WindowsError is not defined on non-win32 platforms. Avoid runtime errors by
|
||||||
|
# defining it as OSError (its parent class) if missing.
|
||||||
|
try:
|
||||||
|
WindowsError
|
||||||
|
except NameError:
|
||||||
|
WindowsError = OSError
|
||||||
|
|
||||||
|
|
||||||
def yesno(prompt, default=None):
|
def yesno(prompt, default=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue