diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-28 20:47:39 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-28 20:47:39 +0200 |
commit | 2e677444701d1c0295fa126b056d26c7468f9862 (patch) | |
tree | 94ce222bb9f66a02a234aeca814ee44b78e98812 /pynslcd/common.py | |
parent | ad76395a82a71d1ff872c7c627bf6dada7116ee1 (diff) |
put standard library imports before application imports and remove some unused imports
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1438 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/common.py')
-rw-r--r-- | pynslcd/common.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pynslcd/common.py b/pynslcd/common.py index 04f0679..1b1f2cb 100644 --- a/pynslcd/common.py +++ b/pynslcd/common.py @@ -1,7 +1,7 @@ # common.py - functions that are used by different modules # -# Copyright (C) 2010 Arthur de Jong +# Copyright (C) 2010, 2011 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -18,13 +18,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA -import cfg -import constants - import re import ldap import ldap.dn +import cfg +import constants + + _validname_re = re.compile(r'^[a-z0-9._@$][a-z0-9._@$ \\~-]{0,98}[a-z0-9._@$~-]$', re.IGNORECASE) def isvalidname(name): |