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 # writes the following source into a file named sourceName
def writeSourceToFile(lines): def writeSourceToFile(lines):
filePath, srcName = extractSourceName(lines[0]) filePath, srcName = extractSourceName(lines[0])
# print "sourceName is", srcName # print("sourceName is ", srcName)
# print "filePath is", filePath # print("filePath is", filePath)
if filePath != False: if filePath != False:
os.system("mkdir -p " + filePath) os.system("mkdir -p " + filePath)
f = open(srcName, mode='a+', encoding='utf8') f = open(srcName, mode='a+', encoding='utf8')