Skip to content

Commit 9680e4b

Browse files
committed
updated setup_posix.py for py3 so it can be installed in linux...
1 parent 7092f49 commit 9680e4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup_posix.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ def dequote(s):
99
return s
1010

1111
def compiler_flag(f):
12-
return "-%s" % f
12+
return "-{}".format(f);
1313

1414
def mysql_config(what):
1515
from os import popen
1616

17-
f = popen("%s --%s" % (mysql_config.path, what))
17+
f = popen("{} --{}".format(mysql_config.path, what))
1818
data = f.read().strip().split()
1919
ret = f.close()
2020
if ret:
2121
if ret/256:
2222
data = []
2323
if ret/256 > 1:
24-
raise EnvironmentError("%s not found" % (mysql_config.path,))
24+
raise EnvironmentError("{} not found".format(mysql_config.path))
2525
return data
2626
mysql_config.path = "mysql_config"
2727

@@ -72,7 +72,7 @@ def get_config():
7272

7373
if static:
7474
extra_objects.append(os.path.join(
75-
library_dirs[0],'lib%s.a' % client))
75+
library_dirs[0],'lib{}.a'.format(client)))
7676

7777
name = "MySQL-python"
7878
if enabled(options, 'embedded'):

0 commit comments

Comments
 (0)