File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
+ from __future__ import print_function
3
4
import os
4
5
import sys
5
6
import subprocess
@@ -39,10 +40,10 @@ while args:
39
40
unique_args .insert (0 , a )
40
41
41
42
42
- print 'Biglink create %s library' % sys .argv [1 ]
43
- print 'Biglink arguments:'
43
+ print ( 'Biglink create %s library' % sys .argv [1 ])
44
+ print ( 'Biglink arguments:' )
44
45
for arg in unique_args :
45
- print '' , arg
46
+ print ( ' %s' % arg )
46
47
47
48
args = os .environ ['CC' ].split () + \
48
49
['-shared' , '-O3' , '-o' , sys .argv [1 ]] + \
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
+ from __future__ import print_function
3
4
import sys
4
5
import subprocess
5
6
from os import environ
@@ -51,8 +52,8 @@ while i < len(sys.argv):
51
52
continue
52
53
53
54
if opt .startswith ("-" ):
54
- print sys .argv
55
- print "Unknown option: " , opt
55
+ print ( sys .argv )
56
+ print ( "Unknown option: %s" % opt )
56
57
sys .exit (1 )
57
58
58
59
if not opt .endswith ('.o' ):
@@ -61,12 +62,12 @@ while i < len(sys.argv):
61
62
objects .append (opt )
62
63
63
64
64
- f = file (output , "w" )
65
+ f = open (output , "w" )
65
66
f .close ()
66
67
67
68
output = join (environ .get ('LIBLINK_PATH' ), basename (output ))
68
69
69
- f = file (output + ".libs" , "w" )
70
+ f = open (output + ".libs" , "w" )
70
71
f .write (" " .join (libs ))
71
72
f .close ()
72
73
You can’t perform that action at this time.
0 commit comments