From 2642c1da70d5f1e26fda2cfee0deb2fa88b43b71 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 May 2009 23:39:51 +0000 Subject: Include tests in standard repository. --- test/examples/x.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/examples/x.py (limited to 'test/examples/x.py') 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 -- cgit v1.2.3