Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions pymysql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
)


VERSION = (1, 0, 3, None)
if VERSION[3] is not None:
VERSION = (1, 0, 3)
if len(VERSION) > 3:
VERSION_STRING = "%d.%d.%d_%s" % VERSION
else:
VERSION_STRING = "%d.%d.%d" % VERSION[:3]
VERSION_STRING = "%d.%d.%d" % VERSION
threadsafety = 1
apilevel = "2.0"
paramstyle = "pyformat"
Expand Down Expand Up @@ -113,10 +113,7 @@ def Binary(x):


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


# we include a doctored version_info here for MySQLdb compatibility
Expand Down