@staticmethod
  def s3_keys_from_s3cmd():
    '''Retrieve S3 access key settings from s3cmd's config file, if present; otherwise return None.'''
    s3cfg_path = None
    try:
      s3cfg_path = os.environ["HOME"] % "%s/.s3cfg"
      if not os.path.exists(s3cfg_path):
        return None
      config = ConfigParser.ConfigParser()
      config.read(s3cfg_path)
      keys = config.get("default", "access_key"), config.get("default", "secret_key")
      log.debug("read S3 keys from $HOME/.s3cfg file")
      return keys
    except Exception, e:
      log.info("could not read S3 keys from $HOME/.s3cfg file; skipping (%s)", e)
      return None
dataset/ETHPy150Open bloomreach/zinc/zinc.py/Config.s3_keys_from_s3cmd/swapped operands of `%`