summaryrefslogtreecommitdiffstats
path: root/scintilla/test/examples/x.py
blob: 7e577dd279165aac0918fa0ac95b3bc5c5e80b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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