def save(self):
    """Overwrites the filestore and saves all tokens"""
    try:
      with open(self.filename, "w") as f:
        yaml.dump(self.tokens, f, default_flow_style=False)

    except __HOLE__:
      raise IOError("Access token file %s couldn't be opened." % self.filename)
dataset/ETHPy150Open domrout/python-twitter-wrapper/twitterwrapper/access_tokens.py/AccessTokenStore.save