o ,]C @s0ddlmZddlZddlmZmZmZerddlmZnddl mZerZddl Z ddl mZddZ ddl m Zdd Zd d Zdd lmZd dZeZddlmZe ZeZeZn+ddlZddlmZej Z ejZejZejZejZejZejZejZejZejZejZerdddZergdZdSgZdS))unicode_literalsN)PY2PY3exec_)MappingcOs||i|S)N)fargskwrr4/usr/lib/python3/dist-packages/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)reloadcCs|durtd}|dj}|dj}n|dur|}t|ts$tdt|ts-tdt|d }|}Wdn1sAwYt ||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)filename myglobalsmylocals caller_framefinsourcecoderrr execfileBs        r/) r rrr/r raw_inputrunichrunicodexrange)NN) __future__rr future.utilsrrr collectionsrcollections.abcrr past.builtinsr rrrsysrrinputr0imprr2r1ranger3 __builtin__r/__all__rrrr sL