文件操作 - features.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/PIL/__pycache__/features.cpython-311.pyc
编辑文件内容
� �"�c�$ � � � d dl Z d dlZd dlZd dlZd dlZddlmZ dddddd �Zd � Zd� Z d� Z d dddd�Zd� Zd� Z d� Zdddddddddd� Zd� Zd � Zd!� Zd"� Zd#� Zd$� Zd'd&�ZdS )(� N� )�Image)�PIL._imaging�PILLOW_VERSION)zPIL._tkinter_finder� tk_version)�PIL._imagingft�freetype2_version)zPIL._imagingcms�littlecms_version)� PIL._webp�webpdecoder_version)�pil�tkinter� freetype2� littlecms2�webpc � � | t vrd| � �}t |� � �t | \ }} t |� � dS # t $ r Y dS w xY w)z� Checks if a module is available. :param feature: The module to check for. :returns: ``True`` if available, ``False`` otherwise. :raises ValueError: If the module is not defined in this version of Pillow. zUnknown module TF)�modules� ValueError� __import__�ImportError)�feature�msg�module�vers �./usr/lib/python3/dist-packages/PIL/features.py�check_moduler sp � � �w���)��)�)����o�o���'�"�K�F�C���6�����t��� � � ��u�u����s �A � A� Ac � � t | � � sdS t | \ }}|�dS t t ||g�� � |� � S )z� :param feature: The module to check for. :returns: The loaded version number as a string, or ``None`` if unknown or not available. :raises ValueError: If the module is not defined in this version of Pillow. N��fromlist)r r �getattrr )r r r s r �version_moduler! ( sP � � �� � � ��t��'�"�K�F�C� �{��t��:�f��u�5�5�5�s�;�;�;� c �$ � d� t D � � S )z4 :returns: A list of all supported modules. c �0 � g | ]}t |� � �|��S � )r ��.0�fs r � <listcomp>z)get_supported_modules.<locals>.<listcomp>>