From d7baf9f5d8decc38816bade8fb1ea97a98b4dbb0 Mon Sep 17 00:00:00 2001 From: couriersud Date: Thu, 8 Jan 2015 01:29:24 +0100 Subject: [PATCH] Make file2str.pv compatible with python 2.5 (nw) --- src/build/file2str.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/build/file2str.py b/src/build/file2str.py index b21d19cca07..6dace489050 100644 --- a/src/build/file2str.py +++ b/src/build/file2str.py @@ -1,5 +1,7 @@ #!/usr/bin/python +from __future__ import with_statement + import string import sys import os @@ -53,4 +55,4 @@ try: dst.close() except IOError: print("Unable to open output file '%s'" % dstfile) - sys.exit(-1) \ No newline at end of file + sys.exit(-1)