File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ def dequote(s):
9
9
return s
10
10
11
11
def compiler_flag (f ):
12
- return "-%s" % f
12
+ return "-{}" . format ( f );
13
13
14
14
def mysql_config (what ):
15
15
from os import popen
16
16
17
- f = popen ("%s --%s" % (mysql_config .path , what ))
17
+ f = popen ("{} --{}" . format (mysql_config .path , what ))
18
18
data = f .read ().strip ().split ()
19
19
ret = f .close ()
20
20
if ret :
21
21
if ret / 256 :
22
22
data = []
23
23
if ret / 256 > 1 :
24
- raise EnvironmentError ("%s not found" % (mysql_config .path , ))
24
+ raise EnvironmentError ("{} not found" . format (mysql_config .path ))
25
25
return data
26
26
mysql_config .path = "mysql_config"
27
27
@@ -72,7 +72,7 @@ def get_config():
72
72
73
73
if static :
74
74
extra_objects .append (os .path .join (
75
- library_dirs [0 ],'lib%s .a' % client ))
75
+ library_dirs [0 ],'lib{} .a' . format ( client ) ))
76
76
77
77
name = "MySQL-python"
78
78
if enabled (options , 'embedded' ):
You can’t perform that action at this time.
0 commit comments