diff options
author | Johannes Krampf <johannes.krampf@googlemail.com> | 2014-01-19 16:03:49 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-01-20 12:42:44 -0500 |
commit | 19f789bdfd58eba2ed8fe604bbabf8df0fcc0771 (patch) | |
tree | 51c49104aec5b420382f82f71e3b4a8edf0be8f1 /scripts/vgafixup.py | |
parent | 0a82fc743c5ec1553f745bec6fc8bc8780088fd8 (diff) | |
download | seabios-19f789bdfd58eba2ed8fe604bbabf8df0fcc0771.zip seabios-19f789bdfd58eba2ed8fe604bbabf8df0fcc0771.tar.gz seabios-19f789bdfd58eba2ed8fe604bbabf8df0fcc0771.tar.bz2 |
build: Be careful with unicode and byte strings for python3 compatibility.
Signed-off-by: Johannes Krampf <johannes.krampf@googlemail.com>
Diffstat (limited to 'scripts/vgafixup.py')
-rw-r--r-- | scripts/vgafixup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vgafixup.py b/scripts/vgafixup.py index 2493f35..a981bbf 100644 --- a/scripts/vgafixup.py +++ b/scripts/vgafixup.py @@ -20,7 +20,7 @@ import sys def main(): infilename, outfilename = sys.argv[1:] - infile = open(infilename, 'rb') + infile = open(infilename, 'r') out = [] for line in infile: sline = line.strip() @@ -33,7 +33,7 @@ def main(): else: out.append(line) infile.close() - outfile = open(outfilename, 'wb') + outfile = open(outfilename, 'w') outfile.write(''.join(out)) outfile.close() |