diff options
| author | Dolph Mathews <dolph.mathews@rackspace.com> | 2011-07-20 10:33:30 -0500 |
|---|---|---|
| committer | Dolph Mathews <dolph.mathews@rackspace.com> | 2011-07-20 10:33:30 -0500 |
| commit | 9737e80def17b25838d8d88be1fbb97cabfbe805 (patch) | |
| tree | 0ba9703e099fab58cf2cba221aa687999d789732 | |
| parent | 49cfcd5ca7022743abbc501a8640aac5c94cf6ae (diff) | |
| download | keystone-9737e80def17b25838d8d88be1fbb97cabfbe805.tar.gz keystone-9737e80def17b25838d8d88be1fbb97cabfbe805.tar.xz keystone-9737e80def17b25838d8d88be1fbb97cabfbe805.zip | |
Added missing import
| -rw-r--r-- | keystone/backends/ldap/api/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keystone/backends/ldap/api/base.py b/keystone/backends/ldap/api/base.py index 0018b436..2ed85579 100644 --- a/keystone/backends/ldap/api/base.py +++ b/keystone/backends/ldap/api/base.py @@ -1,5 +1,5 @@ import ldap - +from itertools import izip, count def _get_redirect(cls, method): def inner(self, *args): @@ -117,11 +117,11 @@ class BaseLdapAPI(object): if i <= limit: prv = None else: - prv = key(lst[i-limit]) + prv = key(lst[i - limit]) if i + limit >= len(lst) - 1: nxt = None else: - nxt = key(lst[i+limit]) + nxt = key(lst[i + limit]) return (prv, nxt) def update(self, id, values, old_obj=None): |
