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

Method filename_to_str

_pydevd_bundle/pydevd_api.py:362–368  ·  view source on GitHub ↗

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

(self, filename)

Source from the content-addressed store, hash-verified

360 return s
361
362 def filename_to_str(self, filename):
363 """
364 -- in py3 raises an error if it's not str already.
365 """
366 if filename.__class__ != str:
367 raise AssertionError("Expected to have str on Python 3. Found: %s (%s)" % (filename, filename.__class__))
368 return filename
369
370 def filename_to_server(self, filename):
371 filename = self.filename_to_str(filename)

Callers 6

filename_to_serverMethod · 0.95
cmd_set_breakMethod · 0.80
cmd_remove_breakMethod · 0.80
_load_sourceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected