3
X'íc ã @ sø d Z ddlZddlZddlmZmZ ddlZddlZddlZddl Z
ddlmZ e
Zdd ZejdejZdd Zejd
Zddd
Zdd ZG dd dejZdddZejZG dd deZe
jZejZejZej Z ej!Z!ej"Z"ej#Z#dd Z$dS )z®
babel.util
~~~~~~~~~~
Various utility classes and functions.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
é N)Ú timedeltaÚtzinfo)Ú localtimec c s4 t }x(t| D ]}||kr|V |j| qW dS )a Yield all items in an iterable collection that are distinct.
Unlike when using sets for a similar effect, the original ordering of the
items in the collection is preserved by this function.
>>> print(list(distinct([1, 2, 1, 3, 4, 4])))
[1, 2, 3, 4]
>>> print(list(distinct('foobar')))
['f', 'o', 'b', 'a', 'r']
:param iterable: the iterable collection providing the data
N)ÚsetÚiterÚadd)ÚiterableÚseenÚitem© r ú+/tmp/pip-build-gk9425m9/babel/babel/util.pyÚdistinct s