def _extract_item(self, item):
ver = <NUM_LIT:0><EOL>if isinstance(item, tuple):<EOL><INDENT>ver_sent = True<EOL>nitem = len(item)<EOL>if nitem == <NUM_LIT:1>:<EOL><INDENT>ext = item[<NUM_LIT:0>]<EOL><DEDENT>elif nitem == <NUM_LIT:2>:<EOL><INDENT>ext, ver = item<EOL><DEDENT><DEDENT>else:<EOL><INDENT>ver_sent = False<EOL>ext = item<EOL><DEDENT>return ext, ver, ver_sent<EOL>
utility function to extract an "item", meaning
a extension number,name plus version.