Skip to content

Commit 22c7919

Browse files
committed
Update to the environment_{file|loader} feature to fix compatibility with python 3.{4,5,6}
1 parent bf80f2b commit 22c7919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ def load_external_environment_definition_for_config(cls, config):
19781978
try:
19791979
from subprocess import check_output, CalledProcessError
19801980
kwargs = dict(shell=True)
1981-
if not PY2:
1981+
if sys.version_info.major >= 3 and sys.version_info.minor >= 7:
19821982
kwargs['text'] = True
19831983

19841984
envdata = check_output(config.environment_loader, **kwargs)

0 commit comments

Comments
 (0)