-#! /usr/local/bin/python -O
+#! /usr/bin/env python
"""
Convert Netscape Navigator's or Mozilla's bookmarks.html to a database
- Written by BroytMann. Copyright (C) 1997-2003 PhiloSoft Design
+ Written by Broytman. Copyright (C) 1997-2003 PhiloSoft Design
"""
def run():
optlist, args = getopt(sys.argv[1:], "is")
- show_pbar = not __debug__
+ show_pbar = True
report_stats = 1
for _opt, _arg in optlist:
if show_pbar:
try:
- size = os.stat(filename).st_size
+ size = os.path.getsize(filename)
except:
print filename, ": no such file"
sys.exit(1)