def make_md5sums(filelist=None, progress_cb=None, mode=Binary):
    if filelist is None:
        filelist = filter(os.path.isfile, os.listdir(os.getcwd()))
        try:
            filelist.remove("md5sums.txt")
        except ValueError:
            pass
    sumfile = SumFile("md5sums.txt", "w")
    try:
        for fname in filelist:
            try:
                mdhash = md5sum(fname, mode)
            except IOError:
                print >>sys.stderr, (fname, ) % "No file named '%s' found."
                continue
            if progress_cb:
                progress_cb(fname, 1)
            sumfile.write_record(mdhash, mode, fname)
    finally:
        sumfile.close()
dataset/ETHPy150Open kdart/pycopia/core/pycopia/md5lib.py/make_md5sums/swapped operands of `%`