From 5ac5aacd04567a15ecf3a58c57bffdca85d40404 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 18 Sep 2023 14:40:56 +0000 Subject: [PATCH] Enable line buffering on list URLs FD --- s3-bucket-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-bucket-list b/s3-bucket-list index 6d20670..6129a7e 100755 --- a/s3-bucket-list +++ b/s3-bucket-list @@ -36,7 +36,7 @@ while i < len(sys.argv): elif arg == '--with-list-urls': withListUrls = True try: - listUrlsFD = os.fdopen(3, 'w') + listUrlsFD = os.fdopen(3, 'w', buffering = 1) except OSError: print('Error: FD 3 not open', file = sys.stderr) sys.exit(1)