Drop 2.7 shim (#202)

pull/205/head
Kate Case 2022-08-24 09:28:22 -04:00 committed by GitHub
parent a0622d06ce
commit e7143c16bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -0,0 +1,3 @@
---
trivial:
- cli_parse - Fix spurious use-before-assign.

View File

@ -27,13 +27,6 @@ from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_valid
from ansible_collections.ansible.utils.plugins.modules.cli_parse import DOCUMENTATION
# python 2.7 compat for FileNotFoundError
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError
ARGSPEC_CONDITIONALS = {
"argument_spec": {"parser": {"mutually_exclusive": [["command", "template_path"]]}},
"required_one_of": [["command", "text"]],