Ë
    €ÏÔ  ã                   ó*   — d Z ddlZddlmZ ddiZd„ Zy)zBUtility functions to ensure the correct version of Python is used.é    N)Úversion_infoé   é   c                  óú   — t         j                  j                  } t         j                  j                  }| t        vrddj                  | ¬«      fS |t        |    k  rt        |    }ddj                  | ||¬«      fS y)a„  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   