aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples/x.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-05-12 23:39:51 +0000
committernyamatongwe <devnull@localhost>2009-05-12 23:39:51 +0000
commit2642c1da70d5f1e26fda2cfee0deb2fa88b43b71 (patch)
treea554b9ac64e53a35379ae6e6a7d3160ac293a4de /test/examples/x.py
parentb529c73475f04af4f687a0d9b1328581734728ae (diff)
downloadscintilla-mirror-2642c1da70d5f1e26fda2cfee0deb2fa88b43b71.tar.gz
Include tests in standard repository.
Diffstat (limited to 'test/examples/x.py')
-rw-r--r--test/examples/x.py11
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