@staticmethod<EOL><INDENT>def parse(s):<DEDENT>
try:<EOL><INDENT>m = _regex.match(s)<EOL>t = Tag(int(m.group('<STR_LIT>')),<EOL>int(m.group('<STR_LIT>')),<EOL>int(m.group('<STR_LIT>')))<EOL>return tif m.group('<STR_LIT:label>') is Noneelse t.with_revision(m.group('<STR_LIT:label>'), int(m.group('<STR_LIT>')))<EOL><DEDENT>except AttributeError:<EOL><INDENT>return None<EOL><DEDENT>
Parses a string into a Tag