From bb3dd3c9f226064553279d2dbfcde1c6f52df132 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 15 Aug 2024 13:11:20 +0200 Subject: [PATCH] style --- lib/lyx2lyx/parser_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lyx2lyx/parser_tools.py b/lib/lyx2lyx/parser_tools.py index 148938cdb3..254f065781 100644 --- a/lib/lyx2lyx/parser_tools.py +++ b/lib/lyx2lyx/parser_tools.py @@ -432,9 +432,9 @@ def get_quoted_value(lines, token, start=0, end=0, default="", delete=False): return default # remove only outer pair of quotes, # hence do not use strip('"') - if val[:1] == '"': + if val.startswith('"'): val = val[1:] - if val[-1:] == '"': + if val.endswith('"'): val = val[:-1] return val -- 2.39.5