##// END OF EJS Templates
util: replace file I/O with readfile
Bryan O'Sullivan -
r27768:5ef99738 default
parent child Browse files
Show More
@@ -756,10 +756,7 b' def tempfilter(s, cmd):'
756 if code:
756 if code:
757 raise Abort(_("command '%s' failed: %s") %
757 raise Abort(_("command '%s' failed: %s") %
758 (cmd, explainexit(code)))
758 (cmd, explainexit(code)))
759 fp = open(outname, 'rb')
759 return readfile(outname)
760 r = fp.read()
761 fp.close()
762 return r
763 finally:
760 finally:
764 try:
761 try:
765 if inname:
762 if inname:
General Comments 0
You need to be logged in to leave comments. Login now