diff options
| author | nyamatongwe <devnull@localhost> | 2009-05-12 23:39:51 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-05-12 23:39:51 +0000 | 
| commit | 2642c1da70d5f1e26fda2cfee0deb2fa88b43b71 (patch) | |
| tree | a554b9ac64e53a35379ae6e6a7d3160ac293a4de /test/examples/x.py | |
| parent | b529c73475f04af4f687a0d9b1328581734728ae (diff) | |
| download | scintilla-mirror-2642c1da70d5f1e26fda2cfee0deb2fa88b43b71.tar.gz | |
Include tests in standard repository.
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 | 
