MCPcopy
hub / github.com/django/django / splitext

Method splitext

django/core/management/templates.py:355–363  ·  view source on GitHub ↗

Like os.path.splitext, but takes off .tar, too

(self, the_path)

Source from the content-addressed store, hash-verified

353 return the_path
354
355 def splitext(self, the_path):
356 """
357 Like os.path.splitext, but takes off .tar, too
358 """
359 base, ext = posixpath.splitext(the_path)
360 if base.lower().endswith(".tar"):
361 ext = base[-4:] + ext
362 base = base[:-4]
363 return base, ext
364
365 def extract(self, filename):
366 """

Callers 12

downloadMethod · 0.95
hashed_nameMethod · 0.80
_archive_clsMethod · 0.80
_set_nameMethod · 0.80
__init__Method · 0.80
is_templatizedMethod · 0.80
find_filesMethod · 0.80
handleMethod · 0.80
get_available_nameMethod · 0.80
_dumpdata_assertMethod · 0.80

Calls

no outgoing calls

Tested by 3

get_available_nameMethod · 0.64
_dumpdata_assertMethod · 0.64