def format(self, conf=None):
if self.pos is None:<EOL><INDENT>rv = str(self.edit.format(conf))<EOL><DEDENT>else:<EOL><INDENT>rv = "<STR_LIT>".format(pos=self.pos.format(conf), edit=self.edit.format(conf))<EOL><DEDENT>if self.uncertain:<EOL><INDENT>if self.edit in ["<STR_LIT:0>", "<STR_LIT>"]:<EOL><INDENT>rv = rv + "<STR_LIT:?>"<EOL><DEDENT>else:<EOL><INDENT>rv = "<STR_LIT:(>" + rv + "<STR_LIT:)>"<EOL><DEDENT><DEDENT>return rv<EOL>
Formatting the string of PosEdit