MCPcopy
hub / github.com/django/django / is_in_comment

Method is_in_comment

django/contrib/staticfiles/storage.py:220–226  ·  view source on GitHub ↗
(self, pos, comments)

Source from the content-addressed store, hash-verified

218 return [(match.start(), match.end()) for match in re.finditer(pattern, content)]
219
220 def is_in_comment(self, pos, comments):
221 for start, end in comments:
222 if start < pos and pos < end:
223 return True
224 if pos < start:
225 return False
226 return False
227
228 def url_converter(self, name, hashed_files, template=None, comment_blocks=None):
229 """

Callers 1

converterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected