From 2358086f5b8184fe89bbb69334a5c80e9b20cfbf Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@jrother.eu> Date: Tue, 23 Feb 2021 23:32:33 +0100 Subject: [PATCH] Small change in Attribute.alias eval to prevent list access in init --- ldapalchemy/attribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapalchemy/attribute.py b/ldapalchemy/attribute.py index bd77631..409cb58 100644 --- a/ldapalchemy/attribute.py +++ b/ldapalchemy/attribute.py @@ -40,7 +40,7 @@ class AttributeList(MutableSequence): class Attribute: def __init__(self, name, aliases=None, multi=False, default=None): self.name = name - self.aliases = aliases or [] + self.aliases = aliases if aliases is not None else [] self.multi = multi self.default = default -- GitLab