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

Function _read_file

pydevd_plugins/django_debug.py:268–273  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

266
267
268def _read_file(filename):
269 # type: (str) -> str
270 f = open(filename, "r", encoding="utf-8", errors="replace")
271 s = f.read()
272 f.close()
273 return s
274
275
276def _offset_to_line_number(text, offset):

Callers 1

_get_template_lineFunction · 0.85

Calls 2

readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected