Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make auth package to _auth module
  • Loading branch information
methane committed Jun 22, 2018
commit 023d592a9844b78fcd8a2a0138c1538def5b5c24
8 changes: 4 additions & 4 deletions pymysql/auth/sha256_password_plugin.py → pymysql/_auth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
Implements sha256_password and caching_sha2_password auth methods.
Implements auth methods
"""
from .._compat import text_type
from ..constants import CLIENT
from ..err import OperationalError
from ._compat import text_type
from .constants import CLIENT
from .err import OperationalError

from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization, hashes
Expand Down
Empty file removed pymysql/auth/__init__.py
Empty file.
3 changes: 2 additions & 1 deletion pymysql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import traceback
import warnings

from .auth import sha256_password_plugin as _auth
from . import _auth

from .charset import charset_by_name, charset_by_id
from .constants import CLIENT, COMMAND, CR, FIELD_TYPE, SERVER_STATUS
from . import converters
Expand Down
2 changes: 1 addition & 1 deletion sha256_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pymysql

pymysql.connections.DEBUG = True
pymysql.auth.sha256_password_plugin.DEBUG = True
pymysql._auth.DEBUG = True

host="127.0.0.1"
port=3306
Expand Down