Skip to content

Commit

Permalink
Merge pull request #388 from haserycoder/master
Browse files Browse the repository at this point in the history
import version from __init.py__
  • Loading branch information
asvetlov committed Feb 22, 2019
2 parents 66d8657 + 5b69889 commit 131fb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiomysql/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ def __init__(self, host="localhost", user=None, password="",
self.server_public_key = server_public_key
self.salt = None

# TODO somehow import version from __init__.py
from . import __version__
self._connect_attrs = {
'_client_name': 'aiomysql',
'_pid': str(os.getpid()),
'_client_version': '0.0.16',
'_client_version': __version__,
}
if program_name:
self._connect_attrs["program_name"] = program_name
Expand Down

0 comments on commit 131fb9f

Please sign in to comment.