bgfx/3rdparty/scintilla/test/examples/x.py
2015-06-08 17:07:35 -07:00

11 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