From: Florent Bruneau Date: Sun, 12 Oct 2008 10:20:46 +0000 (+0200) Subject: Working version. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=245bc582d56ba382722190bc1643e7334b9aeb34;p=apps%2Fpfixtools.git Working version. Signed-off-by: Florent Bruneau --- diff --git a/tools/postgrey2postlicyd b/tools/postgrey2postlicyd index 2c50b74..c9d369a 100755 --- a/tools/postgrey2postlicyd +++ b/tools/postgrey2postlicyd @@ -42,9 +42,9 @@ import os, re, sys def process(infile, outfile): # Write headers - file.write("# Do not edit, file autogenerated by %s\n" % sys.argv[0]) + outfile.write("# Do not edit, file autogenerated by %s\n" % sys.argv[0]) if len(sys.argv) > 1 and sys.argv[1] != '-': - file.write("# This file has been generated from %s\n" % sys.argv[1]) + outfile.write("# This file has been generated from %s\n" % sys.argv[1]) re_domain_name = re.compile(r'[a-z0-9.\-]+\.[a-z]+') re_ip_address = re.compile(r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')