def _joinclass(codtuple):
if not isinstance(codtuple, tuple):<EOL><INDENT>raise TypeError("<STR_LIT>" % type(codtuple))<EOL><DEDENT>if len(codtuple) != <NUM_LIT:3>:<EOL><INDENT>raise ValueError("<STR_LIT>" % len(codtuple))<EOL><DEDENT>serviceclass = codtuple[<NUM_LIT:0>] << <NUM_LIT:2> << <NUM_LIT:11><EOL>majorclass = codtuple[<NUM_LIT:1>] << <NUM_LIT:2> << <NUM_LIT:6><EOL>minorclass = codtuple[<NUM_LIT:2>] << <NUM_LIT:2><EOL>return (serviceclass | majorclass | minorclass)<EOL>
The opposite of splitclass(). Joins a (service, major, minor) class-of-
device tuple into a whole class of device value.