summaryrefslogtreecommitdiffstats
path: root/test/Scanner/Scanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Scanner/Scanner.py')
-rw-r--r--test/Scanner/Scanner.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Scanner/Scanner.py b/test/Scanner/Scanner.py
index 4c84069..8d48b73 100644
--- a/test/Scanner/Scanner.py
+++ b/test/Scanner/Scanner.py
@@ -113,11 +113,9 @@ bar = env.BarBld(target='bar', source='bar.in')
# Test specifying a source scanner for a Builder that gets
# automatically applied to targets generated from that Builder
-import string
-
def blork(env, target, source):
open(str(target[0]), 'wb').write(
- string.replace(source[0].get_text_contents(), 'getfile', 'MISSEDME'))
+ source[0].get_text_contents().replace('getfile', 'MISSEDME'))
kbld = Builder(action=r'%(_python_)s build.py $SOURCES $TARGET',
src_suffix='.lork',