diff options
| author | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 14:55:53 +0100 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 14:56:22 +0100 |
| commit | 0da42baa6d35192b7edcc12ef961502e56faf1ca (patch) | |
| tree | 9128aa8d790b6151339eaec1204b69af25e559a8 /dev-python/OutputCheck/files | |
| parent | a29e0c919c20801cf1ceac212a9989bc4861ff31 (diff) | |
| download | gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.tar.gz gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.tar.bz2 gentoo-0da42baa6d35192b7edcc12ef961502e56faf1ca.zip | |
dev-python/OutputCheck: fix Driver
remove deprecated open 'U' option
Closes: https://bugs.gentoo.org/891035
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/OutputCheck/files')
| -rw-r--r-- | dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch new file mode 100644 index 000000000000..9812bd728e0c --- /dev/null +++ b/dev-python/OutputCheck/files/OutputCheck-0.4.2-Driver.patch @@ -0,0 +1,11 @@ +--- a/OutputCheck/Driver.py ++++ b/OutputCheck/Driver.py +@@ -34,7 +34,7 @@ ExitCode = enum('SUCCESS', + + def main(args): + parser = argparse.ArgumentParser(description=__doc__) +- parser.add_argument('check_file', type=argparse.FileType('rU'), help='File containing check commands') ++ parser.add_argument('check_file', type=argparse.FileType('r'), help='File containing check commands') + parser.add_argument('--file-to-check=', type=argparse.FileType('r'), default='-', help='File to check (default %(default)s)') + parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to use from check_file') + parser.add_argument("-l","--log-level",type=str, default="INFO", choices=['debug','info','warning','error']) |
