Fix linting issues.

This commit is contained in:
Pavel Minaev 2019-05-30 14:10:01 -07:00
parent 7fbd5feebf
commit 53aa9e8797
3 changed files with 2 additions and 4 deletions

View file

@ -4,8 +4,6 @@
from __future__ import print_function, with_statement, absolute_import
import os
"""ptvsd command-line options that need to be globally available.
"""

View file

@ -213,7 +213,7 @@ def pyfile(request, tmpdir):
# with, so just replace them with a simple newline.
line = source[0]
indent = len(line) - len(line.lstrip())
source = [line[indent:] if line.strip() else '\n' for line in source]
source = [l[indent:] if l.strip() else '\n' for l in source]
# Write it to file.
source = ''.join(source)

View file

@ -46,7 +46,7 @@ def test_breakpoint_function(pyfile, run_as, start_method):
# and attach cases. For attach this is always after wait_for_attach
from dbgimporter import import_and_enable_debugger
import_and_enable_debugger()
breakpoint()
breakpoint() # noqa
print('break here')
with DebugSession() as session: