From fe1ad82cb774e400571e2a23b2d3feb4aaf00e1f Mon Sep 17 00:00:00 2001 From: Goldthing Date: Tue, 3 Jun 2025 12:58:42 +0100 Subject: [PATCH] Update cdl_convert/parse.py to replace depreceated read mode 'rU' with 'r' --- cdl_convert/parse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cdl_convert/parse.py b/cdl_convert/parse.py index 73dea09..26dcae2 100644 --- a/cdl_convert/parse.py +++ b/cdl_convert/parse.py @@ -138,7 +138,7 @@ def parse_ale(input_file): # pylint: disable=R0914 cdls = [] - with open(input_file, 'rU') as edl: + with open(input_file, 'r') as edl: lines = edl.readlines() for line in lines: if not line.strip(): @@ -474,7 +474,7 @@ def parse_cmx(input_file): # pylint: disable=R0912,R0914 """ cdls = [] - with open(input_file, 'rU') as edl: + with open(input_file, 'r') as edl: lines = edl.readlines() filename = os.path.basename(input_file).split('.')[0] @@ -581,7 +581,7 @@ def parse_flex(input_file): # pylint: disable=R0912,R0914 cdls = [] - with open(input_file, 'rU') as edl: + with open(input_file, 'r') as edl: lines = edl.readlines() filename = os.path.basename(input_file).split('.')[0] @@ -706,7 +706,7 @@ def parse_rnh_cdl(input_file): """ - with open(input_file, 'rU') as cdl_f: + with open(input_file, 'r') as cdl_f: # We only need to read the first line line = cdl_f.readline() line = line.split()