mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
12 lines
222 B
Python
12 lines
222 B
Python
# Convert all punctuation characters except '_', '*', and '.' into spaces.
|
|
def depunctuate(s):
|
|
'''A docstring'''
|
|
"""Docstring 2"""
|
|
d = ""
|
|
for ch in s:
|
|
if ch in 'abcde':
|
|
d = d + ch
|
|
else:
|
|
d = d + " "
|
|
return d
|