B ,]C @sBddlmZddlZddlmZmZmZer:ddlmZn ddl mZerddl Z ddl mZddZ ddl m Zdd Zd d Zdd lmZd dZeZddlmZe ZeZeZnVddlZddlmZej Z ejZejZejZejZejZejZejZejZejZejZerdddZer:dd d dddddddg ZngZdS))unicode_literalsN)PY2PY3exec_)MappingcOs |||S)N)fargskwrr9/tmp/pip-target-9_2btsuh/lib/python/past/builtins/misc.pyapplysr )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)numberrrr 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 mappingrbexec) inspectstack f_globalsf_locals isinstancer TypeErroropenreadcompiler)filenameZ myglobalsZmylocalsZ caller_frameZfinsourcecoderrr execfileBs       r+r raw_inputrunichrunicodexrange)NN) __future__rrZ future.utilsrrr collectionsrcollections.abcrr Z past.builtinsr rrrsysrrinputr,imprr.r-ranger/ __builtin__r+__all__rrrr sL