From a8ef94df2fbc4b733e0393b5b77066208d8a53dd Mon Sep 17 00:00:00 2001 From: George Vince Date: Fri, 2 May 2025 10:31:20 +0100 Subject: [PATCH] fix: remove deprecated U flag in read() --- sqlpy/sqlpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlpy/sqlpy.py b/sqlpy/sqlpy.py index cb3811d..f7b3148 100644 --- a/sqlpy/sqlpy.py +++ b/sqlpy/sqlpy.py @@ -459,6 +459,6 @@ def load_queries(filepath): for file in filepath: if not os.path.exists(file): raise SQLLoadException('Could not find file', file) - with open(file, 'rU') as queries_file: + with open(file, 'r') as queries_file: f = f + '\n\n' + queries_file.read().strip('\n') return parse_queires_string(f)