Make file2str.pv compatible with python 2.5 (nw)

This commit is contained in:
couriersud 2015-01-08 01:29:24 +01:00
parent 3a291c4cb7
commit d7baf9f5d8

View File

@ -1,5 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
from __future__ import with_statement
import string import string
import sys import sys
import os import os
@ -53,4 +55,4 @@ try:
dst.close() dst.close()
except IOError: except IOError:
print("Unable to open output file '%s'" % dstfile) print("Unable to open output file '%s'" % dstfile)
sys.exit(-1) sys.exit(-1)