Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
past
/
builtins
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: misc.cpython-310.pyc
o ,�]C � @ s0 d dl mZ d dlZd dlmZmZmZ erd dlmZ nd dl mZ erZd dl Z d dl mZ dd� Zd dlm Z dd � Zd d� Zd dlmZ d d� ZeZd dlmZ e ZeZeZn+d dlZd dlmZ ejZejZejZejZejZejZejZejZejZejZejZer�ddd�Zer�g d�ZdS g ZdS )� )�unicode_literalsN)�PY2�PY3�exec_)�Mappingc O s | |i |��S )N� )�f�args�kwr r �4/usr/lib/python3/dist-packages/past/builtins/misc.py�apply s r )�strc C s t t| f��S )zU Return a byte-string of one character with ordinal i; 0 <= i <= 256 )�oldstr�bytes)�ir r r �chr s r c C s | |k| |k S )zf cmp(x, y) -> integer Return negative if x<y, zero if x==y, positive if x>y. r )�x�yr r r �cmp s r )�internc C s dt �| �dd� S )zUoct(number) -> string Return the octal representation of an integer �0� N)�builtins�oct)�numberr r r r % s r )�reloadc C s� |du rt �� d }|d j}|d j}n|du r|}t|t�s$td��t|t�s-td��t| d��}|�� }W d � n1 sAw Y t || d�}t |||� dS )z� Read and execute a Python script from a file in the given namespaces. The globals and locals are dictionaries, defaulting to the current globals and locals. If only globals is given, locals defaults to it. N� r zglobals must be a mappingzlocals must be a mapping�rb�exec)�inspect�stack� f_globals�f_locals� isinstancer � TypeError�open�read�compiler )�filename� myglobals�mylocals�caller_frame�fin�source�coder r r �execfileB s �r/ ) r r r r/ r � raw_inputr �unichr�unicode�xrange)NN)� __future__r r �future.utilsr r r �collectionsr �collections.abcr r � past.builtinsr r r r �sysr r �inputr0 �impr r2 r1 �ranger3 �__builtin__r/ �__all__r r r r �<module> sL
Save
Cancel