mirror of
https://github.com/docker/docs.git
synced 2026-11-01 22:34:29 +03:00
Merge pull request #3377 from shin-/3372-windowserror
Define WindowsError on non-win32 platforms
This commit is contained in:
@@ -12,6 +12,13 @@ from six.moves import input
|
||||
|
||||
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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user