MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / to_str

Method to_str

_pydevd_bundle/pydevd_api.py:354–360  ·  view source on GitHub ↗

-- in py3 raises an error if it's not str already.

(self, s)

Source from the content-addressed store, hash-verified

352 py_db.post_method_as_internal_command(thread_id, internal_get_frame, seq, thread_id, frame_id)
353
354 def to_str(self, s):
355 """
356 -- in py3 raises an error if it's not str already.
357 """
358 if s.__class__ != str:
359 raise AssertionError("Expected to have str on Python 3. Found: %s (%s)" % (s, s.__class__))
360 return s
361
362 def filename_to_str(self, filename):
363 """

Callers 2

request_set_nextMethod · 0.95
add_breakpointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected