def _check_writable(self):
    if (self._flag == "r"):
      raise IOError("Read-only database: %s" % self._file_name)
dataset/ETHPy150Open hynnet/openwrt-mt7620/staging_dir/host/lib/scons-2.1.0/SCons/dblite.py/dblite._check_writable/original