We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subprocess.check_output
1 parent 7f10e74 commit 0f34dd0Copy full SHA for 0f34dd0
src/future/backports/misc.py
@@ -922,10 +922,14 @@ def __hash__(self):
922
# from the standard library:
923
if sys.version_info >= (2, 7):
924
from collections import OrderedDict, Counter
925
- from subprocess import check_output
926
from itertools import count
927
- from socket import create_connection
928
from functools import cmp_to_key
+ try:
+ from subprocess import check_output
929
+ except ImportError:
930
+ # Not available. This happens with Google App Engine: see issue #231
931
+ pass
932
+ from socket import create_connection
933
934
if sys.version_info >= (3, 0):
935
from math import ceil
0 commit comments