Python 3 fixes
git-svn-id: svn://localhost/ardour2/branches/3.0@10167 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e7403295fe
commit
31bbc76319
|
@ -289,7 +289,7 @@ def _doPyp(infileName):
|
||||||
if infileName == '-':
|
if infileName == '-':
|
||||||
fd = sys.stdin
|
fd = sys.stdin
|
||||||
else:
|
else:
|
||||||
fd = file(infileName)
|
fd = open(infileName)
|
||||||
inLines = fd.readlines()
|
inLines = fd.readlines()
|
||||||
if fd != sys.stdin:
|
if fd != sys.stdin:
|
||||||
fd.close()
|
fd.close()
|
||||||
|
@ -310,7 +310,7 @@ def _doPyp(infileName):
|
||||||
def include_processor(task):
|
def include_processor(task):
|
||||||
infileName = task.inputs[0].srcpath()
|
infileName = task.inputs[0].srcpath()
|
||||||
outfileName = os.path.join(out, task.outputs[0].bldpath())
|
outfileName = os.path.join(out, task.outputs[0].bldpath())
|
||||||
fdOut = file (outfileName, "w")
|
fdOut = open (outfileName, "w")
|
||||||
fdOut.write (_doPyp(infileName))
|
fdOut.write (_doPyp(infileName))
|
||||||
fdOut.close ()
|
fdOut.close ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue