8000 Don't apppend `.None` to version number (#576) · ammogcoder/PyMySQL@e58fb6c · GitHub
[go: up one dir, main page]

Skip to content

Commit e58fb6c

Browse files
rjollosmethane
authored andcommitted
Don't apppend .None to version number (PyMySQL#576)
1 parent 73c22c7 commit e58fb6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymysql/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def Connect(*args, **kwargs):
9696

9797

9898
def get_client_info(): # for MySQLdb compatibility
99-
return '.'.join(map(str, VERSION))
99+
version = VERSION
100+
if VERSION[3] is None:
101+
version = VERSION[:3]
102+
return '.'.join(map(str, version))
100103

101104
connect = Connection = Connect
102105

0 commit comments

Comments
 (0)
0