Skip to content

Commit 0e28d7e

Browse files
committed
SDK-1098: Change Profile and Application profile to use old inheritance syntax when calling supers constructor
1 parent 04bf568 commit 0e28d7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

yoti_python_sdk/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
YOTI_API_URL = environ.get("YOTI_API_URL", DEFAULTS["YOTI_API_URL"])
2626
YOTI_API_PORT = environ.get("YOTI_API_PORT", DEFAULTS["YOTI_API_PORT"])
2727
YOTI_API_VERSION = environ.get("YOTI_API_VERSION", DEFAULTS["YOTI_API_VERSION"])
28-
YOTI_API_ENDPOINT = "{0}:{1}/api/{2}".format(
28+
YOTI_API_ENDPOINT = environ.get("YOTI_API_ENDPOINT", "{0}:{1}/api/{2}".format(
2929
YOTI_API_URL, YOTI_API_PORT, YOTI_API_VERSION
30-
)
30+
))
3131

3232
YOTI_API_VERIFY_SSL = environ.get("YOTI_API_VERIFY_SSL", DEFAULTS["YOTI_API_VERIFY_SSL"])
3333
if YOTI_API_VERIFY_SSL.lower() == "false":

yoti_python_sdk/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_attribute(self, attribute_name):
5757

5858
class Profile(BaseProfile):
5959
def __init__(self, profile_attributes):
60-
super(Profile, self).__init__(profile_attributes)
60+
BaseProfile.__init__(self, profile_attributes)
6161
self.ensure_postal_address()
6262

6363
@property
@@ -182,7 +182,7 @@ def ensure_postal_address(self):
182182
def ApplicationProfile(BaseProfile):
183183

184184
def __init__(self, profile_attributes):
185-
super(ApplicationProfile, self).__init__(profile_attributes)
185+
BaseProfile.__init__(self, profile_attributes)
186186

187187
@property
188188
def application_name(self):

0 commit comments

Comments
 (0)