diff --git a/Lib/ldap/schema/models.py b/Lib/ldap/schema/models.py index f7a7bd5..a4b4bab 100644 --- a/Lib/ldap/schema/models.py +++ b/Lib/ldap/schema/models.py @@ -3,7 +3,7 @@ See http://www.python-ldap.org/ for details. -\$Id: models.py,v 1.48 2015/06/06 09:21:38 stroeder Exp $ +\$Id: models.py,v 1.49 2017/02/18 15:32:01 stroeder Exp $ """ import UserDict,ldap.cidict @@ -54,7 +54,7 @@ class SchemaElement: def __init__(self,schema_element_str=None): if schema_element_str: - l = split_tokens(schema_element_str,self.token_defaults) + l = split_tokens(schema_element_str) self.set_id(l[1]) d = extract_tokens(l,self.token_defaults) self._set_attrs(l,d) diff --git a/Lib/ldap/schema/tokenizer.py b/Lib/ldap/schema/tokenizer.py index 469c326..b03b043 100644 --- a/Lib/ldap/schema/tokenizer.py +++ b/Lib/ldap/schema/tokenizer.py @@ -3,11 +3,11 @@ See http://www.python-ldap.org/ for details. -\$Id: tokenizer.py,v 1.13 2009/04/29 18:13:55 stroeder Exp $ +\$Id: tokenizer.py,v 1.14 2017/02/18 15:32:01 stroeder Exp $ """ -def split_tokens(s,keywordDict): +def split_tokens(s): """ Returns list of syntax elements with quotes and spaces stripped.