def validate_literals(self):
        try:
            for c in self.literals:
                if not isinstance(c,StringTypes) or len(c) > 1:
                    self.log.error("Invalid literal %s. Must be a single character", repr(c))
                    self.error = 1
                    continue

        except __HOLE__:
            self.log.error("Invalid literals specification. literals must be a sequence of characters")
            self.error = 1
dataset/ETHPy150Open 0x-omicron/py-dcpu-c-compiler/external/ply/lex.py/LexerReflect.validate_literals