(self, version)
return {
            'major': str(int(major)),
            'minor': str(int(minor)),
            'mod': str(int(modification)),
            'fix': str(int(fix)),
        }
Raw version string is in format MM.mm.uuuu.
        Parse version to MM.mm.xx.yy
        where xx is the modification number and yy is the fix pack number
        https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.wn.doc/doc/c0070229.html#c0070229
Raw version string is in format MM.mm.uuuu.
        Parse version to MM.mm.xx.yy
        where xx is the modification number and yy is the fix pack number
        https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.wn.doc/doc/c0070229.html#c0070229
Raw version string is in format MM . mm . uuuu . Parse version to MM . mm . xx . yy where xx is the modification number and yy is the fix pack number https : // www . ibm . com / support / knowledgecenter / SSEPGG_11 . 1 . 0 / com . ibm . db2 . luw . wn . doc / doc / c0070229 . html#c0070229
def parse_version(self, version):
        """
        Raw version string is in format MM.mm.uuuu.
        Parse version to MM.mm.xx.yy
        where xx is the modification number and yy is the fix pack number
        https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.wn.doc/doc/c0070229.html#c0070229
        """
        major, minor, update = version.split('.')
        modification, fix = update[:2], update[2:]

        # remove leading zeros from raw version parts
        return {
            'major': str(int(major)),
            'minor': str(int(minor)),
            'mod': str(int(modification)),
            'fix': str(int(fix)),
        }
def parse_version ( self , version ) : major , minor , update = version . split ( '.' ) modification , fix = update [ : 2 ] , update [ 2 : ] # remove leading zeros from raw version parts return { 'major' : str ( int ( major ) ) , 'minor' : str ( int ( minor ) ) , 'mod' : str ( int ( modification ) ) , 'fix' : str ( int ( fix ) ) , }