[ Root System Explorer ]
Location:
Root
/
lib
/
python3.9
/
site-packages
/
elftools
/
common
/
__pycache__
+ Folder
+ File
Upload
Editing: py3compat.cpython-39.pyc
a �#�_� � @ s� d dl Z e jd dkZerbd dlZejZejZdd� Zdd� Zdd� Zd d � Z dd� Z eZe j ZnDd dlZej ZZd d� Zdd� ZeZeZ dd� Z d dlmZ e jZdd� Zdd� Zdd� Zzd dlmZ W n ey� d dlmZ Y n0 dS )� N� c C s | � d�S �Nzlatin-1)�decode��b� r �=/usr/lib/python3.9/site-packages/elftools/common/py3compat.py� bytes2str � r c C s | � d�S r )�encode��sr r r � str2bytes r r c C s t | f�S �N)�bytes)�ir r r �int2byte r r c C s | S r r r r r r �byte2int r r c c s( t t| ��D ]}| ||d � V qdS )z�Return an iterator over the elements of a bytes object. For example, for b'abc' yields b'a', b'b' and then b'c'. � N)�range�len)r r r r r � iterbytes s r c C s | S r r r r r r r , r c C s | S r r r r r r r - r c C s t | �S r )�iterr r r r r 0 s )�ifilterc C s t | trdnd�� S )z1Return an iterator over the keys of a dictionary.�keys�iterkeys��getattr�PY3��dr r r r 8 s r c C s t | trdnd�� S )z3Return an iterator over the values of a dictionary.�values� itervaluesr r r r r r"