1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-07 12:59:08 +03:00

Remove unnecessary imports.

This commit is contained in:
Jelmer Vernooij
2009-07-19 18:51:15 +02:00
parent 8557d14f65
commit 478446f96d
6 changed files with 9 additions and 14 deletions

View File

@ -502,7 +502,7 @@ TDBSAM_USER_PREFIX = "USER_"
class LdapSam(object):
"""Samba 3 LDAP passdb backend reader."""
def __init__(self, url):
self.ldap_url = ldap_url
self.ldap_url = url
class TdbSam(TdbDatabase):
@ -692,7 +692,7 @@ class ParamFile(object):
(k, v) = l.split("=", 1)
self._sections[section][self._sanitize_name(k)] = v
else:
raise Error("Unable to parser line %d: %r" % (i+1,l))
raise Exception("Unable to parser line %d: %r" % (i+1,l))
def get(self, param, section=None):
"""Return the value of a parameter.