+
    Zi                    Z    ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt ] ! R R]4      4       t	R# )    )annotations)	UFOReader	UFOWriter)	DataStore)serdec                     a  ] tR t^	tRt]R R l4       t]R R l4       t]R R l4       t]R R	 l4       t	R
 V 3R llt
RtV ;t# )ImageSetaH  Represents a mapping of POSIX filename strings to arbitrary image data.

Note:
    Images cannot be put into subdirectories of the images folder.

Behavior:
    ImageSet behaves like a dictionary of type ``Dict[str, bytes]``.

    >>> from ufoLib2 import Font
    >>> font = Font()
    >>> # Note: invalid PNG data for demonstration. Use the actual PNG bytes.
    >>> font.images["test.png"] = b"123"
    >>> font.images["test2.png"] = b"456"
    >>> font.images["test.png"]
    b'123'
    >>> del font.images["test.png"]
    >>> list(font.images.items())
    [('test2.png', b'456')]
c                    V ^8  d   QhRRRR/# )   readerr   returnz	list[str] )formats   ":/usr/lib/python3/dist-packages/ufoLib2/objects/imageSet.py__annotate__ImageSet.__annotate__    s     1 1i 1I 1    c                "    V P                  4       # )zAReturns a list of POSIX filename strings in the image data store.)getImageDirectoryListing)r   s   &r   list_contentsImageSet.list_contents   s     ..00r   c               $    V ^8  d   QhRRRRRR/# )r   r   r   filenamestrr   bytesr   )r   s   "r   r   r   %   s!     * *) *s *u *r   c                $    V P                  V4      # )z4Returns the image data at filename within the store.)	readImage)r   r   s   &&r   	read_dataImageSet.read_data$   s     ))r   c               (    V ^8  d   QhRRRRRRRR/# )	r   writerr   r   r   datar   r   Noner   )r   s   "r   r   r   *   s(     * *9 * *5 *T *r   c                (    V P                  W4       R# )z3Writes the image data to filename within the store.N)
writeImage)r!   r   r"   s   &&&r   
write_dataImageSet.write_data)   s     	()r   c               $    V ^8  d   QhRRRRRR/# )r   r!   r   r   r   r   r#   r   )r   s   "r   r   r   /   s!     % %I % % %r   c                (    V P                  V4       R# )z3Remove the image data at filename within the store.N)removeImage)r!   r   s   &&r   remove_dataImageSet.remove_data.   s     	8$r   c               $    V ^8  d   QhRRRRRR/# )r   fileNamer   r"   r   r   r#   r   )r   s   "r   r   r   3   s!     , ,C ,u , ,r   c                	J   < R V9   d   \        R4      h\        SV `	  W4       R# )/z>Images cannot be put into subdirectories of the images folder.N)
ValueErrorsuper__setitem__)selfr.   r"   	__class__s   &&&r   r3   ImageSet.__setitem__3   s)    (?P  	H+r   r   )__name__
__module____qualname____firstlineno____doc__staticmethodr   r   r&   r+   r3   __static_attributes____classcell__)r5   s   @r   r	   r	   	   sb    ( 1 1 * * * * % %, ,r   r	   N)

__future__r   fontTools.ufoLibr   r   ufoLib2.objects.miscr   ufoLib2.serder   r	   r   r   r   <module>rC      s,    " 1 *  .,y ., .,r   