Minor fixes (#1718)

* Fix missed return

* Remove threading check
This commit is contained in:
Karthik Nadig 2019-08-22 17:39:35 -07:00 committed by GitHub
parent 15a9befccf
commit 2afcdc91f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -14,9 +14,6 @@ __file__ = os.path.abspath(__file__)
if __name__ == "__main__":
if "pydevd" not in sys.modules:
assert "threading" not in sys.modules
# ptvsd can also be invoked directly rather than via -m. In this case, the first
# entry on sys.path is the one added automatically by Python for the directory
# containing this file. This means that import ptvsd will not work, since we need
@ -44,8 +41,5 @@ if __name__ == "__main__":
import ptvsd # noqa
del sys.path[0]
# if "pydevd" not in sys.modules:
# assert "threading" not in sys.modules
from ptvsd.server import main
main.main()

View file

@ -572,7 +572,7 @@ class PyDB(object):
return system_exit_exc in self._ignore_system_exit_codes
def block_until_configuration_done(self, timeout=None):
self._on_configuration_done_event.wait(timeout)
return self._on_configuration_done_event.wait(timeout)
def add_fake_frame(self, thread_id, frame_id, frame):
self.suspended_frames_manager.add_fake_frame(thread_id, frame_id, frame)