name build() method translate() for clarity
This commit is contained in:
parent
59a9380566
commit
0ddfabc64b
4
jtlc
4
jtlc
@ -32,7 +32,7 @@ def main(argv):
|
|||||||
for s in args.sources:
|
for s in args.sources:
|
||||||
tf = tempfile.NamedTemporaryFile(suffix = '.c', delete = False)
|
tf = tempfile.NamedTemporaryFile(suffix = '.c', delete = False)
|
||||||
tfname = tf.name
|
tfname = tf.name
|
||||||
success = build(args, s, tf)
|
success = translate(args, s, tf)
|
||||||
tf.close()
|
tf.close()
|
||||||
if success:
|
if success:
|
||||||
m = re.match('(.*)\.jtl', s)
|
m = re.match('(.*)\.jtl', s)
|
||||||
@ -49,7 +49,7 @@ def main(argv):
|
|||||||
|
|
||||||
return 0 if success else 2
|
return 0 if success else 2
|
||||||
|
|
||||||
def build(args, source, dest):
|
def translate(args, source, dest):
|
||||||
f = open(source, 'r')
|
f = open(source, 'r')
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user