ó ´2Kc@sCddlZddlZddlZd„Zd„Zd„ZdS(iÿÿÿÿNcCsAtjdkrdStjdkr&dStjdkr9dSdSdS(sX Return a standardized, lower case version of the "type" of OS family. tposixtunixtmactnttwindowstunknownN(tostname(((s7/usr/lib/python2.7/vendor-packages/pkg/portable/util.pytget_canonical_os_typescCs~tjƒjƒ}|d kr"|S|dkr@dtjƒdStjƒjƒ}|dksv|d ksv|dkrzdSd S( sš Return a standardized, lower case version of the name of the OS. This is useful to avoid the ambiguity of OS marketing names. tsunostdarwinRtaixtlinuxslinux_%sit microsofttvistaR(ssunossdarwinswindowssaix(tplatformtsystemtlowertdisttrelease(tpsltprl((s7/usr/lib/python2.7/vendor-packages/pkg/portable/util.pytget_canonical_os_name+s  $cCswtƒ}d}|dkr.tjƒd}n'|dkrItjƒ}n tjƒ}djtj dd|ƒj ƒƒS(s¯ Return a standardized, sanitized version string, consisting of a dot-separated list of integers representing the release version of this OS. RiRt.s[^0-9]t N( RtNoneRtunameRtversionRtjointretsubtsplit(tostypeR((s7/usr/lib/python2.7/vendor-packages/pkg/portable/util.pytget_os_releaseAs    (RRRRRR!(((s7/usr/lib/python2.7/vendor-packages/pkg/portable/util.pyts