summaryrefslogtreecommitdiff
path: root/doc/user/tasks.xml
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@debian.org>2010-06-15 14:28:22 +0000
committerLuca Falavigna <dktrkranz@debian.org>2010-06-15 14:28:22 +0000
commit738149c9bfb9965d013d01ef99f9bb1c2819e7e8 (patch)
tree0397d9bf3b12c903dc73419585df231397ff343c /doc/user/tasks.xml
parente7885e3af440eaef38a9301fd92a105afc8ddebb (diff)
Imported Upstream version 2.0.0upstream/2.0.0
Diffstat (limited to 'doc/user/tasks.xml')
-rw-r--r--doc/user/tasks.xml27
1 files changed, 0 insertions, 27 deletions
diff --git a/doc/user/tasks.xml b/doc/user/tasks.xml
index fd87bd2..2945d1c 100644
--- a/doc/user/tasks.xml
+++ b/doc/user/tasks.xml
@@ -53,15 +53,6 @@ filename = os.path.splitext(filename)[0]+extension
import os.path
filenames = [os.path.join(prefix, x) for x in filenames]
</programlisting>
-
-<simpara>or in Python 1.5.2:</simpara>
-
-<programlisting>
-import os.path
-new_filenames = []
-for x in filenames:
- new_filenames.append(os.path.join(prefix, x))
-</programlisting>
</example>
<example>
@@ -70,14 +61,6 @@ for x in filenames:
if filename.find(old_prefix) == 0:
filename = filename.replace(old_prefix, new_prefix)
</programlisting>
-
-<simpara>or in Python 1.5.2:</simpara>
-
-<programlisting>
-import string
-if string.find(filename, old_prefix) == 0:
- filename = string.replace(filename, old_prefix, new_prefix)
-</programlisting>
</example>
<example>
@@ -87,16 +70,6 @@ of extensions</title>
import os.path
filenames = [x for x in filenames if os.path.splitext(x)[1] in extensions]
</programlisting>
-
-<simpara>or in Python 1.5.2:</simpara>
-
-<programlisting>
-import os.path
-new_filenames = []
-for x in filenames:
- if os.path.splitext(x)[1] in extensions:
- new_filenames.append(x)
-</programlisting>
</example>
<example>