B A[ @sddlmZddlZddlZddlmZddlmZmZerddl Z ddZ ddl m Z dd Zd d Zdd lmZd dZeZddlmZe ZeZeZnJddlZej Z ejZejZejZejZejZejZejZejZejZejZerdddZerdd d dddddddg ZngZdS))unicode_literalsN)Mapping)PY3exec_cOs |||S)N)fargskwrrC/opt/alt/python37/lib/python3.7/site-packages/past/builtins/misc.pyapply sr )strcCstt|fS)zU Return a byte-string of one character with ordinal i; 0 <= i <= 256 )oldstrbytes)irrr chrsrcCs||k||kS)zf cmp(x, y) -> integer Return negative if xy. r)xyrrr cmpsr)interncCsdt|ddS)zUoct(number) -> string Return the octal representation of an integer 0N)builtinsoct)Znumberrrr r!sr)reloadc Cs|dkr*td}|dj}|dj}n |dkr6|}t|tsHtdt|tsZtdt|d}|}WdQRXt ||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. Nrzglobals must be a mappingzlocals must be a mappingZrbUexec) inspectstack f_globalsf_locals isinstancer TypeErroropenreadcompiler)filenameZ myglobalsZmylocalsZ caller_frameZfinsourcecoderrr execfile=s       r(r raw_inputrunichrunicodexrange)NN)Z __future__rsysr collectionsrZ future.utilsrrrr Z past.builtinsr r rrrrinputr)Zimprr+r*ranger,Z __builtin__r(__all__rrrr sF