From cca0071cbf0e4b874bd9777275d97a6d9636d4b2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 11 Jan 2021 13:36:04 -0500 Subject: [PATCH] these aren't win32 specific --- src/allmydata/windows/fixups.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmydata/windows/fixups.py b/src/allmydata/windows/fixups.py index 56a914c01..e3e11a386 100644 --- a/src/allmydata/windows/fixups.py +++ b/src/allmydata/windows/fixups.py @@ -43,6 +43,9 @@ CommandLineToArgvW = WINFUNCTYPE( )(("CommandLineToArgvW", windll.shell32)) +STDOUT_FILENO = 1 +STDERR_FILENO = 2 + def get_argv(): """ :return [unicode]: The argument list this process was invoked with, as @@ -137,8 +140,6 @@ def initialize(): if hasattr(sys.stderr, 'fileno'): old_stderr_fileno = sys.stderr.fileno() - STDOUT_FILENO = 1 - STDERR_FILENO = 2 real_stdout = (old_stdout_fileno == STDOUT_FILENO) real_stderr = (old_stderr_fileno == STDERR_FILENO)