code: def __parse_scanned_version_info(self):
          
          string = self.sys_version_info_formatted
          try:
              major, minor, micro, release_level, serial = string.split(",")
              if (release_level in ("alfa", "beta", "candidate", "final") and
                      (release_level != "final" or serial == "0") and
                      major.isdigit() and  # --- --- --- --- --- --- --- --- ---
                      minor.isdigit() and  # Explicit isdigit() checks to detect
                      micro.isdigit() and  # leading/trailing whitespace.
                      serial.isdigit()):   # --- --- --- --- --- --- --- --- ---
                  self.sys_version_info = (int(major), int(minor), int(micro),
                      release_level, int(serial))
                  self.__construct_python_version()
                  return
          except (KeyboardInterrupt, SystemExit):
              raise
          except Exception:
              pass
          raise BadEnvironment("Unsupported Python version (%s)" % (string,))
docs: Parses the environment's formatted version info string.