MCPcopy Create free account
hub / github.com/ActiveState/code / remove_ext

Function remove_ext

recipes/Python/578511_Python_HTML_Stripper/recipe-578511.py:297–308  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

295 return r
296
297def remove_ext(s):
298 r=s
299 i=len(s)
300 j=-1
301 while i>=0:
302 i=i-1
303 if s[i]==".":
304 j=i
305 break
306 if j>=0:
307 r=s.__getslice__(0,j)
308 return r
309
310def remove_end_nums(s):
311 r=s

Callers 6

change_soundFunction · 0.85
submit_feedbackFunction · 0.85
next_avail_fileFunction · 0.85
simplify_filenameFunction · 0.85

Calls 1

__getslice__Method · 0.45

Tested by

no test coverage detected