forked from VimPlug/jedi
Fix flake8 issues in sith.py
This commit is contained in:
14
sith.py
14
sith.py
@@ -176,9 +176,9 @@ class TestCase(object):
|
|||||||
def show_errors(self):
|
def show_errors(self):
|
||||||
sys.stderr.write(self.traceback)
|
sys.stderr.write(self.traceback)
|
||||||
print(("Error with running Script(...).{operation}() with\n"
|
print(("Error with running Script(...).{operation}() with\n"
|
||||||
"\tpath: {path}\n"
|
"\tpath: {path}\n"
|
||||||
"\tline: {line}\n"
|
"\tline: {line}\n"
|
||||||
"\tcolumn: {column}").format(**self.__dict__))
|
"\tcolumn: {column}").format(**self.__dict__))
|
||||||
|
|
||||||
|
|
||||||
def main(arguments):
|
def main(arguments):
|
||||||
@@ -198,10 +198,10 @@ def main(arguments):
|
|||||||
else:
|
else:
|
||||||
t.run(debugger)
|
t.run(debugger)
|
||||||
elif arguments['run']:
|
elif arguments['run']:
|
||||||
TestCase(
|
TestCase(
|
||||||
arguments['<operation>'], arguments['<path>'],
|
arguments['<operation>'], arguments['<path>'],
|
||||||
int(arguments['<line>']), int(arguments['<column>'])
|
int(arguments['<line>']), int(arguments['<column>'])
|
||||||
).run(debugger, print_result=True)
|
).run(debugger, print_result=True)
|
||||||
else:
|
else:
|
||||||
for _ in range(int(arguments['--maxtries'])):
|
for _ in range(int(arguments['--maxtries'])):
|
||||||
t = TestCase.generate(arguments['<path>'] or '.')
|
t = TestCase.generate(arguments['<path>'] or '.')
|
||||||
|
|||||||
Reference in New Issue
Block a user