comparison mercurial-common/src/python/load-commands-command.py @ 919:16ad8d51b001

fix non-ascii characters support in commandline arguments
author eugene.petrenko@jetbrains.com
date Mon, 19 Jan 2015 18:30:08 +0100
parents ef19cc8d5bc1
children c5dc2c802e4b
comparison
equal deleted inserted replaced
918:0037067465aa 919:16ad8d51b001
34 for _line in f: 34 for _line in f:
35 line = _line.strip() 35 line = _line.strip()
36 if len(line) <= 0: 36 if len(line) <= 0:
37 continue 37 continue
38 38
39 file_commands.append(str(line)) 39 file_commands.append(line.encode("utf-8"))
40 return file_commands 40 return file_commands
41 41
42 42
43 def load_commands_command(ui, params_file, *params): 43 def load_commands_command(ui, params_file, *params):
44 command_arguments = loadArguments(ui, params_file) 44 command_arguments = loadArguments(ui, params_file)