From 12ae02a3a5ee92ff6e50e62e91eb73f76c8df504 Mon Sep 17 00:00:00 2001 From: ivegotahunnitonit Date: Fri, 14 Aug 2026 15:28:31 -0600 Subject: [PATCH] Clean up legacy Python <3.8 ast.Str deprecation in parser.py --- fire/parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fire/parser.py b/fire/parser.py index a335cc2c..f388fda3 100644 --- a/fire/parser.py +++ b/fire/parser.py @@ -18,10 +18,7 @@ import ast import sys -if sys.version_info[0:2] < (3, 8): - _StrNode = ast.Str # type: ignore # pylint: disable=no-member # deprecated but needed for Python < 3.8 -else: - _StrNode = ast.Constant +_StrNode = ast.Constant def CreateParser():