python: Fixing some python2-to-python3 migrations that I missed in the last PR.

This commit is contained in:
Christian Parpart 2020-01-31 14:26:55 +01:00 committed by chriseth
parent 05b4ac0d29
commit a3421709fe

View File

@ -27,8 +27,8 @@ def extractSourceName(line):
# writes the following source into a file named sourceName
def writeSourceToFile(lines):
filePath, srcName = extractSourceName(lines[0])
# print "sourceName is", srcName
# print "filePath is", filePath
# print("sourceName is ", srcName)
# print("filePath is", filePath)
if filePath != False:
os.system("mkdir -p " + filePath)
f = open(srcName, mode='a+', encoding='utf8')