⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.9
/
site-packages
/
babel
/
__pycache__
/
View File Name :
util.cpython-39.pyc
a ` @ s d Z ddlZddlZddlmZmZ ddlZddlZddlZddl m Z mZ ddlZ ddlmZ e Zdd ZedejZd d ZedZdd dZdd ZG dd dejZdddZejZG dd deZe jZ ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%ej&Z&dS )z babel.util ~~~~~~~~~~ Various utility classes and functions. :copyright: (c) 2013-2021 by the Babel Team. :license: BSD, see LICENSE for more details. N) timedeltatzinfo)izipimap) localtimec c s0 t }t| D ]}||vr|V || qdS )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)setiteradd)iterableseenitem r ./usr/lib/python3.9/site-packages/babel/util.pydistinct s r s( [ \t\f]* \# .* coding[=:][ \t]*([-\w.]+)c C s" | }| d z| }|tj}|r@|ttjd }t|}|szddl }| |d W n tt tfy Y n0 | }t|}|r|r|dd}|dkrt d|W | | dS |r|ddW | | S W | | dS W | | n| | 0 dS )a/ Deduce the encoding of a source file from magic comment. It does this in the same way as the `Python interpreter`__ .. __: https://docs.python.org/3.4/reference/lexical_analysis.html#encoding-declarations The ``fp`` argument should be a seekable file object. (From Jeff Dairiki) r Nlatin-1 zutf-8zencoding problem: {0} with BOM)tellseekreadline startswithcodecsBOM_UTF8lenPYTHON_MAGIC_COMMENT_rematchastparsedecodeImportErrorSyntaxErrorUnicodeEncodeErrorgroupformat)fpposZline1Zhas_bommr Zline2Zmagic_comment_encodingr r r parse_encoding1 sH r&