From b791817c667f85e9b58a0da79fe330bb6acbc76f Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Fri, 9 Aug 2013 11:29:24 +0200 Subject: [PATCH] Sith PEP8 --- sith.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sith.py b/sith.py index 9e15a42d..af3b9526 100755 --- a/sith.py +++ b/sith.py @@ -172,7 +172,7 @@ class TestCase(object): if os.path.abspath(completion.module_path) == os.path.abspath(self.path): self.show_location(completion.line, completion.column) - show_goto_assignments = show_goto_definitions + show_goto_assignments = show_goto_definitions def show_errors(self): print(self.traceback) @@ -181,6 +181,7 @@ class TestCase(object): "\tline: {line}\n" "\tcolumn: {column}").format(**self.__dict__)) + def main(arguments): debugger = 'pdb' if arguments['--pdb'] else \ 'ipdb' if arguments['--ipdb'] else \ @@ -191,16 +192,17 @@ def main(arguments): if arguments['--debug']: jedi.set_debug_function() - if arguments['redo'] or arguments['show']: + if arguments['redo'] or arguments['show']: t = TestCase.from_cache(record) if arguments['show']: t.show_errors() else: t.run(debugger) elif arguments['run']: - TestCase(arguments[''], arguments[''], + TestCase( + arguments[''], arguments[''], int(arguments['']), int(arguments['']) - ).run(debugger, print_result=True) + ).run(debugger, print_result=True) else: for _ in range(int(arguments['--maxtries'])): t = TestCase.generate(arguments[''] or '.')