Upgrade Python syntax with pyupgrade --py37-plus

This commit is contained in:
Hugo 2019-10-02 19:38:56 +03:00 committed by Lex Berezhny
parent b70a23a10a
commit c5cfd8f40e
38 changed files with 77 additions and 85 deletions

View file

@ -408,9 +408,9 @@ def get_examples():
SECTIONS = re.compile("(.*?)Usage:(.*?)Options:(.*?)Returns:(.*)", re.DOTALL)
REQUIRED_OPTIONS = re.compile("\(<(.*?)>.*?\)")
REQUIRED_OPTIONS = re.compile(r"\(<(.*?)>.*?\)")
ARGUMENT_NAME = re.compile("--([^=]+)")
ARGUMENT_TYPE = re.compile("\s*\((.*?)\)(.*)")
ARGUMENT_TYPE = re.compile(r"\s*\((.*?)\)(.*)")
def get_return_def(returns):