if File == "":
break;
- # Attempt to determine the UID
+ # Attempt to determine the UID
try:
User = pwd.getpwuid(os.stat(File)[stat.ST_UID])[0];
except KeyError:
break;
if Line2[0] == '#' or Line2[0] == '\n':
continue;
- if Line == None:
+ if Line is None:
Line = Line2;
else:
break;
# If we got more than one line or no lines at all it is invalid
- if Line == None or Line == "" or Line2 != "":
+ if Line is None or Line == "" or Line2 != "":
print "Invalid1", File;
continue;
# Split off the address part
Address = AddressSplit.match(Line);
- if Address == None:
+ if Address is None:
# Or parse a qmail adddress..
Address = Line;
if Address[0] == '&':