pep8 fixes

This commit is contained in:
Vishvananda Ishaya
2011-02-16 12:03:59 -08:00
parent ee3d2e34cc
commit 6ec9276416

View File

@@ -73,6 +73,7 @@ LOG = logging.getLogger("nova.ldapdriver")
# creating this now because I'm expecting an auth refactor
# in which we may want to change the interface a bit more.
def _clean(attr):
"""Clean attr for insertion into ldap"""
if attr is None:
@@ -81,6 +82,7 @@ def _clean(attr):
return str(attr)
return attr
def sanitize(fn):
"""Decorator to sanitize all args"""
def _wrapped(self, *args, **kwargs):