X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk2db.py;h=1e652828692665bfeb64ae242bdb0ca0f9774dbd;hb=f97d97b040fc8dcab4b43af16e966e0ff4c877a9;hp=e2436f6a4ec06130b46cbae357ebed86d185c4a8;hpb=fb5c3b2b91aeeb615d6d6d890491af3fdff69556;p=bookmarks_db.git diff --git a/bkmk2db.py b/bkmk2db.py index e2436f6..1e65282 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -2,7 +2,7 @@ """ Convert Netscape Navigator's or Mozilla's bookmarks.html to a database - Written by BroytMann, Jun 1997 - Aug 2002. Copyright (C) 1997-2002 PhiloSoft Design + Written by BroytMann. Copyright (C) 1997-2003 PhiloSoft Design """ @@ -55,7 +55,7 @@ def run(): if show_pbar: try: - size = os.stat(filename).st_size + size = os.path.getsize(filename) except: print filename, ": no such file" sys.exit(1) @@ -84,7 +84,7 @@ def run(): lng = lng + len(line) + dos_add pbar.display(lng) - line = line.strip() + #line = line.strip() line_no = line_no + 1 try: