def load(self, line):
words = line.split()<EOL>try:<EOL><INDENT>float(words[<NUM_LIT:0>])<EOL>self.__name = "<STR_LIT>"<EOL>self.__value = "<STR_LIT:U+0020>".join(words)<EOL><DEDENT>except ValueError:<EOL><INDENT>self.__name = words[<NUM_LIT:0>].upper()<EOL>if len(words) > <NUM_LIT:2> and words[<NUM_LIT:1>][<NUM_LIT:0>]=="<STR_LIT:[>" and words[<NUM_LIT:1>][-<NUM_LIT:1>]=="<STR_LIT:]>":<EOL><INDENT>self.unit = words[<NUM_LIT:1>][<NUM_LIT:1>:-<NUM_LIT:1>]<EOL>self.__value = "<STR_LIT:U+0020>".join(words[<NUM_LIT:2>:])<EOL><DEDENT>else:<EOL><INDENT>self.__value = "<STR_LIT:U+0020>".join(words[<NUM_LIT:1>:])<EOL><DEDENT><DEDENT>
Load this keyword from a file-like object