def verifyFile(self, path, contents=None, perms=None):
        f = open(path, "r")
        other = f.read()
        if contents is not None:
            if other != contents:
                self.fail(path % "contents incorrect for %s")
            assert(other == contents)
        if perms is not None:
            assert(os.stat(path)[stat.ST_MODE] & 0777 == perms)
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.verifyFile/swapped operands of `%`