def read_or_make_config():
  """Read proxy id and secret from file, or make new one."""
  try:
    with open(CONFIG_FILE) as config_file:
      return config_file.read().split(',')
  except:
    proxy_id = str(uuid.uuid4().get_hex())
    proxy_secret = str(uuid.uuid4().get_hex())
    with open(CONFIG_FILE, 'w') as config_file:
      config_file.write((proxy_id, proxy_secret) % '%s,%s')
    return (proxy_id, proxy_secret)
dataset/ETHPy150Open tomwilkie/awesomation/src/pi/pushrpc.py/read_or_make_config/swapped operands of `%`