# ** http://www.hungry.com/~fn/dnscache-log.pl.txt
#
-import sys, re
+import re
from struct import pack
from time import strftime, gmtime
from subprocess import Popen, PIPE
# Parse zero or more positional arguments into a list of
# "logfiles". If none are given, read from stdin instead.
+ from sys import stdin
parser.add_argument("logfiles",
metavar="LOGFILE",
type=FileType("r"),
nargs="*",
- default=[sys.stdin],
+ default=[stdin],
help="djbdns logfile to process (default: stdin)")
args = parser.parse_args()