Upgrade Python syntax with pyupgrade --py36-plus
This commit is contained in:
parent
18a0204105
commit
2e6c848c39
45 changed files with 109 additions and 109 deletions
scripts
|
@ -18,7 +18,7 @@ def get_api(obj):
|
|||
try:
|
||||
description, usage, options, returns = SECTIONS.search(docstr).groups()
|
||||
except:
|
||||
raise ValueError("Doc string format error for {}.".format(obj.__name__))
|
||||
raise ValueError(f"Doc string format error for {obj.__name__}.")
|
||||
|
||||
required = re.findall(REQUIRED_OPTIONS, usage)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue