Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / doc / user / tasks.in
index c51ad36ef5120f9dd4d862bd850dfa0ee7b6c766..434871ff4c4265c77fe325c1ebf58ac80c1c9a4d 100644 (file)
@@ -74,9 +74,8 @@ if filename.find(old_prefix) == 0:
 <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)      
+if filename.find(old_prefix) == 0:
+    filename = filename.replace(old_prefix, new_prefix)      
 </programlisting>
 </example>