Changeset: 3d27f2240e85 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3d27f2240e85 Modified Files: testing/process.py Branch: Jun2020 Log Message:
Work around for old Python 3.6. diffs (16 lines): diff --git a/testing/process.py b/testing/process.py --- a/testing/process.py +++ b/testing/process.py @@ -147,6 +147,12 @@ class Popen(subprocess.Popen): def __init__(self, *args, **kwargs): self.dotmonetdbfile = None self.isserver = False + if sys.version[:3] < '3.7': + kw = kwargs.copy() + if 'text' in kw: + kw['universal_newlines'] = kw['text'] + del kw['text'] + kwargs = kw super().__init__(*args, **kwargs) def __exit__(self, exc_type, value, traceback): _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list