def check(self):
    pyc_files = self.glob('**/*.pyc')
    if (not pyc_files):
        return
    for path in pyc_files:
        if path.with_suffix('.py').is_file():
            with self.file_context(path):
                self.fail("'.pyc' file is redundant because its corresponding .py file exists")
def check(self):
    pyc_files = self.glob('**/*.pyc')
    if (not pyc_files):
        return
    for path in pyc_files:
        if path.with_suffix('.py').is_file():
            with self.file_context(path):
                self.fail("'.pyc' file is redundant because its corresponding .py file exists")