diff options
Diffstat (limited to 'test/examples/x.py')
| -rw-r--r-- | test/examples/x.py | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/test/examples/x.py b/test/examples/x.py new file mode 100644 index 000000000..12c4b71df --- /dev/null +++ b/test/examples/x.py @@ -0,0 +1,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 | 
