def check_module_name(self, name, offset=<NUM_LIT:0>):
if name in ["<STR_LIT>"]:<EOL><INDENT>return<EOL><DEDENT>split_name = name.split()<EOL>if len(split_name) > <NUM_LIT:1> and split_name[<NUM_LIT:0>] in I3S_SINGLE_NAMES:<EOL><INDENT>self.current_token -= len(split_name) - <NUM_LIT:1> - offset<EOL>self.error("<STR_LIT>")<EOL><DEDENT>if len(split_name) > <NUM_LIT:2>:<EOL><INDENT>self.current_token -= len(split_name) - <NUM_LIT:2> - offset<EOL>self.error("<STR_LIT>")<EOL><DEDENT>
Checks a module name eg. some i3status modules cannot have an instance
name.