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:
|
||||
tf = tempfile.NamedTemporaryFile(suffix = '.c', delete = False)
|
||||
tfname = tf.name
|
||||
success = build(args, s, tf)
|
||||
success = translate(args, s, tf)
|
||||
tf.close()
|
||||
if success:
|
||||
m = re.match('(.*)\.jtl', s)
|
||||
@ -49,7 +49,7 @@ def main(argv):
|
||||
|
||||
return 0 if success else 2
|
||||
|
||||
def build(args, source, dest):
|
||||
def translate(args, source, dest):
|
||||
f = open(source, 'r')
|
||||
contents = f.read()
|
||||
f.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user