def LoadAutomaticVariablesFromDict(variables, the_dict):
  # Any keys with plain string values in the_dict become automatic variables.
  # The variable name is the key name with a "_" character prepended.
  for key, value in the_dict.iteritems():
    if type(value) in (str, int, list):
      variables['_' + key] = value
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/input.py/LoadAutomaticVariablesFromDict/original