def wait_for_code_change(extra_files=None, interval=1):
    mtimes = {}
    while 1:
        for filename in chain(iter_module_files(), extra_files or ()):
            try:
                mtime = os.stat(filename).st_mtime
            except OSError: # pragma: no cover
                # this is cannot be guaranteed covered by coverage because of interpreter optimization
                # see https://bitbucket.org/ned/coveragepy/issues/198/continue-marked-as-not-covered#comment-4052311

                continue

            old_time = mtimes.get(filename)
            if old_time is None:
                mtimes[filename] = mtime
            elif old_time > mtime:
                logger.info('Changes in file "%s"', filename)
                return
        time.sleep(interval)
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/cli/app.py/wait_for_code_change/swapped operands of `>`