From 04b2f4ff79cf1fd71e138bafc67df8bbdb5b81c2 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Tue, 14 Feb 2017 21:18:00 -0800 Subject: [PATCH] Adjust spacing in cli-v1-to-v2 to satisfy flake8 --- cli-v1-to-v2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli-v1-to-v2 b/cli-v1-to-v2 index 36e1cd5..aa83461 100755 --- a/cli-v1-to-v2 +++ b/cli-v1-to-v2 @@ -298,24 +298,28 @@ def _app_init(source): 'cli\\.NewApp\\(\\)', '(&cli.App{})', source, flags=re.UNICODE ) + @_migrator def _bash_complete(source): return re.sub( 'BashComplete:', 'ShellComplete:', re.sub('\\.BashComplete', '.ShellComplete', source, flags=re.UNICODE)) + @_migrator def _enable_bash_completion(source): return re.sub( '\\.EnableBashCompletion', '.EnableShellCompletion', source, flags=re.UNICODE ) + @_migrator def _bash_completion_flag(source): return re.sub( 'cli\\.BashCompletionFlag', 'cli.GenerateCompletionFlag', source, flags=re.UNICODE ) + def test_migrators(): import difflib