Skip to content

Commit 131fb9f

Browse files
authored
Merge pull request #388 from haserycoder/master
import version from __init.py__
2 parents 66d8657 + 5b69889 commit 131fb9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiomysql/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ def __init__(self, host="localhost", user=None, password="",
177177
self.server_public_key = server_public_key
178178
self.salt = None
179179

180-
# TODO somehow import version from __init__.py
180+
from . import __version__
181181
self._connect_attrs = {
182182
'_client_name': 'aiomysql',
183183
'_pid': str(os.getpid()),
184-
'_client_version': '0.0.16',
184+
'_client_version': __version__,
185185
}
186186
if program_name:
187187
self._connect_attrs["program_name"] = program_name

0 commit comments

Comments
 (0)