diff options
author | Steven Knight <knight@baldmt.com> | 2008-12-12 06:16:31 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2008-12-12 06:16:31 +0000 |
commit | bd7015b46c7cf6ffb0522ce7d20a6d8559b75155 (patch) | |
tree | f468f63915d4ba1b0ea3cc2d064d5ce922cfe6e4 /test/srcchange.py | |
parent | ad39c4a4612cd5f3f920c0cc44ffb2b2d4160a8a (diff) | |
download | scons-bd7015b46c7cf6ffb0522ce7d20a6d8559b75155.tar.gz |
Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)
Diffstat (limited to 'test/srcchange.py')
-rw-r--r-- | test/srcchange.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/srcchange.py b/test/srcchange.py index 0b56442b..6cda3dd4 100644 --- a/test/srcchange.py +++ b/test/srcchange.py @@ -53,10 +53,10 @@ import re import string def subrevision(target, source ,env): - orig = target[0].get_contents() + orig = target[0].get_text_contents() new = re.sub('\$REV.*?\$', - '$REV: %%s$'%%string.strip(source[0].get_contents()), - target[0].get_contents()) + '$REV: %%s$'%%string.strip(source[0].get_text_contents()), + target[0].get_text_contents()) outf = open(str(target[0]),'wb') outf.write(new) outf.close() |