def set_version(self):
version = _ensure_decoded(<EOL>getattr(self.group._v_attrs, '<STR_LIT>', None))<EOL>try:<EOL><INDENT>self.version = tuple(int(x) for x in version.split('<STR_LIT:.>'))<EOL>if len(self.version) == <NUM_LIT:2>:<EOL><INDENT>self.version = self.version + (<NUM_LIT:0>,)<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.version = (<NUM_LIT:0>, <NUM_LIT:0>, <NUM_LIT:0>)<EOL><DEDENT>
compute and set our version