mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
python: Fixing some python2-to-python3 migrations that I missed in the last PR.
This commit is contained in:
parent
05b4ac0d29
commit
a3421709fe
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user