Adjust spacing in cli-v1-to-v2 to satisfy flake8
This commit is contained in:
parent
230bac34b7
commit
04b2f4ff79
@ -298,24 +298,28 @@ def _app_init(source):
|
|||||||
'cli\\.NewApp\\(\\)', '(&cli.App{})', source, flags=re.UNICODE
|
'cli\\.NewApp\\(\\)', '(&cli.App{})', source, flags=re.UNICODE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@_migrator
|
@_migrator
|
||||||
def _bash_complete(source):
|
def _bash_complete(source):
|
||||||
return re.sub(
|
return re.sub(
|
||||||
'BashComplete:', 'ShellComplete:',
|
'BashComplete:', 'ShellComplete:',
|
||||||
re.sub('\\.BashComplete', '.ShellComplete', source, flags=re.UNICODE))
|
re.sub('\\.BashComplete', '.ShellComplete', source, flags=re.UNICODE))
|
||||||
|
|
||||||
|
|
||||||
@_migrator
|
@_migrator
|
||||||
def _enable_bash_completion(source):
|
def _enable_bash_completion(source):
|
||||||
return re.sub(
|
return re.sub(
|
||||||
'\\.EnableBashCompletion', '.EnableShellCompletion', source, flags=re.UNICODE
|
'\\.EnableBashCompletion', '.EnableShellCompletion', source, flags=re.UNICODE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@_migrator
|
@_migrator
|
||||||
def _bash_completion_flag(source):
|
def _bash_completion_flag(source):
|
||||||
return re.sub(
|
return re.sub(
|
||||||
'cli\\.BashCompletionFlag', 'cli.GenerateCompletionFlag', source, flags=re.UNICODE
|
'cli\\.BashCompletionFlag', 'cli.GenerateCompletionFlag', source, flags=re.UNICODE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_migrators():
|
def test_migrators():
|
||||||
import difflib
|
import difflib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user