ud-mailgate: Remove a global declaration after a variable has already been assigned...
[mirror/userdir-ldap.git] / ud-mailgate
index 65955f6..8f9e092 100755 (executable)
@@ -775,7 +775,6 @@ try:
    Date = time.strftime("%a, %d %b %Y %H:%M:%S +0000",time.gmtime(time.time()));
    Reply = "To: %s\nReply-To: %s\nDate: %s\n" % (Sender,ReplyTo,Date);
 
-   global ValidHostNames
    Res = l.search_s(HostBaseDn, ldap.SCOPE_SUBTREE, '(objectClass=debianServer)', ['hostname'] )
    # Res is a list of tuples.
    # The tuples contain a dn (str) and a dictionary.