ffdebe56ed
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1009 f5eea248-9336-0410-98b8-ebc06183d4e3
12 lines
233 B
Python
12 lines
233 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
|