MCPcopy
hub / github.com/django/django / format_position

Method format_position

django/test/html.py:214–221  ·  view source on GitHub ↗
(self, position=None, element=None)

Source from the content-addressed store, hash-verified

212 raise HTMLParseError(msg, self.getpos())
213
214 def format_position(self, position=None, element=None):
215 if not position and element:
216 position = self.element_positions[element]
217 if position is None:
218 position = self.getpos()
219 if hasattr(position, "lineno"):
220 position = position.lineno, position.offset
221 return "Line %d, Column %d" % position
222
223 @property
224 def current(self):

Callers 1

handle_endtagMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected