#NEWLINE# def version_parts( self , best = False ) : #NEWLINE# #INDENT# '\n        Return the version of the Linux distribution, as a tuple of version\n        numbers.\n\n        For details, see :func:`distro.version_parts`.\n        ' #NEWLINE# version_str = self . version ( best = best ) #NEWLINE# if version_str : #NEWLINE# #INDENT# g = re . compile ( '(\\d+)\\.?(\\d+)?\\.?(\\d+)?' ) #NEWLINE# m = g . match ( version_str ) #NEWLINE# if m : #NEWLINE# #INDENT# ( major , minor , build_number ) = m . groups ( ) #NEWLINE# return ( major , ( minor or '' ) , ( build_number or '' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '' , '' , '' )