X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=sort_db.py;h=9a478bf75c394513411e762c2ccc2cdb9d4a30cf;hb=1bc3f08921176ba39efd7f698cea9b3d4ae49765;hp=f3a5ff1ce203bfed6fe159175777aba21c6556d2;hpb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;p=bookmarks_db.git diff --git a/sort_db.py b/sort_db.py index f3a5ff1..9a478bf 100755 --- a/sort_db.py +++ b/sort_db.py @@ -9,16 +9,17 @@ -r - reverse the sort order This file is a part of Bookmarks database and Internet robot. + """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" __license__ = "GNU GPL" import sys -class SortBy: +class SortBy(object): def __init__(self, sort_by): self.sort_by = sort_by @@ -80,7 +81,7 @@ def run(): root_folder = storage.load() if report_stats: - print "Ok" + print("Ok") sys.stdout.write("Sorting (by %s): " % sort_by) sys.stdout.flush() @@ -101,7 +102,7 @@ def run(): output_filename = output_filename + "-reverse" if report_stats: - print "done" + print("done") sys.stdout.write("Writing %s: " % output_filename) sys.stdout.flush() @@ -112,7 +113,7 @@ def run(): outfile.close() if report_stats: - print "Ok" + print("Ok") if __name__ == '__main__':