ó
    €ÏÔ  ã                   ó*   • S r SSKrSSKJr  SS0rS rg)zBUtility functions to ensure the correct version of Python is used.é    N)Úversion_infoé   é   c                  óô   • [         R                  R                  n [         R                  R                  nU [        ;  a  SSR                  U S94$ U[        U    :  a  [        U    nSSR                  U UUS94$ g)aj  Return an exception if running in an unsupported version of Python.

This function compares the running version of cPython and against the list
of supported python version. If the running version is less than any of the
supported versions, return a Tuple of (False, Str(error message)) for the
caller to handle. Minor versions of Python greater than those listed in the
supported versions are allowed.

Args:
  None
Returns:
  Tuple(Boolean, String)

  A Tuple containing a Boolean and a String. The boolean represents if the
  version is supported, and the String will either be empty, or contain an
  error message.
Fz3Gsutil does not support running under Python{major})ÚmajorziFor Python{major}, gsutil requires Python{major}.{lowest_minor}+, but you are using Python{major}.{minor}©r   ÚminorÚlowest_minor)TÚ )Úsysr   r   r	   ÚMIN_SUPPORTED_PYTHON_VERSIONÚformatr   s      Ú,platform/gsutil/gslib/utils/version_check.pyÚcheck_python_version_supportr      sœ   € ô& ×
Ñ
×
 Ñ
 €%Ü
×
Ñ
×
 Ñ
 €%à
Ô.Ó.ØÐH×OÑOØð Pð ð ð à
Ô)¨%Ñ0Ó0Ü/°Ñ6€Làð	.ß.4©f¸5Ø;@ØBNð /5ð /PðQð Qð 
ó    )Ú__doc__r   r   r   r   © r   r   Ú<module>r      s"   ðñ Iã 
Ý ð
 !" 1˜vÐ ó!r   