From 53aa9e87972ec7a5ffd995be8d8f360ecc623a7b Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Thu, 30 May 2019 14:10:01 -0700 Subject: [PATCH] Fix linting issues. --- src/ptvsd/server/options.py | 2 -- tests/conftest.py | 2 +- tests/func/test_break_into_dbg.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ptvsd/server/options.py b/src/ptvsd/server/options.py index 3cc6c5be..a88d6ddc 100644 --- a/src/ptvsd/server/options.py +++ b/src/ptvsd/server/options.py @@ -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. """ diff --git a/tests/conftest.py b/tests/conftest.py index 9efb18f1..a984aa62 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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) diff --git a/tests/func/test_break_into_dbg.py b/tests/func/test_break_into_dbg.py index 974b719a..2cba2c28 100644 --- a/tests/func/test_break_into_dbg.py +++ b/tests/func/test_break_into_dbg.py @@ -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: