def _commit_puts_stale_ok(self):
        if self.db_file == ':memory:' or not os.path.exists(self.pending_file):
            return
        try:
            with lock_parent_directory(self.pending_file,
                                       self.pending_timeout):
                self._commit_puts()
        except (LockTimeout, sqlite3.OperationalError):
            if not self.stale_reads_ok:
                raise
$PYTHONWARNINGS was added in python2.7
dataset/ETHPy150Open openstack/swift/swift/common/db.py/DatabaseBroker._commit_puts_stale_ok--crossover with--dataset/ETHPy150Open pypa/pip/tests/functional/test_warning.py/test_environ