Skip to content

Commit 1f17578

Browse files
authored
Update setup_posix.py
resolves PyMySQL#189, PyMySQL#175, PyMySQL#170, PyMySQL#169, etc.
1 parent 2996f9b commit 1f17578

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup_posix.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
# of mysql_config
1010

1111
def dequote(s):
12-
if s[0] in "\"'" and s[0] == s[-1]:
13-
s = s[1:-1]
14-
return s
12+
return s.strip("'\"")
1513

1614
def mysql_config(what):
1715
from os import popen

0 commit comments

Comments
 (0)