We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62db5be commit af0268eCopy full SHA for af0268e
launchkey/__init__.py
@@ -1,10 +1,4 @@
1
"""LaunchKey Service SDK module"""
2
-from six import add_move, MovedAttribute
3
-
4
-add_move(MovedAttribute('encodebytes',
5
- 'base64', 'base64',
6
- 'encodestring', 'encodebytes'))
7
8
SDK_VERSION = '3.3.0'
9
LAUNCHKEY_PRODUCTION = "https://api.launchkey.com"
10
VALID_JWT_ISSUER_LIST = ["svc", "dir", "org"]
launchkey/clients/organization.py
@@ -3,7 +3,10 @@
# pylint: disable=too-many-public-methods,invalid-name,deprecated-method
# pylint: disable=too-many-arguments
-from base64 import encodestring
+try:
+ from base64 import encodebytes as encodestring
+except ImportError: # pragma: no cover
+ from base64 import encodestring
from .base import ServiceManagingBaseClient, api_call
11
from ..utils.shared import iso_format
12
from ..entities.shared import PublicKey
0 commit comments