remoting/tools/build/remoting_localize.py
def ReadMessagesFromFile(file_name):
  """
  Reads messages from a 'chrome_messages_json' file.

  The file must exist, otherwise you get the Python exception from open().
  """
  messages_file = io.open(file_name, encoding='utf-8-sig')
  messages = json.load(messages_file)
  messages_file.close()

  values = {}
  for key in messages.keys():
    values[key] = messages[key]['message'];
  return values

  Reads messages from a 'chrome_messages_json' file.

  The file must exist, otherwise you get the Python exception from open().
  
Reads messages from a 'chrome_messages_json' file.
The file must exist, otherwise you get the Python exception from open().
Reads messages from a ' chrome_messages_json ' file . The file must exist otherwise you get the Python exception from open () .
def ReadMessagesFromFile(file_name):
  messages_file = io.open(file_name, encoding='utf-8-sig')
  messages = json.load(messages_file)
  messages_file.close()
  values = {}
  for key in messages.keys():
    values[key] = messages[key]['message'];
  return values
def ReadMessagesFromFile ( file_name ) : messages_file = io . open ( file_name , encoding = 'utf-8-sig' ) messages = json . load ( messages_file ) messages_file . close ( ) values = { } for key in messages . keys ( ) : values [ key ] = messages [ key ] [ 'message' ] ; return values
Reads messages from a 'chrome_messages_json' file.
Reads messages from a ' chrome_messages_json ' file .
"""
  Reads messages from a 'chrome_messages_json' file.

  The file must exist, otherwise you get the Python exception from open().
  """
file_name