Skip to content

Commit

Permalink
Don't apppend .None to version number (PyMySQL#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjollos authored and methane committed May 29, 2017
1 parent 73c22c7 commit e58fb6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pymysql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def Connect(*args, **kwargs):


def get_client_info(): # for MySQLdb compatibility
return '.'.join(map(str, VERSION))
version = VERSION
if VERSION[3] is None:
version = VERSION[:3]
return '.'.join(map(str, version))

connect = Connection = Connect

Expand Down

0 comments on commit e58fb6c

Please sign in to comment.