From 2e677444701d1c0295fa126b056d26c7468f9862 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 28 Apr 2011 18:47:39 +0000 Subject: 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 --- pynslcd/common.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pynslcd/common.py') 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): -- cgit v1.2.3