Jonathan Ellis <[EMAIL PROTECTED]> writes: > Util.py: > def append_to_file(str, fullpathname): > """Append a string to a text file if it isn't already in there.""" > if os.path.exists(fullpathname): > for line in fileinput.input(fullpathname): > line = string.lower(string.strip(line)) > # Comment or blank line? > if line == '' or line[0] in '#': > continue > else: > # --> here > if string.lower(string.strip(str)) == line: > fileinput.close() > return 0 > file = open(fullpathname, 'a+') > file.write(string.strip(str) + '\n') > file.close()
Yup. I was buried in the matching code and not looking here. Good catch. I'll include the fix as part of your patch. Thanks. Tim _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
