Skip to content

Commit 01bb3f6

Browse files
committed
SDK-765: Move import to inside function, for compatibility with Python 2.7 & 3.4
1 parent ad075d3 commit 01bb3f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yoti_python_sdk/multivalue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# -*- coding: utf-8 -*-
2-
from yoti_python_sdk import attribute_parser
32
from yoti_python_sdk.protobuf import protobuf
43

54

65
def parse(multi_value_bytes):
6+
from yoti_python_sdk import attribute_parser # needed here (and not above) for Python 2.7 & 3.4 dependency handling
7+
78
proto = protobuf.Protobuf()
89
multi_value_list = []
910
parsed_multi_value = proto.multi_value(multi_value_bytes)

0 commit comments

Comments
 (0)