Skip to content

Commit bb24267

Browse files
committed
Fix type comparison strictness fail in python3
In python3 types are more strictly compared sometimes.
1 parent dcadf9e commit bb24267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def validate_value_type(value, spec):
305305
{'base': 'string'}
306306
"""
307307
if "maxlen" in spec:
308-
return len(value) <= spec["maxlen"]
308+
return len(value) <= int(spec["maxlen"])
309309

310310
if spec["base"] == "string":
311311
if "enumeration" in spec:

0 commit comments

Comments
 (0)