Skip to content

Commit

Permalink
Don't use keyword.issoftkeyword (breaks 3.7 and 3.8 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Nov 4, 2023
1 parent 7534a83 commit 43bd01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions duckargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import os
import re
from keyword import iskeyword, issoftkeyword
from keyword import iskeyword

PYTHON_TEMPLATE = """{0}import argparse
Expand Down Expand Up @@ -276,7 +276,7 @@ def process_args(reserved_str_check, argv=sys.argv):
return ret

def _is_python_reserved_str(var_name):
if iskeyword(var_name) or issoftkeyword(var_name):
if iskeyword(var_name):
return True

return var_name in ['int', 'float', 'bool', 'dict', 'list', 'tuple']
Expand Down

0 comments on commit 43bd01c

Please sign in to comment.