def parse_route_name_and_version(route_repr):
if '<STR_LIT::>' in route_repr:<EOL><INDENT>route_name, version = route_repr.split('<STR_LIT::>', <NUM_LIT:1>)<EOL>try:<EOL><INDENT>version = int(version)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(route_repr))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>route_name = route_repr<EOL>version = <NUM_LIT:1><EOL><DEDENT>return route_name, version<EOL>
Parse a route representation string and return the route name and version number.

:param route_repr: Route representation string.

:return: A tuple containing route name and version number.