8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b0e0ea commit 930b250Copy full SHA for 930b250
pymysql/__init__.py
@@ -47,11 +47,11 @@
47
)
48
49
50
-VERSION = (1, 0, 3, None)
51
-if VERSION[3] is not None:
+VERSION = (1, 0, 3)
+if len(VERSION) > 3:
52
VERSION_STRING = "%d.%d.%d_%s" % VERSION
53
else:
54
- VERSION_STRING = "%d.%d.%d" % VERSION[:3]
+ VERSION_STRING = "%d.%d.%d" % VERSION
55
threadsafety = 1
56
apilevel = "2.0"
57
paramstyle = "pyformat"
@@ -113,10 +113,7 @@ def Binary(x):
113
114
115
def get_client_info(): # for MySQLdb compatibility
116
- version = VERSION
117
- if VERSION[3] is None:
118
- version = VERSION[:3]
119
- return ".".join(map(str, version))
+ return VERSION_STRING
120
121
122
# we include a doctored version_info here for MySQLdb compatibility
0 commit comments