diff options
author | nyamatongwe <unknown> | 2009-05-12 23:39:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-05-12 23:39:51 +0000 |
commit | 77e5724a36c60f1f8318cd68cf1551a7892bfae7 (patch) | |
tree | a554b9ac64e53a35379ae6e6a7d3160ac293a4de /test/examples/x.py | |
parent | d423d335288c9420c684d4123497b2ece9fbfbe0 (diff) | |
download | scintilla-mirror-77e5724a36c60f1f8318cd68cf1551a7892bfae7.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 |