Skip to content

Commit 88f1461

Browse files
committed
Revert adding of strictly_latin to source constraints builder
1 parent 4c73bce commit 88f1461

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

yoti_python_sdk/dynamic_sharing_service/policy/source_constraint_builder.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class SourceConstraintBuilder(object):
1515
def __init__(self):
1616
self.__soft_preference = False
1717
self.__anchors = []
18-
self.__is_strictly_latin = None
1918

2019
def with_soft_preference(self, value=True):
2120
"""
@@ -65,27 +64,14 @@ def with_driving_licence(self, subtype=""):
6564
"""
6665
return self.with_anchor_by_name(ANCHOR_VALUE_DRIVING_LICENCE, subtype)
6766

68-
def allow_strictly_latin(self):
69-
self.__is_strictly_latin = True
70-
return self
71-
72-
def disable_strictly_latin(self):
73-
self.__is_strictly_latin = False
74-
return self
75-
7667
def build(self):
7768
"""
7869
:returns: A dict describing the source constraint
7970
"""
80-
constrain = {
71+
return {
8172
"type": "SOURCE",
8273
"preferred_sources": {
8374
"soft_preference": self.__soft_preference,
8475
"anchors": self.__anchors,
8576
},
8677
}
87-
88-
if self.__is_strictly_latin is not None:
89-
constrain["is_strictly_latin"] = self.__is_strictly_latin
90-
91-
return constrain

0 commit comments

Comments
 (0)