repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
pypa/pipenv
pipenv/vendor/shellingham/posix/__init__.py
_iter_process_command
def _iter_process_command(mapping, pid, max_depth): """Iterator to traverse up the tree, yielding `argv[0]` of each process. """ for _ in range(max_depth): try: proc = mapping[pid] except KeyError: # We've reached the root process. Give up. break try: cmd = proc.args[0] except IndexError: # Process has no name? Whatever, ignore it. pass else: yield cmd pid = proc.ppid
python
def _iter_process_command(mapping, pid, max_depth): """Iterator to traverse up the tree, yielding `argv[0]` of each process. """ for _ in range(max_depth): try: proc = mapping[pid] except KeyError: # We've reached the root process. Give up. break try: cmd = proc.args[0] except IndexError: # Process has no name? Whatever, ignore it. pass else: yield cmd pid = proc.ppid
[ "def", "_iter_process_command", "(", "mapping", ",", "pid", ",", "max_depth", ")", ":", "for", "_", "in", "range", "(", "max_depth", ")", ":", "try", ":", "proc", "=", "mapping", "[", "pid", "]", "except", "KeyError", ":", "# We've reached the root process. Give up.", "break", "try", ":", "cmd", "=", "proc", ".", "args", "[", "0", "]", "except", "IndexError", ":", "# Process has no name? Whatever, ignore it.", "pass", "else", ":", "yield", "cmd", "pid", "=", "proc", ".", "ppid" ]
Iterator to traverse up the tree, yielding `argv[0]` of each process.
[ "Iterator", "to", "traverse", "up", "the", "tree", "yielding", "argv", "[", "0", "]", "of", "each", "process", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/shellingham/posix/__init__.py#L22-L36
train
Iterate over the process commands in the tree.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU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ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2187 - 2139) + '\x6f' + '\x31' + '\x32' + chr(54), 28192 - 28184), ehT0Px3KOsy9(chr(1349 - 1301) + '\x6f' + chr(2296 - 2245) + chr(0b110111) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + '\062' + '\066' + '\x32', 12845 - 12837), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(48) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(684 - 636) + chr(0b10001 + 0o136) + '\x33' + '\x36' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49), 4171 - 4163), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\x6f' + chr(0b11111 + 0o25), 28129 - 28121), ehT0Px3KOsy9('\060' + '\157' + chr(1432 - 1383) + '\065' + chr(0b101000 + 0o12), 59472 - 59464), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(0b110110) + chr(153 - 102), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + '\x31' + chr(158 - 107), 0o10), ehT0Px3KOsy9(chr(358 - 310) + chr(111) + chr(0b100110 + 0o16) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b100100 + 0o113) + '\063' + '\061' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101101 + 0o5) + chr(234 - 179) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(51) + chr(0b10110 + 0o37), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110111 + 0o70) + chr(1638 - 1589) + chr(611 - 557) + chr(166 - 114), 56826 - 56818), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1691 - 1642) + '\x34' + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1512 - 1401) + chr(72 - 21) + '\x31' + '\x30', 0o10), ehT0Px3KOsy9(chr(635 - 587) + chr(0b1101111) + chr(0b110001) + chr(0b110001) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1678 - 1630) + '\x6f' + '\061' + chr(0b110110) + chr(1972 - 1919), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + '\065' + '\x31', 0b1000), ehT0Px3KOsy9(chr(1150 - 1102) + chr(10612 - 10501) + chr(1848 - 1798) + chr(53) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b111010 + 0o65) + chr(0b101111 + 0o4) + chr(0b110001) + chr(48), 8), ehT0Px3KOsy9(chr(48) + chr(9125 - 9014) + chr(0b10001 + 0o42) + '\067' + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + chr(6983 - 6872) + chr(1352 - 1302) + chr(0b1000 + 0o50) + chr(0b101000 + 0o16), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + '\061' + chr(0b100011 + 0o20), 8), ehT0Px3KOsy9('\x30' + chr(6350 - 6239) + '\063' + chr(1808 - 1759) + '\x33', 8), ehT0Px3KOsy9(chr(48) + chr(0b1001001 + 0o46) + chr(0b110010) + chr(0b110111) + '\067', 0b1000), ehT0Px3KOsy9(chr(1048 - 1000) + chr(1003 - 892) + '\063' + chr(0b101110 + 0o10), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + chr(0b110111) + chr(55), 42566 - 42558), ehT0Px3KOsy9(chr(0b110000) + chr(3603 - 3492) + '\x31' + chr(0b110111) + chr(0b110011 + 0o4), 8), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\157' + '\x32' + '\x35' + chr(1708 - 1658), 8), ehT0Px3KOsy9('\x30' + chr(0b111000 + 0o67) + '\x33' + chr(2691 - 2639) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1100011 + 0o14) + '\062' + chr(0b110100) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\067' + chr(0b1011 + 0o47), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + '\x36' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(55) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100001 + 0o116) + chr(50) + '\x31' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + '\157' + '\062' + chr(0b110011) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(2068 - 2020) + chr(0b1000011 + 0o54) + chr(0b11000 + 0o32) + chr(215 - 164) + chr(55), 7315 - 7307), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100001 + 0o21) + chr(1183 - 1130) + '\x34', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110101) + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'x'), chr(4922 - 4822) + chr(0b11001 + 0o114) + chr(99) + chr(0b1001011 + 0o44) + chr(0b1010111 + 0o15) + chr(0b1000 + 0o135))(chr(117) + '\164' + '\146' + chr(1219 - 1174) + chr(0b100110 + 0o22)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def rxMtRfG830bo(lDyiwdy_JhxC, pdFjuIGjrFb4, U9fr9lFGWX80): for VNGQdHSFPrso in vQr8gNKaIaWE(U9fr9lFGWX80): try: qWgorv6lsPwr = lDyiwdy_JhxC[pdFjuIGjrFb4] except RQ6CSRrFArYB: break try: cTsjNbtiBYNK = qWgorv6lsPwr.kJDRfRhcZHjS[ehT0Px3KOsy9(chr(1973 - 1925) + chr(0b1101111) + chr(48), 0o10)] except _fsda0v2_OKU: pass else: yield cTsjNbtiBYNK pdFjuIGjrFb4 = qWgorv6lsPwr.ppid
pypa/pipenv
pipenv/vendor/shellingham/posix/__init__.py
_get_login_shell
def _get_login_shell(proc_cmd): """Form shell information from the SHELL environment variable if possible. """ login_shell = os.environ.get('SHELL', '') if login_shell: proc_cmd = login_shell else: proc_cmd = proc_cmd[1:] return (os.path.basename(proc_cmd).lower(), proc_cmd)
python
def _get_login_shell(proc_cmd): """Form shell information from the SHELL environment variable if possible. """ login_shell = os.environ.get('SHELL', '') if login_shell: proc_cmd = login_shell else: proc_cmd = proc_cmd[1:] return (os.path.basename(proc_cmd).lower(), proc_cmd)
[ "def", "_get_login_shell", "(", "proc_cmd", ")", ":", "login_shell", "=", "os", ".", "environ", ".", "get", "(", "'SHELL'", ",", "''", ")", "if", "login_shell", ":", "proc_cmd", "=", "login_shell", "else", ":", "proc_cmd", "=", "proc_cmd", "[", "1", ":", "]", "return", "(", "os", ".", "path", ".", "basename", "(", "proc_cmd", ")", ".", "lower", "(", ")", ",", "proc_cmd", ")" ]
Form shell information from the SHELL environment variable if possible.
[ "Form", "shell", "information", "from", "the", "SHELL", "environment", "variable", "if", "possible", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/shellingham/posix/__init__.py#L39-L47
train
Form shell information from the SHELL environment variable if possible.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXU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o9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(2664 - 2612) + chr(0b11010 + 0o35), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b11100 + 0o27) + chr(1819 - 1768) + chr(0b101011 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(2298 - 2250) + chr(0b1101111) + chr(0b110011) + '\065' + chr(1660 - 1605), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(52) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(0b101110 + 0o4) + '\060', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + chr(684 - 636) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1784 - 1736) + '\157' + '\x37' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110 + 0o55) + chr(51) + chr(961 - 913), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2735 - 2624) + chr(0b11100 + 0o25) + '\063' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(153 - 105) + chr(0b1101111) + '\063' + '\x37' + chr(1375 - 1327), 18736 - 18728), ehT0Px3KOsy9(chr(806 - 758) + chr(0b101110 + 0o101) + '\061' + chr(2320 - 2269) + chr(2008 - 1954), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1011 + 0o144) + '\x33' + '\x34' + '\x30', 0o10), ehT0Px3KOsy9('\060' + chr(0b11000 + 0o127) + chr(51) + '\x36' + chr(0b110010), 60316 - 60308), ehT0Px3KOsy9(chr(2222 - 2174) + chr(0b111 + 0o150) + chr(533 - 482) + chr(54) + chr(1234 - 1186), 26893 - 26885), ehT0Px3KOsy9('\060' + chr(8699 - 8588) + chr(0b10000 + 0o43) + chr(0b110000) + chr(53), 0b1000), ehT0Px3KOsy9(chr(74 - 26) + chr(0b1101111) + chr(0b110011) + chr(1966 - 1918) + '\065', 8), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(2452 - 2399), 0o10), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(419 - 308) + chr(0b11101 + 0o24) + chr(48) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b100001 + 0o116) + chr(900 - 851) + chr(0b110011) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x36' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(388 - 340) + chr(0b1101111) + '\062' + '\062' + chr(2751 - 2698), 3033 - 3025), ehT0Px3KOsy9('\060' + chr(0b1101010 + 0o5) + chr(181 - 131) + chr(0b100010 + 0o16) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110011) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(847 - 799) + '\157' + chr(0b1001 + 0o52) + chr(0b10111 + 0o34) + '\x31', 8), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + '\065' + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(4306 - 4195) + chr(0b100011 + 0o17) + chr(0b110000) + chr(0b10100 + 0o37), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110000) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(57 - 9) + chr(0b1100101 + 0o12) + '\x32' + '\x31' + chr(48), 41033 - 41025), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + chr(0b100000 + 0o23), 0b1000), ehT0Px3KOsy9(chr(408 - 360) + chr(0b1101111) + chr(50) + chr(54) + '\x30', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110110) + '\x34', 62157 - 62149), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110 + 0o55) + chr(878 - 823) + chr(0b110000), 8), ehT0Px3KOsy9(chr(717 - 669) + chr(9556 - 9445) + chr(50) + chr(48) + '\065', 22870 - 22862), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\157' + '\061' + chr(2020 - 1969) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(0b110111) + '\x37', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b1000 + 0o53) + chr(0b11111 + 0o24) + '\x34', 23355 - 23347), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\060' + chr(986 - 934), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101101 + 0o2) + chr(49) + '\x32' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(6792 - 6681) + chr(1413 - 1363) + '\x30', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(364 - 316) + chr(0b1101111) + chr(2441 - 2388) + chr(0b1011 + 0o45), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xc9'), '\x64' + '\x65' + '\x63' + chr(111) + chr(0b110000 + 0o64) + chr(0b10110 + 0o117))(chr(0b1110101) + chr(6419 - 6303) + '\x66' + chr(1360 - 1315) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def uUgrySq5pruA(Lk_MTIPw105I): AoKr0muVyTc6 = oqhJDdMJfuwx.environ.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x91\xaa\xad\xdc'), '\x64' + chr(7084 - 6983) + '\143' + chr(5575 - 5464) + chr(0b110010 + 0o62) + '\x65')(chr(117) + '\x74' + chr(0b101011 + 0o73) + chr(0b1011 + 0o42) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(1638 - 1538) + '\x65' + '\x63' + chr(10885 - 10774) + chr(0b1001101 + 0o27) + chr(0b101111 + 0o66))(chr(6180 - 6063) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070')) if AoKr0muVyTc6: Lk_MTIPw105I = AoKr0muVyTc6 else: Lk_MTIPw105I = Lk_MTIPw105I[ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2238 - 2189), ord("\x08")):] return (xafqLlk3kkUe(oqhJDdMJfuwx.path.basename(Lk_MTIPw105I), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8b\xb6\x98\x84\xe2'), '\144' + chr(5448 - 5347) + chr(0b1010000 + 0o23) + chr(111) + chr(0b1100100) + chr(0b1001011 + 0o32))('\x75' + chr(0b110001 + 0o103) + chr(0b1100110) + chr(0b101101) + '\070'))(), Lk_MTIPw105I)
pypa/pipenv
pipenv/vendor/shellingham/posix/__init__.py
get_shell
def get_shell(pid=None, max_depth=6): """Get the shell that the supplied pid or os.getpid() is running in. """ pid = str(pid or os.getpid()) mapping = _get_process_mapping() for proc_cmd in _iter_process_command(mapping, pid, max_depth): if proc_cmd.startswith('-'): # Login shell! Let's use this. return _get_login_shell(proc_cmd) name = os.path.basename(proc_cmd).lower() if name in SHELL_NAMES: # The inner-most (non-login) shell. return (name, proc_cmd) return None
python
def get_shell(pid=None, max_depth=6): """Get the shell that the supplied pid or os.getpid() is running in. """ pid = str(pid or os.getpid()) mapping = _get_process_mapping() for proc_cmd in _iter_process_command(mapping, pid, max_depth): if proc_cmd.startswith('-'): # Login shell! Let's use this. return _get_login_shell(proc_cmd) name = os.path.basename(proc_cmd).lower() if name in SHELL_NAMES: # The inner-most (non-login) shell. return (name, proc_cmd) return None
[ "def", "get_shell", "(", "pid", "=", "None", ",", "max_depth", "=", "6", ")", ":", "pid", "=", "str", "(", "pid", "or", "os", ".", "getpid", "(", ")", ")", "mapping", "=", "_get_process_mapping", "(", ")", "for", "proc_cmd", "in", "_iter_process_command", "(", "mapping", ",", "pid", ",", "max_depth", ")", ":", "if", "proc_cmd", ".", "startswith", "(", "'-'", ")", ":", "# Login shell! Let's use this.", "return", "_get_login_shell", "(", "proc_cmd", ")", "name", "=", "os", ".", "path", ".", "basename", "(", "proc_cmd", ")", ".", "lower", "(", ")", "if", "name", "in", "SHELL_NAMES", ":", "# The inner-most (non-login) shell.", "return", "(", "name", ",", "proc_cmd", ")", "return", "None" ]
Get the shell that the supplied pid or os.getpid() is running in.
[ "Get", "the", "shell", "that", "the", "supplied", "pid", "or", "os", ".", "getpid", "()", "is", "running", "in", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/shellingham/posix/__init__.py#L50-L61
train
Get the shell that the pid or os. getpid() is running in.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkc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gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + chr(0b110010 + 0o4) + chr(2550 - 2497), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b11100 + 0o123) + '\x31' + chr(0b110111) + chr(0b1010 + 0o50), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110100) + chr(0b110101), 54116 - 54108), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + '\x33' + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(9213 - 9102) + chr(51) + '\x31' + chr(0b1110 + 0o45), 17828 - 17820), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + '\x33' + chr(53) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(111) + chr(0b11 + 0o56) + chr(0b10010 + 0o41) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100 + 0o143) + '\063' + chr(0b100010 + 0o16) + chr(52), 49501 - 49493), ehT0Px3KOsy9(chr(0b110000) + chr(1634 - 1523) + chr(54) + chr(2521 - 2470), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100001 + 0o21) + chr(52) + chr(1486 - 1438), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2343 - 2289) + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110 + 0o53) + '\060' + chr(52), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10100 + 0o35) + '\065' + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5727 - 5616) + '\061' + chr(2058 - 2004) + chr(0b110010), 13160 - 13152), ehT0Px3KOsy9('\x30' + chr(0b1001000 + 0o47) + chr(49) + '\065' + chr(1489 - 1434), 26489 - 26481), ehT0Px3KOsy9(chr(256 - 208) + '\157' + '\061' + '\062', 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + '\063' + chr(0b1101 + 0o46) + chr(0b100110 + 0o17), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(9117 - 9006) + '\x33' + chr(0b110000) + chr(71 - 16), 21050 - 21042), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + '\060' + chr(0b10 + 0o65), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(55) + chr(2578 - 2527), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010010 + 0o35) + chr(0b1001 + 0o51) + chr(0b110001) + chr(220 - 171), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + '\x33' + '\067', 0b1000), ehT0Px3KOsy9(chr(768 - 720) + chr(0b1101111) + chr(0b110001) + '\061' + '\x35', 5567 - 5559), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100100 + 0o17) + chr(0b100110 + 0o16) + '\067', 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\157' + '\063' + chr(1272 - 1222) + chr(0b11000 + 0o30), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x31' + '\066' + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(5539 - 5428) + chr(0b110001) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(11143 - 11032) + chr(2307 - 2257) + chr(52) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1739 - 1628) + '\061' + chr(0b110001) + chr(1092 - 1040), 0o10), ehT0Px3KOsy9(chr(1192 - 1144) + chr(111) + chr(1655 - 1606) + chr(0b101101 + 0o5) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(55) + chr(0b11000 + 0o30), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + '\x30' + chr(0b100101 + 0o13), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x34' + chr(0b10000 + 0o43), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(0b1110 + 0o44), 8), ehT0Px3KOsy9(chr(48) + chr(0b100000 + 0o117) + '\x32' + chr(2798 - 2743), ord("\x08")), ehT0Px3KOsy9('\060' + chr(10493 - 10382) + chr(0b11001 + 0o31) + chr(49) + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010010 + 0o35) + chr(1462 - 1413) + '\x37' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(844 - 733) + '\061' + chr(2099 - 2051) + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b110001 + 0o76) + chr(0b100101 + 0o14) + chr(0b110011) + chr(836 - 788), 51794 - 51786)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(588 - 535) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b'), '\x64' + chr(0b1100101) + chr(3813 - 3714) + '\x6f' + '\x64' + chr(0b101101 + 0o70))(chr(117) + chr(0b11011 + 0o131) + chr(9927 - 9825) + '\x2d' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Bihb24PsqBcw(pdFjuIGjrFb4=None, U9fr9lFGWX80=ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1101111) + chr(1415 - 1361), ord("\x08"))): pdFjuIGjrFb4 = M8_cKLkHVB2V(pdFjuIGjrFb4 or oqhJDdMJfuwx.getpid()) lDyiwdy_JhxC = Bvx1TCRdpjIn() for Lk_MTIPw105I in rxMtRfG830bo(lDyiwdy_JhxC, pdFjuIGjrFb4, U9fr9lFGWX80): if xafqLlk3kkUe(Lk_MTIPw105I, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x0eD\xaa\xbf\x9f+\xadG\xc8'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1000001 + 0o56) + chr(8940 - 8840) + chr(2569 - 2468))(chr(5807 - 5690) + '\164' + '\x66' + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x98'), chr(0b1011101 + 0o7) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b100010 + 0o103))(chr(10478 - 10361) + '\x74' + chr(102) + chr(0b101101 + 0o0) + chr(560 - 504))): return uUgrySq5pruA(Lk_MTIPw105I) AIvJRzLdDfgF = oqhJDdMJfuwx.path.basename(Lk_MTIPw105I).lower() if AIvJRzLdDfgF in MMqtbVdQRpPz: return (AIvJRzLdDfgF, Lk_MTIPw105I) return None
pypa/pipenv
pipenv/vendor/requests/adapters.py
BaseAdapter.send
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. """ raise NotImplementedError
python
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. """ raise NotImplementedError
[ "def", "send", "(", "self", ",", "request", ",", "stream", "=", "False", ",", "timeout", "=", "None", ",", "verify", "=", "True", ",", "cert", "=", "None", ",", "proxies", "=", "None", ")", ":", "raise", "NotImplementedError" ]
Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request.
[ "Sends", "PreparedRequest", "object", ".", "Returns", "Response", "object", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L61-L77
train
Sends a PreparedRequest object. Returns a Response object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcj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r8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b110010) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(8189 - 8078) + chr(2120 - 2071) + chr(51) + chr(0b101 + 0o62), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(1064 - 1013) + chr(1555 - 1505) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110010) + '\x30' + '\066', 55367 - 55359), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x34', 50131 - 50123), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(48) + chr(54), 15918 - 15910), ehT0Px3KOsy9('\060' + chr(0b10011 + 0o134) + chr(0b110010) + chr(0b100 + 0o62) + chr(55), 39317 - 39309), ehT0Px3KOsy9(chr(1759 - 1711) + chr(111) + chr(0b110110) + chr(0b110001), 39996 - 39988), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + chr(0b110111) + '\061', 0o10), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b101000 + 0o107) + chr(49) + chr(0b100011 + 0o23) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + chr(12066 - 11955) + chr(0b110011 + 0o0) + chr(0b110100) + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(553 - 502) + chr(1965 - 1914) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1101 + 0o44) + chr(0b100100 + 0o21) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1214 - 1103) + '\061' + chr(0b110011) + '\x32', 1857 - 1849), ehT0Px3KOsy9(chr(1099 - 1051) + chr(275 - 164) + '\x31' + '\063' + '\060', 63885 - 63877), ehT0Px3KOsy9(chr(2151 - 2103) + chr(111) + '\061' + chr(50) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(1153 - 1105) + '\157' + chr(558 - 507) + chr(54) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + '\061' + chr(0b100 + 0o63), 0o10), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(604 - 493) + '\x35' + chr(2497 - 2447), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + '\x34' + chr(369 - 314), 18203 - 18195), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(827 - 775) + '\067', 0o10), ehT0Px3KOsy9('\060' + chr(2436 - 2325) + chr(51) + chr(144 - 94) + chr(54), 0b1000), ehT0Px3KOsy9(chr(775 - 727) + '\157' + '\063' + chr(53) + chr(0b100111 + 0o16), 4991 - 4983), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(54) + chr(0b1 + 0o60), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11000 + 0o33) + chr(0b110011) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(537 - 489) + chr(3221 - 3110) + '\x32' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\060' + chr(48), 53718 - 53710), ehT0Px3KOsy9(chr(1475 - 1427) + chr(0b1101111) + chr(0b110011) + chr(2363 - 2312) + '\x34', 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(53) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\157' + chr(1131 - 1080) + chr(0b110110) + chr(268 - 217), 0o10), ehT0Px3KOsy9(chr(220 - 172) + chr(0b100011 + 0o114) + chr(0b101100 + 0o7) + chr(0b101111 + 0o3) + chr(0b110110), 8), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\x6f' + chr(50) + chr(0b110101), 29762 - 29754), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + '\063' + '\061', 14185 - 14177), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + '\x34' + chr(0b101100 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(111) + '\062' + '\067' + chr(0b110100), 37542 - 37534), ehT0Px3KOsy9('\x30' + chr(0b1001101 + 0o42) + '\x33' + '\x32' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + '\x35' + chr(1767 - 1713), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10011 + 0o42), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110101) + chr(0b110110), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b10111 + 0o130) + '\063' + '\x37' + '\x30', 2293 - 2285)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1872 - 1819) + chr(1783 - 1735), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xba'), '\144' + chr(0b1001001 + 0o34) + '\143' + chr(10636 - 10525) + '\144' + chr(0b1100101))(chr(117) + chr(0b110100 + 0o100) + chr(0b110 + 0o140) + chr(1238 - 1193) + chr(2958 - 2902)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def oR8uL58nAa6x(oVre8I6UXc3b, r9Xp41HGNpwj, Mj3LKRMxKCNZ=ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110000), 0b1000), FaIjqlnzCXev=None, miuQxEWBwyu3=ehT0Px3KOsy9(chr(166 - 118) + '\157' + chr(0b1111 + 0o42), 0o10), PphJ3b3jajcU=None, TTo2eBmxXuR2=None): raise _zJ24Vce7wp0
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.init_poolmanager
def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool_kwargs): """Initializes a urllib3 PoolManager. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param connections: The number of urllib3 connection pools to cache. :param maxsize: The maximum number of connections to save in the pool. :param block: Block when no free connections are available. :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager. """ # save these values for pickling self._pool_connections = connections self._pool_maxsize = maxsize self._pool_block = block self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, block=block, strict=True, **pool_kwargs)
python
def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool_kwargs): """Initializes a urllib3 PoolManager. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param connections: The number of urllib3 connection pools to cache. :param maxsize: The maximum number of connections to save in the pool. :param block: Block when no free connections are available. :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager. """ # save these values for pickling self._pool_connections = connections self._pool_maxsize = maxsize self._pool_block = block self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, block=block, strict=True, **pool_kwargs)
[ "def", "init_poolmanager", "(", "self", ",", "connections", ",", "maxsize", ",", "block", "=", "DEFAULT_POOLBLOCK", ",", "*", "*", "pool_kwargs", ")", ":", "# save these values for pickling", "self", ".", "_pool_connections", "=", "connections", "self", ".", "_pool_maxsize", "=", "maxsize", "self", ".", "_pool_block", "=", "block", "self", ".", "poolmanager", "=", "PoolManager", "(", "num_pools", "=", "connections", ",", "maxsize", "=", "maxsize", ",", "block", "=", "block", ",", "strict", "=", "True", ",", "*", "*", "pool_kwargs", ")" ]
Initializes a urllib3 PoolManager. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param connections: The number of urllib3 connection pools to cache. :param maxsize: The maximum number of connections to save in the pool. :param block: Block when no free connections are available. :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager.
[ "Initializes", "a", "urllib3", "PoolManager", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L146-L164
train
Initializes a urllib3 PoolManager.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP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ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(50) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010110 + 0o31) + chr(1353 - 1304) + '\x31' + '\x30', 27881 - 27873), ehT0Px3KOsy9('\060' + '\157' + chr(1948 - 1899), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1388 - 1277) + '\063' + chr(0b110101) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b111011 + 0o64) + chr(0b110011) + chr(0b100000 + 0o21) + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\062' + '\064' + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b100110 + 0o111) + chr(50) + chr(0b0 + 0o62) + chr(1530 - 1478), 28688 - 28680), ehT0Px3KOsy9(chr(266 - 218) + chr(111) + chr(0b1000 + 0o51) + '\x37' + chr(0b110010), 35876 - 35868), ehT0Px3KOsy9(chr(0b110000) + chr(4846 - 4735) + '\x32' + '\x33' + '\x30', 50126 - 50118), ehT0Px3KOsy9(chr(1454 - 1406) + chr(111) + chr(333 - 282) + chr(48), 0b1000), ehT0Px3KOsy9(chr(2248 - 2200) + chr(111) + '\x33' + '\060' + chr(0b11101 + 0o23), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001 + 0o146) + '\x33' + '\x31' + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(3478 - 3367) + chr(0b11111 + 0o24) + chr(0b110001) + '\x31', 46574 - 46566), ehT0Px3KOsy9(chr(1094 - 1046) + chr(0b101010 + 0o105) + '\063' + '\067' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\157' + chr(259 - 209) + chr(0b110101) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(345 - 297) + chr(0b1010100 + 0o33) + '\063' + chr(0b0 + 0o67) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1344 - 1296) + chr(0b1100110 + 0o11) + chr(50) + chr(0b110110) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b110101) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(234 - 186) + chr(0b1000101 + 0o52) + chr(1594 - 1543) + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(1940 - 1890) + chr(1480 - 1430) + chr(2670 - 2618), 8), ehT0Px3KOsy9(chr(48) + chr(0b101101 + 0o102) + '\x31' + chr(48) + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(0b101111 + 0o10) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(159 - 106) + chr(0b101011 + 0o14), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2175 - 2124) + chr(49) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + '\063' + chr(0b1100 + 0o51) + chr(0b10100 + 0o42), 0o10), ehT0Px3KOsy9(chr(1385 - 1337) + '\157' + '\x33' + '\x35' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(7610 - 7499) + '\x32' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(380 - 332) + chr(111) + chr(50) + chr(0b110101) + '\061', 52988 - 52980), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11100 + 0o27) + '\061' + chr(474 - 426), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10111 + 0o34) + chr(0b110001) + chr(49), 8), ehT0Px3KOsy9(chr(745 - 697) + '\x6f' + chr(0b110101) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2432 - 2382) + chr(0b110110) + chr(821 - 769), 25936 - 25928), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + '\062' + chr(0b111 + 0o60), 0b1000), ehT0Px3KOsy9(chr(351 - 303) + chr(111) + '\x33' + '\066' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b10001 + 0o41) + chr(48) + chr(239 - 191), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\x35' + chr(660 - 611), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(0b110010) + chr(1362 - 1314), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b100010 + 0o115) + '\063' + chr(0b101011 + 0o13) + '\061', 40398 - 40390), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + '\065' + '\x36', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(1526 - 1415) + chr(636 - 583) + chr(124 - 76), 37845 - 37837)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8'), '\144' + chr(0b1100101 + 0o0) + '\x63' + chr(0b1010000 + 0o37) + chr(4200 - 4100) + chr(0b1001101 + 0o30))(chr(0b1110101) + '\164' + '\x66' + chr(45) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def BQHf82fGB6_w(oVre8I6UXc3b, NMZYKPKJQAjF, iPsyvAM346Vv, cid3MTmW5yAA=B7Qt0kAMV2cK, **i0i8zCMdlK37): oVre8I6UXc3b._pDg6KcAVpl3 = NMZYKPKJQAjF oVre8I6UXc3b.zEV5AZxIu34T = iPsyvAM346Vv oVre8I6UXc3b.Cuk0FSE0WuR2 = cid3MTmW5yAA oVre8I6UXc3b.rlNx3LSQLX4E = TUk0a38s2A5_(num_pools=NMZYKPKJQAjF, maxsize=iPsyvAM346Vv, block=cid3MTmW5yAA, strict=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101 + 0o142) + '\x31', 8), **i0i8zCMdlK37)
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.proxy_manager_for
def proxy_manager_for(self, proxy, **proxy_kwargs): """Return urllib3 ProxyManager for the given proxy. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param proxy: The proxy to return a urllib3 ProxyManager for. :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager. :returns: ProxyManager :rtype: urllib3.ProxyManager """ if proxy in self.proxy_manager: manager = self.proxy_manager[proxy] elif proxy.lower().startswith('socks'): username, password = get_auth_from_url(proxy) manager = self.proxy_manager[proxy] = SOCKSProxyManager( proxy, username=username, password=password, num_pools=self._pool_connections, maxsize=self._pool_maxsize, block=self._pool_block, **proxy_kwargs ) else: proxy_headers = self.proxy_headers(proxy) manager = self.proxy_manager[proxy] = proxy_from_url( proxy, proxy_headers=proxy_headers, num_pools=self._pool_connections, maxsize=self._pool_maxsize, block=self._pool_block, **proxy_kwargs) return manager
python
def proxy_manager_for(self, proxy, **proxy_kwargs): """Return urllib3 ProxyManager for the given proxy. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param proxy: The proxy to return a urllib3 ProxyManager for. :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager. :returns: ProxyManager :rtype: urllib3.ProxyManager """ if proxy in self.proxy_manager: manager = self.proxy_manager[proxy] elif proxy.lower().startswith('socks'): username, password = get_auth_from_url(proxy) manager = self.proxy_manager[proxy] = SOCKSProxyManager( proxy, username=username, password=password, num_pools=self._pool_connections, maxsize=self._pool_maxsize, block=self._pool_block, **proxy_kwargs ) else: proxy_headers = self.proxy_headers(proxy) manager = self.proxy_manager[proxy] = proxy_from_url( proxy, proxy_headers=proxy_headers, num_pools=self._pool_connections, maxsize=self._pool_maxsize, block=self._pool_block, **proxy_kwargs) return manager
[ "def", "proxy_manager_for", "(", "self", ",", "proxy", ",", "*", "*", "proxy_kwargs", ")", ":", "if", "proxy", "in", "self", ".", "proxy_manager", ":", "manager", "=", "self", ".", "proxy_manager", "[", "proxy", "]", "elif", "proxy", ".", "lower", "(", ")", ".", "startswith", "(", "'socks'", ")", ":", "username", ",", "password", "=", "get_auth_from_url", "(", "proxy", ")", "manager", "=", "self", ".", "proxy_manager", "[", "proxy", "]", "=", "SOCKSProxyManager", "(", "proxy", ",", "username", "=", "username", ",", "password", "=", "password", ",", "num_pools", "=", "self", ".", "_pool_connections", ",", "maxsize", "=", "self", ".", "_pool_maxsize", ",", "block", "=", "self", ".", "_pool_block", ",", "*", "*", "proxy_kwargs", ")", "else", ":", "proxy_headers", "=", "self", ".", "proxy_headers", "(", "proxy", ")", "manager", "=", "self", ".", "proxy_manager", "[", "proxy", "]", "=", "proxy_from_url", "(", "proxy", ",", "proxy_headers", "=", "proxy_headers", ",", "num_pools", "=", "self", ".", "_pool_connections", ",", "maxsize", "=", "self", ".", "_pool_maxsize", ",", "block", "=", "self", ".", "_pool_block", ",", "*", "*", "proxy_kwargs", ")", "return", "manager" ]
Return urllib3 ProxyManager for the given proxy. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param proxy: The proxy to return a urllib3 ProxyManager for. :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager. :returns: ProxyManager :rtype: urllib3.ProxyManager
[ "Return", "urllib3", "ProxyManager", "for", "the", "given", "proxy", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py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YzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(1370 - 1259) + '\x33' + chr(0b100111 + 0o20), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101100 + 0o3) + chr(52) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(5331 - 5220) + chr(2206 - 2151) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(54) + '\060', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + chr(0b110010) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100100 + 0o17) + chr(0b1100 + 0o47) + '\067', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000011 + 0o54) + chr(2430 - 2380) + chr(0b110001) + chr(1587 - 1536), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(50) + chr(0b1 + 0o64) + chr(0b110000), 34347 - 34339), ehT0Px3KOsy9('\060' + chr(639 - 528) + '\061' + chr(0b110101) + chr(2013 - 1963), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(54) + chr(1338 - 1290), ord("\x08")), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110011), 61793 - 61785), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b11000 + 0o32) + '\060' + chr(50), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b10011 + 0o36) + '\x34' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(669 - 621) + chr(5499 - 5388) + chr(50) + chr(0b110110) + chr(49), 55363 - 55355), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(111) + '\x33' + chr(0b110001) + chr(1287 - 1237), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b110101) + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1 + 0o62) + chr(103 - 50) + '\063', 19334 - 19326), ehT0Px3KOsy9(chr(2292 - 2244) + '\x6f' + chr(0b110010) + chr(1562 - 1512) + chr(55), 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + '\062' + chr(0b110000) + chr(0b1100 + 0o52), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + '\061' + chr(1135 - 1080) + chr(1138 - 1084), 0o10), ehT0Px3KOsy9(chr(389 - 341) + chr(111) + '\062' + chr(0b10111 + 0o37) + chr(2506 - 2452), 0o10), ehT0Px3KOsy9('\x30' + chr(4237 - 4126) + chr(2342 - 2292) + '\x37' + chr(0b1011 + 0o46), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1512 - 1461) + '\062' + chr(52), 0b1000), ehT0Px3KOsy9(chr(1950 - 1902) + chr(0b1101111) + chr(0b0 + 0o63) + chr(0b100000 + 0o26), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(52) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(52) + chr(52), 27704 - 27696), ehT0Px3KOsy9('\060' + '\157' + '\062' + '\066' + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(11684 - 11573) + chr(50) + chr(0b100010 + 0o23) + chr(2117 - 2067), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100101 + 0o12) + chr(1804 - 1753) + chr(1683 - 1635) + '\x37', 0o10), ehT0Px3KOsy9(chr(1653 - 1605) + chr(0b1101111) + chr(50) + chr(0b11100 + 0o27) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(111) + '\x31' + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100100 + 0o16) + '\067' + chr(0b11001 + 0o30), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\065' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\x6f' + '\x32' + chr(0b110010) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(1162 - 1114) + chr(0b1101010 + 0o5) + chr(0b110011) + '\063', 8), ehT0Px3KOsy9('\060' + chr(3510 - 3399) + chr(0b110011) + chr(54) + '\067', 0b1000), ehT0Px3KOsy9(chr(1203 - 1155) + '\157' + '\x31' + chr(0b110101) + chr(0b110001), 46924 - 46916), ehT0Px3KOsy9('\060' + chr(111) + '\063' + chr(0b110000) + chr(0b11001 + 0o32), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(0b110101) + chr(0b110010), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1889 - 1836) + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'1'), chr(2364 - 2264) + chr(0b1100101) + chr(8069 - 7970) + chr(111) + chr(100) + chr(0b111110 + 0o47))(chr(0b101011 + 0o112) + '\x74' + '\x66' + '\x2d' + chr(0b10100 + 0o44)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Q9LNd4W9YSpr(oVre8I6UXc3b, lfVYtF6OqVrn, **FWiQLW63vlqh): if lfVYtF6OqVrn in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'oWTH\xe8\x80\xe6\xc9\x04\xd1d~\xf0'), '\x64' + chr(8693 - 8592) + chr(99) + chr(111) + chr(100) + chr(2226 - 2125))('\x75' + chr(1987 - 1871) + '\146' + chr(139 - 94) + chr(0b11110 + 0o32))): zNFgjcUWE6vj = oVre8I6UXc3b.proxy_manager[lfVYtF6OqVrn] elif xafqLlk3kkUe(lfVYtF6OqVrn.lower(), xafqLlk3kkUe(SXOLrMavuUCe(b'lQZB\xe5\xac\xfc\xc1\x1e\xd8'), chr(6274 - 6174) + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(0b1101 + 0o130))('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b1 + 0o67)))(xafqLlk3kkUe(SXOLrMavuUCe(b'lJX[\xe2'), chr(0b1100100) + '\145' + '\x63' + chr(6314 - 6203) + chr(0b1100100) + '\145')(chr(0b1001001 + 0o54) + chr(0b1000111 + 0o55) + chr(0b1100110) + '\055' + '\070')): (LMfWKi3SEDsJ, L92tZn2E6Lag) = an8iKllptLrf(lfVYtF6OqVrn) zNFgjcUWE6vj = oVre8I6UXc3b.MYNEXo8GAd8n[lfVYtF6OqVrn] = j09H9v3yPCjT(lfVYtF6OqVrn, username=LMfWKi3SEDsJ, password=L92tZn2E6Lag, num_pools=oVre8I6UXc3b._pDg6KcAVpl3, maxsize=oVre8I6UXc3b.zEV5AZxIu34T, block=oVre8I6UXc3b.Cuk0FSE0WuR2, **FWiQLW63vlqh) else: ABBV9vm1U9T4 = oVre8I6UXc3b.proxy_headers(lfVYtF6OqVrn) zNFgjcUWE6vj = oVre8I6UXc3b.MYNEXo8GAd8n[lfVYtF6OqVrn] = nAW8LaJdZGxA(lfVYtF6OqVrn, proxy_headers=ABBV9vm1U9T4, num_pools=oVre8I6UXc3b._pDg6KcAVpl3, maxsize=oVre8I6UXc3b.zEV5AZxIu34T, block=oVre8I6UXc3b.Cuk0FSE0WuR2, **FWiQLW63vlqh) return zNFgjcUWE6vj
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.build_response
def build_response(self, req, resp): """Builds a :class:`Response <requests.Response>` object from a urllib3 response. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>` :param req: The :class:`PreparedRequest <PreparedRequest>` used to generate the response. :param resp: The urllib3 response object. :rtype: requests.Response """ response = Response() # Fallback to None if there's no status_code, for whatever reason. response.status_code = getattr(resp, 'status', None) # Make headers case-insensitive. response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {})) # Set encoding. response.encoding = get_encoding_from_headers(response.headers) response.raw = resp response.reason = response.raw.reason if isinstance(req.url, bytes): response.url = req.url.decode('utf-8') else: response.url = req.url # Add new cookies from the server. extract_cookies_to_jar(response.cookies, req, resp) # Give the Response some context. response.request = req response.connection = self return response
python
def build_response(self, req, resp): """Builds a :class:`Response <requests.Response>` object from a urllib3 response. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>` :param req: The :class:`PreparedRequest <PreparedRequest>` used to generate the response. :param resp: The urllib3 response object. :rtype: requests.Response """ response = Response() # Fallback to None if there's no status_code, for whatever reason. response.status_code = getattr(resp, 'status', None) # Make headers case-insensitive. response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {})) # Set encoding. response.encoding = get_encoding_from_headers(response.headers) response.raw = resp response.reason = response.raw.reason if isinstance(req.url, bytes): response.url = req.url.decode('utf-8') else: response.url = req.url # Add new cookies from the server. extract_cookies_to_jar(response.cookies, req, resp) # Give the Response some context. response.request = req response.connection = self return response
[ "def", "build_response", "(", "self", ",", "req", ",", "resp", ")", ":", "response", "=", "Response", "(", ")", "# Fallback to None if there's no status_code, for whatever reason.", "response", ".", "status_code", "=", "getattr", "(", "resp", ",", "'status'", ",", "None", ")", "# Make headers case-insensitive.", "response", ".", "headers", "=", "CaseInsensitiveDict", "(", "getattr", "(", "resp", ",", "'headers'", ",", "{", "}", ")", ")", "# Set encoding.", "response", ".", "encoding", "=", "get_encoding_from_headers", "(", "response", ".", "headers", ")", "response", ".", "raw", "=", "resp", "response", ".", "reason", "=", "response", ".", "raw", ".", "reason", "if", "isinstance", "(", "req", ".", "url", ",", "bytes", ")", ":", "response", ".", "url", "=", "req", ".", "url", ".", "decode", "(", "'utf-8'", ")", "else", ":", "response", ".", "url", "=", "req", ".", "url", "# Add new cookies from the server.", "extract_cookies_to_jar", "(", "response", ".", "cookies", ",", "req", ",", "resp", ")", "# Give the Response some context.", "response", ".", "request", "=", "req", "response", ".", "connection", "=", "self", "return", "response" ]
Builds a :class:`Response <requests.Response>` object from a urllib3 response. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>` :param req: The :class:`PreparedRequest <PreparedRequest>` used to generate the response. :param resp: The urllib3 response object. :rtype: requests.Response
[ "Builds", "a", ":", "class", ":", "Response", "<requests", ".", "Response", ">", "object", "from", "a", "urllib3", "response", ".", "This", "should", "not", "be", "called", "from", "user", "code", "and", "is", "only", "exposed", "for", "use", "when", "subclassing", "the", ":", "class", ":", "HTTPAdapter", "<requests", ".", "adapters", ".", "HTTPAdapter", ">" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L255-L290
train
Builds a response object from a urllib3 prepared request and response object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX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A97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1010000 + 0o37) + '\063' + '\062' + chr(0b110001 + 0o6), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(9164 - 9053) + '\x32' + chr(0b101 + 0o62) + chr(1152 - 1104), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b11010 + 0o125) + chr(0b11110 + 0o25) + chr(1111 - 1059) + chr(0b100110 + 0o17), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + '\063' + '\x34' + '\x34', 19461 - 19453), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(111) + '\x33' + chr(0b110101) + '\x36', 81 - 73), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(49) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110111), 45557 - 45549), ehT0Px3KOsy9('\060' + '\157' + chr(1268 - 1218) + chr(310 - 257) + '\065', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1956 - 1906) + '\061' + chr(0b110010), 2878 - 2870), ehT0Px3KOsy9('\060' + chr(111) + '\063' + '\x31' + '\062', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101100 + 0o7) + chr(0b1100 + 0o50), 0o10), ehT0Px3KOsy9(chr(48) + chr(4443 - 4332) + chr(1557 - 1508) + '\064' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(111) + '\061' + chr(2446 - 2391) + chr(0b110110), 25907 - 25899), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(53) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b100000 + 0o117) + '\x32' + chr(826 - 778) + chr(650 - 595), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(1740 - 1629) + chr(0b110010) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + chr(51) + chr(0b11001 + 0o34) + chr(0b110110), 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + '\x36', 0o10), ehT0Px3KOsy9(chr(532 - 484) + chr(0b10111 + 0o130) + '\061' + '\061' + chr(0b110001), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110100) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + '\060' + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + '\064' + chr(2224 - 2170), 7332 - 7324), ehT0Px3KOsy9(chr(358 - 310) + '\157' + chr(0b100101 + 0o13), 0b1000), ehT0Px3KOsy9(chr(48) + chr(11000 - 10889) + chr(0b110010) + '\063' + '\x33', 0b1000), ehT0Px3KOsy9(chr(780 - 732) + chr(111) + chr(50) + '\063' + '\064', 0o10), ehT0Px3KOsy9(chr(744 - 696) + '\157' + chr(49) + chr(0b110011) + '\065', 25260 - 25252), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + chr(0b101100 + 0o11) + '\x30', 0o10), ehT0Px3KOsy9(chr(48) + chr(11137 - 11026) + chr(49) + chr(52) + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1803 - 1748) + chr(2026 - 1978), 61765 - 61757), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\066' + chr(0b100010 + 0o17), 57238 - 57230), ehT0Px3KOsy9(chr(1285 - 1237) + chr(0b1101111) + chr(49) + chr(0b101100 + 0o7) + '\x36', 6888 - 6880), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + '\066' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(55) + chr(0b100011 + 0o23), ord("\x08")), ehT0Px3KOsy9(chr(1368 - 1320) + chr(111) + chr(50) + chr(1706 - 1655) + chr(0b100000 + 0o24), 8), ehT0Px3KOsy9(chr(48) + chr(4395 - 4284) + '\062' + chr(0b110100) + chr(52), 59358 - 59350), ehT0Px3KOsy9(chr(2246 - 2198) + '\x6f' + chr(0b110001) + '\066' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1000010 + 0o55) + chr(0b110011) + chr(0b1111 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(2250 - 2202) + chr(111) + '\061' + chr(2512 - 2461) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110011) + chr(0b1010 + 0o52) + chr(0b11000 + 0o31), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\x34' + chr(55), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b100001 + 0o116) + chr(0b110101) + chr(0b10000 + 0o40), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9'), chr(0b11001 + 0o113) + chr(0b101100 + 0o71) + '\x63' + chr(0b10011 + 0o134) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + '\146' + '\x2d' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def fZbDk3MEjS0T(oVre8I6UXc3b, RaJ10cX5BL3G, o76vgcEvX48n): ekFGDFIe9V8v = j091MypGvaM2() ekFGDFIe9V8v.cDwlX6QQ926E = xafqLlk3kkUe(o76vgcEvX48n, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xcc\x84\x90\x9b\xbd'), chr(5236 - 5136) + chr(9476 - 9375) + chr(0b1000010 + 0o41) + chr(111) + chr(0b1011101 + 0o7) + chr(0b1010 + 0o133))(chr(10483 - 10366) + chr(0b1110100) + chr(0b101 + 0o141) + chr(0b1111 + 0o36) + chr(56)), None) ekFGDFIe9V8v.Po1zXXTKc_sm = rplA3J0pUprE(xafqLlk3kkUe(o76vgcEvX48n, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xdd\x84\x80\x8b\xbcd'), chr(4040 - 3940) + chr(8775 - 8674) + chr(99) + '\157' + chr(100) + chr(6367 - 6266))(chr(0b1110101) + chr(0b1011101 + 0o27) + chr(102) + chr(946 - 901) + '\x38'), {})) ekFGDFIe9V8v._pPd9lb_XZ4K = V6s7p0f5TEOy(ekFGDFIe9V8v.Po1zXXTKc_sm) ekFGDFIe9V8v.E5jPYKeS99ZR = o76vgcEvX48n ekFGDFIe9V8v.gq16hg8HHuHx = ekFGDFIe9V8v.raw.gq16hg8HHuHx if PlSM16l2KDPD(xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xca\x89'), chr(2298 - 2198) + chr(101) + '\x63' + chr(111) + '\x64' + chr(1699 - 1598))(chr(0b10 + 0o163) + '\x74' + chr(0b1000001 + 0o45) + chr(45) + chr(0b111000))), QOfmzcVJsrp8): ekFGDFIe9V8v.CYCr3xzMHl4K = RaJ10cX5BL3G.url.decode(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xcc\x83\xc9\xd6'), chr(0b1011100 + 0o10) + chr(0b1100101) + chr(0b100101 + 0o76) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(102) + chr(597 - 552) + chr(56))) else: ekFGDFIe9V8v.CYCr3xzMHl4K = RaJ10cX5BL3G.CYCr3xzMHl4K X6LRC_pojDjt(xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\xd7\x8a\x8f\x87\xabd'), chr(7699 - 7599) + '\x65' + chr(99) + chr(0b110101 + 0o72) + chr(0b1100100) + chr(0b1010001 + 0o24))(chr(0b1101 + 0o150) + chr(0b1110100) + chr(590 - 488) + chr(45) + '\x38')), RaJ10cX5BL3G, o76vgcEvX48n) ekFGDFIe9V8v.r9Xp41HGNpwj = RaJ10cX5BL3G ekFGDFIe9V8v.Ha6IyiejwUXO = oVre8I6UXc3b return ekFGDFIe9V8v
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.get_connection
def get_connection(self, url, proxies=None): """Returns a urllib3 connection for the given URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param url: The URL to connect to. :param proxies: (optional) A Requests-style dictionary of proxies used on this request. :rtype: urllib3.ConnectionPool """ proxy = select_proxy(url, proxies) if proxy: proxy = prepend_scheme_if_needed(proxy, 'http') proxy_url = parse_url(proxy) if not proxy_url.host: raise InvalidProxyURL("Please check proxy URL. It is malformed" " and could be missing the host.") proxy_manager = self.proxy_manager_for(proxy) conn = proxy_manager.connection_from_url(url) else: # Only scheme should be lower case parsed = urlparse(url) url = parsed.geturl() conn = self.poolmanager.connection_from_url(url) return conn
python
def get_connection(self, url, proxies=None): """Returns a urllib3 connection for the given URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param url: The URL to connect to. :param proxies: (optional) A Requests-style dictionary of proxies used on this request. :rtype: urllib3.ConnectionPool """ proxy = select_proxy(url, proxies) if proxy: proxy = prepend_scheme_if_needed(proxy, 'http') proxy_url = parse_url(proxy) if not proxy_url.host: raise InvalidProxyURL("Please check proxy URL. It is malformed" " and could be missing the host.") proxy_manager = self.proxy_manager_for(proxy) conn = proxy_manager.connection_from_url(url) else: # Only scheme should be lower case parsed = urlparse(url) url = parsed.geturl() conn = self.poolmanager.connection_from_url(url) return conn
[ "def", "get_connection", "(", "self", ",", "url", ",", "proxies", "=", "None", ")", ":", "proxy", "=", "select_proxy", "(", "url", ",", "proxies", ")", "if", "proxy", ":", "proxy", "=", "prepend_scheme_if_needed", "(", "proxy", ",", "'http'", ")", "proxy_url", "=", "parse_url", "(", "proxy", ")", "if", "not", "proxy_url", ".", "host", ":", "raise", "InvalidProxyURL", "(", "\"Please check proxy URL. It is malformed\"", "\" and could be missing the host.\"", ")", "proxy_manager", "=", "self", ".", "proxy_manager_for", "(", "proxy", ")", "conn", "=", "proxy_manager", ".", "connection_from_url", "(", "url", ")", "else", ":", "# Only scheme should be lower case", "parsed", "=", "urlparse", "(", "url", ")", "url", "=", "parsed", ".", "geturl", "(", ")", "conn", "=", "self", ".", "poolmanager", ".", "connection_from_url", "(", "url", ")", "return", "conn" ]
Returns a urllib3 connection for the given URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param url: The URL to connect to. :param proxies: (optional) A Requests-style dictionary of proxies used on this request. :rtype: urllib3.ConnectionPool
[ "Returns", "a", "urllib3", "connection", "for", "the", "given", "URL", ".", "This", "should", "not", "be", "called", "from", "user", "code", "and", "is", "only", "exposed", "for", "use", "when", "subclassing", "the", ":", "class", ":", "HTTPAdapter", "<requests", ".", "adapters", ".", "HTTPAdapter", ">", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L292-L317
train
Returns a urllib3 connection for the given URL.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,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xp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(10592 - 10481) + '\x33' + '\x30' + chr(2374 - 2321), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(1196 - 1145) + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b0 + 0o62) + chr(1446 - 1395) + chr(1346 - 1298), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(0b101000 + 0o13), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + chr(0b110001) + chr(0b110000) + chr(223 - 173), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + chr(53) + '\061', 0o10), ehT0Px3KOsy9(chr(151 - 103) + '\x6f' + '\062' + chr(55) + chr(0b110010), 22189 - 22181), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(48) + chr(1602 - 1554), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10358 - 10247) + chr(0b110010) + '\060' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b111000 + 0o67) + chr(0b1111 + 0o43) + chr(49) + '\064', 47926 - 47918), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b101110 + 0o101) + '\064' + chr(49), 0b1000), ehT0Px3KOsy9(chr(1519 - 1471) + chr(111) + chr(49) + chr(0b11001 + 0o32) + chr(0b100010 + 0o23), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + '\x34' + chr(49), 22360 - 22352), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(2340 - 2285) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(93 - 45) + '\157' + chr(0b110101) + '\x31', 55727 - 55719), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(48) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49) + '\061' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + chr(0b11001 + 0o31) + chr(0b10001 + 0o45) + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(12070 - 11959) + chr(53) + chr(2280 - 2231), 8), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(0b10000 + 0o43) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(9853 - 9742) + chr(1054 - 1003) + chr(349 - 295), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(2097 - 2047) + chr(1205 - 1152) + chr(0b11010 + 0o33), 21027 - 21019), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\064' + '\063', 5335 - 5327), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(3588 - 3477) + chr(49) + chr(472 - 423) + chr(0b10111 + 0o36), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(0b110011) + chr(0b110001 + 0o0) + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1000 + 0o52) + chr(51) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(51) + '\x35' + chr(1807 - 1753), 33591 - 33583), ehT0Px3KOsy9(chr(48) + chr(1823 - 1712) + chr(0b110010) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8243 - 8132) + chr(51) + chr(0b100111 + 0o16) + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(595 - 545) + chr(2299 - 2246) + chr(0b1000 + 0o50), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1010111 + 0o30) + chr(257 - 207) + chr(0b11101 + 0o30) + chr(48), 8), ehT0Px3KOsy9(chr(1676 - 1628) + chr(111) + '\x33' + chr(237 - 187) + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(0b1010 + 0o47) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000101 + 0o52) + chr(1813 - 1758) + chr(432 - 383), ord("\x08")), ehT0Px3KOsy9(chr(1263 - 1215) + chr(111) + '\062' + '\x37' + chr(0b110000 + 0o0), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\065' + '\x31', 8), ehT0Px3KOsy9(chr(48) + chr(0b10101 + 0o132) + chr(221 - 169) + chr(464 - 413), 0b1000), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(7054 - 6943) + '\063' + chr(706 - 658) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + '\x30' + chr(1899 - 1847), ord("\x08")), ehT0Px3KOsy9('\060' + chr(10995 - 10884) + chr(2532 - 2477) + chr(0b110001), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b110001 + 0o76) + '\065' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xeb'), '\x64' + chr(101) + chr(99) + chr(6977 - 6866) + '\x64' + chr(101))(chr(0b1011010 + 0o33) + chr(0b1110100) + chr(0b101010 + 0o74) + chr(0b101101) + chr(2391 - 2335)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def pKKHTaT4ui7F(oVre8I6UXc3b, CYCr3xzMHl4K, TTo2eBmxXuR2=None): lfVYtF6OqVrn = WJOeLzmuJbEJ(CYCr3xzMHl4K, TTo2eBmxXuR2) if lfVYtF6OqVrn: lfVYtF6OqVrn = e19Pi_5OiviW(lfVYtF6OqVrn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\xab\xec\xb3'), '\x64' + chr(0b101001 + 0o74) + chr(2488 - 2389) + '\x6f' + chr(0b1001111 + 0o25) + chr(0b11010 + 0o113))(chr(0b1001 + 0o154) + chr(0b1001 + 0o153) + '\146' + '\055' + chr(0b111000))) mNx9rEBXUb6d = MxQLsj1xRqB0(lfVYtF6OqVrn) if not xafqLlk3kkUe(mNx9rEBXUb6d, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\xb0\xeb\xb7'), chr(0b1100100) + chr(0b100111 + 0o76) + chr(0b1100011) + chr(0b1010001 + 0o36) + chr(0b1000001 + 0o43) + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(0b10011 + 0o32) + '\x38')): raise yB82l8oPbw7Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\xb3\xfd\xa21\xcc\x9a\xe3\xea\xe9B6\x81\t[\xee1\xcb\tML\xe1\xcdm\x87\xea\xce|\x9f\x88\xc5\xb3\xa5_\xd7[N\xa2\xe0\x19\xa4\xb1\xfc\xe3!\xc6\xcf\xec\xe6\xacC8\x81\x14@\xf2:\xdbG\x7f>\xd9\x8b(\xee\xf6\x81f\x98\x86'), '\x64' + chr(0b11110 + 0o107) + chr(2874 - 2775) + chr(3988 - 3877) + chr(1044 - 944) + chr(0b111000 + 0o55))('\x75' + chr(8449 - 8333) + chr(0b1100110) + chr(0b11100 + 0o21) + chr(56))) MYNEXo8GAd8n = oVre8I6UXc3b.proxy_manager_for(lfVYtF6OqVrn) npwjCV10gdob = MYNEXo8GAd8n.connection_from_url(CYCr3xzMHl4K) else: QIe124s5EFAg = P8lnsClJdUFG(CYCr3xzMHl4K) CYCr3xzMHl4K = QIe124s5EFAg.geturl() npwjCV10gdob = oVre8I6UXc3b.poolmanager.connection_from_url(CYCr3xzMHl4K) return npwjCV10gdob
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.close
def close(self): """Disposes of any internal state. Currently, this closes the PoolManager and any active ProxyManager, which closes any pooled connections. """ self.poolmanager.clear() for proxy in self.proxy_manager.values(): proxy.clear()
python
def close(self): """Disposes of any internal state. Currently, this closes the PoolManager and any active ProxyManager, which closes any pooled connections. """ self.poolmanager.clear() for proxy in self.proxy_manager.values(): proxy.clear()
[ "def", "close", "(", "self", ")", ":", "self", ".", "poolmanager", ".", "clear", "(", ")", "for", "proxy", "in", "self", ".", "proxy_manager", ".", "values", "(", ")", ":", "proxy", ".", "clear", "(", ")" ]
Disposes of any internal state. Currently, this closes the PoolManager and any active ProxyManager, which closes any pooled connections.
[ "Disposes", "of", "any", "internal", "state", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L319-L327
train
Disposes of any internal state.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrv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vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1100001 + 0o16) + chr(0b110010) + chr(55) + chr(0b110101), 19198 - 19190), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(403 - 354) + chr(2236 - 2187) + chr(48), 29904 - 29896), ehT0Px3KOsy9('\060' + '\157' + chr(518 - 468) + '\066' + '\064', 48156 - 48148), ehT0Px3KOsy9(chr(48) + chr(12200 - 12089) + chr(0b110010) + '\x37' + chr(0b11001 + 0o30), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(54) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1011001 + 0o26) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(4544 - 4433) + '\062' + '\x35' + '\067', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1001 + 0o52) + chr(55) + chr(55), 960 - 952), ehT0Px3KOsy9(chr(121 - 73) + chr(0b1101111) + chr(0b110010) + chr(53) + chr(2162 - 2110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b0 + 0o61) + chr(1768 - 1720) + chr(2699 - 2647), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8253 - 8142) + chr(0b10011 + 0o37) + chr(55) + '\061', 8), ehT0Px3KOsy9(chr(1105 - 1057) + '\x6f' + chr(51) + '\x35' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(283 - 235) + chr(0b10111 + 0o130) + chr(50) + chr(50) + chr(0b110110), 39075 - 39067), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(52) + chr(0b10110 + 0o37), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(0b110100) + '\065', 44641 - 44633), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + chr(0b101011 + 0o10) + chr(0b101100 + 0o5), 0o10), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b11111 + 0o24) + '\067' + chr(384 - 335), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1234 - 1184) + chr(53) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(2775 - 2664) + chr(1742 - 1693) + '\x34' + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100 + 0o143) + chr(0b111 + 0o54) + chr(0b11100 + 0o30) + '\x32', 0b1000), ehT0Px3KOsy9(chr(1449 - 1401) + '\x6f' + chr(1465 - 1414) + '\x36' + '\x30', 0b1000), ehT0Px3KOsy9('\x30' + chr(6355 - 6244) + chr(50) + chr(0b110001) + chr(1065 - 1016), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(1180 - 1130) + '\x33', 63219 - 63211), ehT0Px3KOsy9('\060' + chr(598 - 487) + chr(2018 - 1966) + '\x35', 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10111 + 0o33) + '\065' + chr(50), 37449 - 37441), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(54) + '\x37', 0o10), ehT0Px3KOsy9(chr(205 - 157) + chr(111) + chr(50) + '\061' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + chr(1897 - 1842) + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b11111 + 0o22) + '\x31' + chr(0b110001), 0o10), ehT0Px3KOsy9('\060' + chr(7760 - 7649) + chr(0b101001 + 0o10) + chr(1694 - 1640) + chr(254 - 201), 0o10), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(49) + '\064' + '\063', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\065' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + '\x37', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110101) + chr(0b100 + 0o56), 8), ehT0Px3KOsy9('\x30' + chr(0b1101110 + 0o1) + chr(51) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(2160 - 2109) + chr(0b110000) + chr(0b101011 + 0o6), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100101 + 0o14) + '\x37' + chr(0b110010), 8012 - 8004), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x34' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11100 + 0o27) + chr(55) + '\060', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x93'), '\144' + chr(0b1010000 + 0o25) + '\x63' + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(1316 - 1260)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def MkcqzDT3iB5h(oVre8I6UXc3b): xafqLlk3kkUe(oVre8I6UXc3b.poolmanager, xafqLlk3kkUe(SXOLrMavuUCe(b'\xde$\xd1\xd8@'), chr(0b1100100) + '\x65' + '\143' + chr(9608 - 9497) + chr(3175 - 3075) + chr(0b1100101))('\x75' + chr(6763 - 6647) + '\146' + chr(1785 - 1740) + '\x38'))() for lfVYtF6OqVrn in xafqLlk3kkUe(oVre8I6UXc3b.proxy_manager, xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\x18\xda\xfa|w\x9a\xcb\xe4u\xdd\x8b'), chr(100) + '\145' + chr(0b11111 + 0o104) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1032 - 987) + chr(0b111000)))(): xafqLlk3kkUe(lfVYtF6OqVrn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xde$\xd1\xd8@'), '\x64' + chr(0b1100101) + chr(6653 - 6554) + '\x6f' + chr(3370 - 3270) + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(0b1110100) + '\146' + chr(0b11101 + 0o20) + '\x38'))()
pypa/pipenv
pipenv/vendor/requests/adapters.py
HTTPAdapter.request_url
def request_url(self, request, proxies): """Obtain the url to use when making the final request. If the message is being sent through a HTTP proxy, the full URL has to be used. Otherwise, we should only use the path portion of the URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs. :rtype: str """ proxy = select_proxy(request.url, proxies) scheme = urlparse(request.url).scheme is_proxied_http_request = (proxy and scheme != 'https') using_socks_proxy = False if proxy: proxy_scheme = urlparse(proxy).scheme.lower() using_socks_proxy = proxy_scheme.startswith('socks') url = request.path_url if is_proxied_http_request and not using_socks_proxy: url = urldefragauth(request.url) return url
python
def request_url(self, request, proxies): """Obtain the url to use when making the final request. If the message is being sent through a HTTP proxy, the full URL has to be used. Otherwise, we should only use the path portion of the URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs. :rtype: str """ proxy = select_proxy(request.url, proxies) scheme = urlparse(request.url).scheme is_proxied_http_request = (proxy and scheme != 'https') using_socks_proxy = False if proxy: proxy_scheme = urlparse(proxy).scheme.lower() using_socks_proxy = proxy_scheme.startswith('socks') url = request.path_url if is_proxied_http_request and not using_socks_proxy: url = urldefragauth(request.url) return url
[ "def", "request_url", "(", "self", ",", "request", ",", "proxies", ")", ":", "proxy", "=", "select_proxy", "(", "request", ".", "url", ",", "proxies", ")", "scheme", "=", "urlparse", "(", "request", ".", "url", ")", ".", "scheme", "is_proxied_http_request", "=", "(", "proxy", "and", "scheme", "!=", "'https'", ")", "using_socks_proxy", "=", "False", "if", "proxy", ":", "proxy_scheme", "=", "urlparse", "(", "proxy", ")", ".", "scheme", ".", "lower", "(", ")", "using_socks_proxy", "=", "proxy_scheme", ".", "startswith", "(", "'socks'", ")", "url", "=", "request", ".", "path_url", "if", "is_proxied_http_request", "and", "not", "using_socks_proxy", ":", "url", "=", "urldefragauth", "(", "request", ".", "url", ")", "return", "url" ]
Obtain the url to use when making the final request. If the message is being sent through a HTTP proxy, the full URL has to be used. Otherwise, we should only use the path portion of the URL. This should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs. :rtype: str
[ "Obtain", "the", "url", "to", "use", "when", "making", "the", "final", "request", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requests/adapters.py#L329-L356
train
Obtain the url to use when making the final request.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9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0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + '\067' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10001 + 0o46) + chr(1827 - 1775), 0b1000), ehT0Px3KOsy9(chr(1340 - 1292) + chr(0b1101111) + '\067' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b0 + 0o157) + chr(0b11011 + 0o27) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + chr(10899 - 10788) + '\x33' + chr(0b10110 + 0o40) + chr(0b100011 + 0o15), 0b1000), ehT0Px3KOsy9(chr(462 - 414) + chr(9628 - 9517) + chr(1116 - 1067) + '\x35' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(1751 - 1703) + chr(0b1101111) + '\061' + '\067' + '\x34', 0o10), ehT0Px3KOsy9(chr(2125 - 2077) + chr(2144 - 2033) + chr(2552 - 2500) + chr(418 - 363), 12629 - 12621), ehT0Px3KOsy9(chr(0b110000) + chr(0b101 + 0o152) + '\062' + chr(0b110011) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + chr(4223 - 4112) + chr(0b110010) + chr(0b1111 + 0o44) + chr(51), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b1 + 0o66) + chr(471 - 417), 0b1000), ehT0Px3KOsy9(chr(48) + chr(6799 - 6688) + '\x31' + chr(1623 - 1571) + chr(2449 - 2396), ord("\x08")), ehT0Px3KOsy9(chr(102 - 54) + '\x6f' + '\x33' + chr(51) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\x6f' + chr(0b110011) + chr(53) + chr(0b1001 + 0o54), 49197 - 49189), ehT0Px3KOsy9('\060' + chr(111) + '\067' + chr(1344 - 1290), 32719 - 32711), ehT0Px3KOsy9('\x30' + chr(0b10000 + 0o137) + chr(49) + '\067' + chr(694 - 642), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(52) + chr(0b11 + 0o56), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(49) + chr(53), 27981 - 27973), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\x30' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1345 - 1295) + '\x32' + chr(2102 - 2049), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b11100 + 0o27) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(276 - 228) + '\x6f' + chr(1270 - 1219) + chr(0b11000 + 0o37) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(51), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\x36' + chr(0b10100 + 0o41), 40128 - 40120), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + chr(55) + '\x33', 20035 - 20027), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101011 + 0o10) + '\x35' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + '\062', 40883 - 40875), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(0b10100 + 0o43) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(9406 - 9295) + chr(736 - 686) + chr(0b110110) + chr(2769 - 2714), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110000 + 0o1) + chr(50) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b1000 + 0o54), 57417 - 57409), ehT0Px3KOsy9('\060' + chr(1500 - 1389) + '\061' + chr(0b110101) + chr(0b101 + 0o54), ord("\x08")), ehT0Px3KOsy9(chr(1719 - 1671) + '\157' + chr(411 - 356) + '\x36', 8), ehT0Px3KOsy9('\x30' + '\157' + '\061' + '\x34' + chr(0b111 + 0o55), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(9440 - 9329) + chr(1367 - 1318) + chr(0b101011 + 0o7) + chr(53), 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(0b101010 + 0o15), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110111) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b110101 + 0o72) + chr(54) + chr(1682 - 1633), ord("\x08")), ehT0Px3KOsy9(chr(471 - 423) + chr(8050 - 7939) + '\063' + '\x37' + chr(2044 - 1993), 8), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b101110 + 0o4) + '\x30' + chr(52), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(4850 - 4739) + '\x35' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x92'), chr(9463 - 9363) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(102) + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def lGW02pI4ogAX(oVre8I6UXc3b, r9Xp41HGNpwj, TTo2eBmxXuR2): lfVYtF6OqVrn = WJOeLzmuJbEJ(r9Xp41HGNpwj.CYCr3xzMHl4K, TTo2eBmxXuR2) nh0h0JN0W0q6 = P8lnsClJdUFG(r9Xp41HGNpwj.url).scheme fGOjkImVE9st = lfVYtF6OqVrn and nh0h0JN0W0q6 != xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4HL`\x83'), '\144' + '\145' + chr(0b1000000 + 0o43) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1000111 + 0o37) + '\055' + chr(56)) emcPrXndGYHn = ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(48), 0o10) if lfVYtF6OqVrn: b9Y7dDUpHZIJ = P8lnsClJdUFG(lfVYtF6OqVrn).scheme.lower() emcPrXndGYHn = b9Y7dDUpHZIJ.startswith(xafqLlk3kkUe(SXOLrMavuUCe(b'\xcfS[{\x83'), '\144' + '\145' + chr(0b101 + 0o136) + chr(0b11001 + 0o126) + chr(0b1011100 + 0o10) + '\x65')(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b11011 + 0o35))) CYCr3xzMHl4K = r9Xp41HGNpwj.path_url if fGOjkImVE9st and (not emcPrXndGYHn): CYCr3xzMHl4K = S_GUwZyOHgFd(r9Xp41HGNpwj.CYCr3xzMHl4K) return CYCr3xzMHl4K
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
strip_ssh_from_git_uri
def strip_ssh_from_git_uri(uri): # type: (S) -> S """Return git+ssh:// formatted URI to git+git@ format""" if isinstance(uri, six.string_types): if "git+ssh://" in uri: parsed = urlparse(uri) # split the path on the first separating / so we can put the first segment # into the 'netloc' section with a : separator path_part, _, path = parsed.path.lstrip("/").partition("/") path = "/{0}".format(path) parsed = parsed._replace( netloc="{0}:{1}".format(parsed.netloc, path_part), path=path ) uri = urlunparse(parsed).replace("git+ssh://", "git+", 1) return uri
python
def strip_ssh_from_git_uri(uri): # type: (S) -> S """Return git+ssh:// formatted URI to git+git@ format""" if isinstance(uri, six.string_types): if "git+ssh://" in uri: parsed = urlparse(uri) # split the path on the first separating / so we can put the first segment # into the 'netloc' section with a : separator path_part, _, path = parsed.path.lstrip("/").partition("/") path = "/{0}".format(path) parsed = parsed._replace( netloc="{0}:{1}".format(parsed.netloc, path_part), path=path ) uri = urlunparse(parsed).replace("git+ssh://", "git+", 1) return uri
[ "def", "strip_ssh_from_git_uri", "(", "uri", ")", ":", "# type: (S) -> S", "if", "isinstance", "(", "uri", ",", "six", ".", "string_types", ")", ":", "if", "\"git+ssh://\"", "in", "uri", ":", "parsed", "=", "urlparse", "(", "uri", ")", "# split the path on the first separating / so we can put the first segment", "# into the 'netloc' section with a : separator", "path_part", ",", "_", ",", "path", "=", "parsed", ".", "path", ".", "lstrip", "(", "\"/\"", ")", ".", "partition", "(", "\"/\"", ")", "path", "=", "\"/{0}\"", ".", "format", "(", "path", ")", "parsed", "=", "parsed", ".", "_replace", "(", "netloc", "=", "\"{0}:{1}\"", ".", "format", "(", "parsed", ".", "netloc", ",", "path_part", ")", ",", "path", "=", "path", ")", "uri", "=", "urlunparse", "(", "parsed", ")", ".", "replace", "(", "\"git+ssh://\"", ",", "\"git+\"", ",", "1", ")", "return", "uri" ]
Return git+ssh:// formatted URI to git+git@ format
[ "Return", "git", "+", "ssh", ":", "//", "formatted", "URI", "to", "git", "+", "git" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L116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eSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b110011) + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(761 - 712) + '\060' + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110000 + 0o2) + chr(0b110100) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001111 + 0o40) + chr(1360 - 1310) + '\x35' + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101111 + 0o100) + '\067', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(1811 - 1759) + chr(0b10101 + 0o41), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(1890 - 1840) + chr(0b110000) + chr(0b100001 + 0o26), 0o10), ehT0Px3KOsy9(chr(1506 - 1458) + chr(0b1101111) + '\063' + '\x31' + chr(0b110011), 17359 - 17351), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b111101 + 0o62) + chr(54) + '\066', 42283 - 42275), ehT0Px3KOsy9(chr(1338 - 1290) + chr(0b1101111) + chr(0b111 + 0o53) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(1340 - 1292) + chr(0b1000 + 0o147) + '\x32' + chr(0b10110 + 0o40) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(1893 - 1843) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(11271 - 11160) + chr(0b10 + 0o60) + chr(0b100001 + 0o24) + chr(1427 - 1378), 25008 - 25000), ehT0Px3KOsy9('\x30' + '\157' + chr(1213 - 1161), 9361 - 9353), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(111) + chr(0b110011) + chr(0b101000 + 0o10) + chr(0b100000 + 0o22), 3115 - 3107), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + chr(844 - 796) + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(50) + '\x37', 0b1000), ehT0Px3KOsy9('\060' + chr(8110 - 7999) + '\x33' + chr(48) + chr(1622 - 1568), 43526 - 43518), ehT0Px3KOsy9('\x30' + chr(4610 - 4499) + '\061' + '\066' + chr(1156 - 1103), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(0b110111) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(88 - 36) + chr(0b1 + 0o64), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b110111 + 0o70) + chr(0b100000 + 0o22) + '\061' + chr(593 - 541), 15935 - 15927), ehT0Px3KOsy9(chr(654 - 606) + '\x6f' + chr(49) + '\x32' + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(11950 - 11839) + chr(0b110001) + chr(0b110010) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101100 + 0o3) + chr(49) + '\062' + chr(0b10000 + 0o45), 1716 - 1708), ehT0Px3KOsy9(chr(67 - 19) + chr(111) + '\x32' + chr(0b11110 + 0o22) + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b110011 + 0o74) + chr(51) + chr(48) + '\x36', 8), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1 + 0o156) + chr(0b110010) + chr(50) + chr(0b11110 + 0o31), 0o10), ehT0Px3KOsy9(chr(859 - 811) + chr(111) + chr(51) + '\x32' + chr(0b110100), 8), ehT0Px3KOsy9('\x30' + chr(0b100001 + 0o116) + chr(410 - 361) + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + chr(356 - 245) + '\062' + chr(53) + chr(0b10001 + 0o45), 0o10), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + chr(51) + '\x37' + chr(48), 0b1000), ehT0Px3KOsy9(chr(50 - 2) + '\x6f' + chr(0b110001) + chr(1266 - 1215) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + '\x32' + '\x37', 8), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b111001 + 0o66) + chr(0b110010) + chr(0b110111) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(1488 - 1440) + chr(111) + '\x32' + '\062' + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\157' + chr(51) + chr(52) + '\x34', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1010 + 0o50) + chr(52), 0b1000), ehT0Px3KOsy9(chr(1593 - 1545) + chr(10101 - 9990) + chr(0b100011 + 0o20) + chr(238 - 183) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(6669 - 6558) + chr(0b110010) + '\065' + chr(49), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1001000 + 0o47) + chr(1166 - 1113) + chr(1157 - 1109), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4'), chr(7443 - 7343) + chr(0b111011 + 0o52) + chr(0b1100011) + '\157' + chr(0b110110 + 0o56) + chr(0b1000100 + 0o41))('\x75' + '\164' + chr(9469 - 9367) + chr(0b101101) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def tYibqGGHixN7(jFJCWjIi12ys): if PlSM16l2KDPD(jFJCWjIi12ys, xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa92\xd1\xc4i\x01\xd8\xbfOg\xd0\xa7'), chr(0b1010101 + 0o17) + '\145' + chr(1509 - 1410) + chr(10444 - 10333) + '\x64' + chr(9615 - 9514))(chr(0b1010100 + 0o41) + chr(5155 - 5039) + chr(102) + chr(1960 - 1915) + chr(1274 - 1218)))): if xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd/\xd7\x86t\x15\xef\xf1\x198'), '\x64' + '\145' + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1001000 + 0o55) + chr(0b1011011 + 0o31) + chr(0b1100110) + '\055' + '\070') in jFJCWjIi12ys: QIe124s5EFAg = P8lnsClJdUFG(jFJCWjIi12ys) (znm8NX5ilKd_, VNGQdHSFPrso, EaCjyhZptSer) = QIe124s5EFAg.path.lstrip(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf5'), chr(0b1001101 + 0o27) + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(0b1000100 + 0o61) + chr(11301 - 11185) + '\x66' + '\055' + chr(0b111000))).partition(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf5'), '\144' + chr(4918 - 4817) + chr(99) + chr(0b1100010 + 0o15) + chr(1708 - 1608) + chr(5916 - 5815))('\x75' + '\x74' + chr(2178 - 2076) + chr(1911 - 1866) + chr(0b111000))) EaCjyhZptSer = xafqLlk3kkUe(SXOLrMavuUCe(b'\xf5=\x93\xd0'), chr(122 - 22) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(2265 - 2164))(chr(1571 - 1454) + chr(0b1110100) + chr(102) + chr(1610 - 1565) + chr(56)).V4roHaS3Ppej(EaCjyhZptSer) QIe124s5EFAg = QIe124s5EFAg._replace(netloc=xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1v\xde\x97|W\xfa'), '\144' + chr(8451 - 8350) + chr(6008 - 5909) + chr(1062 - 951) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b101010 + 0o112) + '\x66' + chr(45) + '\070').V4roHaS3Ppej(QIe124s5EFAg.netloc, znm8NX5ilKd_), path=EaCjyhZptSer) jFJCWjIi12ys = NBJ4g5uiZ6vY(QIe124s5EFAg).replace(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd/\xd7\x86t\x15\xef\xf1\x198'), '\144' + chr(0b1001010 + 0o33) + '\x63' + '\157' + chr(100) + chr(0b1100000 + 0o5))(chr(0b1110101) + chr(0b1011001 + 0o33) + '\146' + chr(693 - 648) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd/\xd7\x86'), '\x64' + chr(2423 - 2322) + chr(1696 - 1597) + chr(11151 - 11040) + '\x64' + chr(101))(chr(117) + chr(534 - 418) + chr(7698 - 7596) + chr(0b101101 + 0o0) + '\070'), ehT0Px3KOsy9('\x30' + '\157' + chr(49), ord("\x08"))) return jFJCWjIi12ys
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
add_ssh_scheme_to_git_uri
def add_ssh_scheme_to_git_uri(uri): # type: (S) -> S """Cleans VCS uris from pipenv.patched.notpip format""" if isinstance(uri, six.string_types): # Add scheme for parsing purposes, this is also what pip does if uri.startswith("git+") and "://" not in uri: uri = uri.replace("git+", "git+ssh://", 1) parsed = urlparse(uri) if ":" in parsed.netloc: netloc, _, path_start = parsed.netloc.rpartition(":") path = "/{0}{1}".format(path_start, parsed.path) uri = urlunparse(parsed._replace(netloc=netloc, path=path)) return uri
python
def add_ssh_scheme_to_git_uri(uri): # type: (S) -> S """Cleans VCS uris from pipenv.patched.notpip format""" if isinstance(uri, six.string_types): # Add scheme for parsing purposes, this is also what pip does if uri.startswith("git+") and "://" not in uri: uri = uri.replace("git+", "git+ssh://", 1) parsed = urlparse(uri) if ":" in parsed.netloc: netloc, _, path_start = parsed.netloc.rpartition(":") path = "/{0}{1}".format(path_start, parsed.path) uri = urlunparse(parsed._replace(netloc=netloc, path=path)) return uri
[ "def", "add_ssh_scheme_to_git_uri", "(", "uri", ")", ":", "# type: (S) -> S", "if", "isinstance", "(", "uri", ",", "six", ".", "string_types", ")", ":", "# Add scheme for parsing purposes, this is also what pip does", "if", "uri", ".", "startswith", "(", "\"git+\"", ")", "and", "\"://\"", "not", "in", "uri", ":", "uri", "=", "uri", ".", "replace", "(", "\"git+\"", ",", "\"git+ssh://\"", ",", "1", ")", "parsed", "=", "urlparse", "(", "uri", ")", "if", "\":\"", "in", "parsed", ".", "netloc", ":", "netloc", ",", "_", ",", "path_start", "=", "parsed", ".", "netloc", ".", "rpartition", "(", "\":\"", ")", "path", "=", "\"/{0}{1}\"", ".", "format", "(", "path_start", ",", "parsed", ".", "path", ")", "uri", "=", "urlunparse", "(", "parsed", ".", "_replace", "(", "netloc", "=", "netloc", ",", "path", "=", "path", ")", ")", "return", "uri" ]
Cleans VCS uris from pipenv.patched.notpip format
[ "Cleans", "VCS", "uris", "from", "pipenv", ".", "patched", ".", "notpip", "format" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L133-L145
train
Cleans VCS uris from pipenv. patched. notpip format
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2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wkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100 + 0o56) + chr(55) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + '\063' + chr(1871 - 1819) + chr(48), 0b1000), ehT0Px3KOsy9('\060' + chr(1856 - 1745) + chr(1000 - 951) + chr(0b110000) + '\x34', 9645 - 9637), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\065' + '\x34', 58914 - 58906), ehT0Px3KOsy9(chr(48) + chr(1257 - 1146) + '\063' + chr(54) + chr(0b10110 + 0o37), 23932 - 23924), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b1101011 + 0o4) + chr(1131 - 1080) + chr(0b1001 + 0o52) + chr(53), 18173 - 18165), ehT0Px3KOsy9(chr(0b1101 + 0o43) + '\x6f' + chr(1503 - 1449) + chr(49), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1391 - 1339) + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1111 + 0o140) + chr(2209 - 2159) + chr(51) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001 + 0o146) + chr(0b100111 + 0o13) + chr(0b110001) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b11111 + 0o120) + chr(0b110001) + '\x36' + '\x30', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(449 - 399) + chr(0b111 + 0o55) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(596 - 548) + chr(111) + '\x33' + '\x33' + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b11100 + 0o123) + chr(0b1111 + 0o42) + '\x34' + '\060', 37294 - 37286), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(4745 - 4634) + chr(0b100110 + 0o13) + '\x35' + '\x35', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10001 + 0o43) + chr(124 - 74), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + '\x36', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b1010 + 0o47) + '\061' + '\x33', 31306 - 31298), ehT0Px3KOsy9('\060' + '\157' + chr(1520 - 1470) + chr(818 - 770) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1977 - 1928) + chr(0b110110) + chr(48), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1532 - 1483) + '\x36' + chr(0b10010 + 0o36), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b110010) + '\x37', 49330 - 49322), ehT0Px3KOsy9(chr(0b110000) + chr(4163 - 4052) + chr(0b10010 + 0o37) + chr(839 - 788), 25622 - 25614), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b100000 + 0o20) + '\066', 11747 - 11739), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100111 + 0o13) + chr(50) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(0b101110 + 0o10) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + chr(7484 - 7373) + chr(1903 - 1848) + chr(0b110101), 0o10), ehT0Px3KOsy9('\060' + chr(0b1011000 + 0o27) + chr(0b100110 + 0o15) + chr(0b1001 + 0o51) + chr(2945 - 2890), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2111 - 2059) + chr(0b111 + 0o51), 48301 - 48293), ehT0Px3KOsy9(chr(48) + chr(0b11 + 0o154) + chr(0b110010) + '\x34' + '\060', 46580 - 46572), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + '\060' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b11101 + 0o122) + chr(0b110010) + chr(54) + '\060', 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + '\063' + chr(0b110001) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(2311 - 2262) + chr(999 - 950) + '\x36', 1452 - 1444), ehT0Px3KOsy9(chr(48) + chr(111) + chr(151 - 102) + '\066' + chr(1102 - 1053), 0o10), ehT0Px3KOsy9('\060' + chr(7471 - 7360) + chr(0b100100 + 0o17) + chr(49) + chr(50), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(2009 - 1958) + chr(2644 - 2591) + '\064', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b11101 + 0o122) + chr(0b101110 + 0o4) + chr(0b110011) + chr(55), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100110 + 0o11) + chr(1388 - 1337) + '\067' + chr(51), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1010000 + 0o37) + chr(53) + chr(48), 875 - 867)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x93'), chr(0b1011001 + 0o13) + '\x65' + '\143' + '\157' + chr(100) + chr(8405 - 8304))('\x75' + chr(0b1110100) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def i08IIWCtgsa0(jFJCWjIi12ys): if PlSM16l2KDPD(jFJCWjIi12ys, xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\x946E\x9b\xbanP\xe6\xfd\x15\xd7'), chr(0b1000010 + 0o42) + '\145' + chr(0b1100011) + '\157' + chr(9668 - 9568) + '\x65')(chr(117) + '\164' + '\146' + chr(0b101101) + chr(0b111000)))): if xafqLlk3kkUe(jFJCWjIi12ys, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\x94%^\x81\xaeFM\xeb\xe5'), '\144' + chr(101) + chr(99) + chr(2331 - 2220) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\146' + '\055' + chr(3059 - 3003)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xda\x890\x07'), chr(9945 - 9845) + chr(10131 - 10030) + '\x63' + chr(6568 - 6457) + chr(0b1100100) + '\x65')(chr(0b1001 + 0o154) + '\164' + chr(0b11 + 0o143) + chr(348 - 303) + chr(0b111000))) and xafqLlk3kkUe(SXOLrMavuUCe(b'\x87\xcfk'), chr(0b1000011 + 0o41) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(3136 - 3035))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b110 + 0o47) + chr(0b101000 + 0o20)) not in jFJCWjIi12ys: jFJCWjIi12ys = jFJCWjIi12ys.replace(xafqLlk3kkUe(SXOLrMavuUCe(b'\xda\x890\x07'), '\x64' + '\x65' + chr(0b1100010 + 0o1) + chr(111) + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(76 - 31) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xda\x890\x07\x86\xaeY\x1e\xb0\xa2'), chr(100) + chr(0b111000 + 0o55) + chr(9140 - 9041) + chr(7556 - 7445) + chr(0b1100100) + '\145')(chr(8352 - 8235) + chr(0b101001 + 0o113) + chr(0b111100 + 0o52) + chr(970 - 925) + chr(0b1101 + 0o53)), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10101 + 0o34), ord("\x08"))) QIe124s5EFAg = P8lnsClJdUFG(jFJCWjIi12ys) if xafqLlk3kkUe(SXOLrMavuUCe(b'\x87'), chr(0b111011 + 0o51) + chr(7551 - 7450) + chr(99) + '\157' + chr(7390 - 7290) + chr(0b1100101))(chr(3233 - 3116) + chr(2546 - 2430) + chr(102) + chr(0b101101) + '\070') in xafqLlk3kkUe(QIe124s5EFAg, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3\x850@\x9a\xbe'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(664 - 564) + chr(0b1100101))('\x75' + '\x74' + chr(4480 - 4378) + '\055' + chr(0b10111 + 0o41))): (HACUjGtEjLIN, VNGQdHSFPrso, grBNTbalQdap) = QIe124s5EFAg.netloc.rpartition(xafqLlk3kkUe(SXOLrMavuUCe(b'\x87'), chr(100) + chr(0b11 + 0o142) + '\143' + '\x6f' + chr(0b1001101 + 0o27) + chr(101))(chr(117) + chr(0b1000011 + 0o61) + chr(0b1100110) + chr(45) + '\x38')) EaCjyhZptSer = xafqLlk3kkUe(SXOLrMavuUCe(b'\x92\x9btQ\x8e\xecL'), chr(6724 - 6624) + '\x65' + chr(99) + chr(111) + '\144' + chr(101))(chr(0b11010 + 0o133) + chr(11583 - 11467) + chr(102) + '\x2d' + chr(1552 - 1496)).V4roHaS3Ppej(grBNTbalQdap, QIe124s5EFAg.EaCjyhZptSer) jFJCWjIi12ys = NBJ4g5uiZ6vY(QIe124s5EFAg._replace(netloc=HACUjGtEjLIN, path=EaCjyhZptSer)) return jFJCWjIi12ys
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
is_vcs
def is_vcs(pipfile_entry): # type: (PipfileType) -> bool """Determine if dictionary entry from Pipfile is for a vcs dependency.""" if isinstance(pipfile_entry, Mapping): return any(key for key in pipfile_entry.keys() if key in VCS_LIST) elif isinstance(pipfile_entry, six.string_types): if not is_valid_url(pipfile_entry) and pipfile_entry.startswith("git+"): pipfile_entry = add_ssh_scheme_to_git_uri(pipfile_entry) parsed_entry = urlsplit(pipfile_entry) return parsed_entry.scheme in VCS_SCHEMES return False
python
def is_vcs(pipfile_entry): # type: (PipfileType) -> bool """Determine if dictionary entry from Pipfile is for a vcs dependency.""" if isinstance(pipfile_entry, Mapping): return any(key for key in pipfile_entry.keys() if key in VCS_LIST) elif isinstance(pipfile_entry, six.string_types): if not is_valid_url(pipfile_entry) and pipfile_entry.startswith("git+"): pipfile_entry = add_ssh_scheme_to_git_uri(pipfile_entry) parsed_entry = urlsplit(pipfile_entry) return parsed_entry.scheme in VCS_SCHEMES return False
[ "def", "is_vcs", "(", "pipfile_entry", ")", ":", "# type: (PipfileType) -> bool", "if", "isinstance", "(", "pipfile_entry", ",", "Mapping", ")", ":", "return", "any", "(", "key", "for", "key", "in", "pipfile_entry", ".", "keys", "(", ")", "if", "key", "in", "VCS_LIST", ")", "elif", "isinstance", "(", "pipfile_entry", ",", "six", ".", "string_types", ")", ":", "if", "not", "is_valid_url", "(", "pipfile_entry", ")", "and", "pipfile_entry", ".", "startswith", "(", "\"git+\"", ")", ":", "pipfile_entry", "=", "add_ssh_scheme_to_git_uri", "(", "pipfile_entry", ")", "parsed_entry", "=", "urlsplit", "(", "pipfile_entry", ")", "return", "parsed_entry", ".", "scheme", "in", "VCS_SCHEMES", "return", "False" ]
Determine if dictionary entry from Pipfile is for a vcs dependency.
[ "Determine", "if", "dictionary", "entry", "from", "Pipfile", "is", "for", "a", "vcs", "dependency", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L148-L160
train
Determine if Pipfile entry is for a vcs dependency.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYv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fmzcVJsrp8,tzcpInYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(51) + chr(49) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(942 - 892) + chr(0b100011 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + chr(0b1101 + 0o50) + chr(0b11100 + 0o25), 16423 - 16415), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(0b110001) + chr(0b110111) + chr(551 - 497), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(2203 - 2154) + '\066', 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\x6f' + chr(50) + chr(0b110001) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(453 - 405) + chr(0b1001 + 0o146) + '\061' + chr(0b11110 + 0o30) + chr(49), 0b1000), ehT0Px3KOsy9(chr(2287 - 2239) + chr(0b10000 + 0o137) + '\067' + chr(51), 0o10), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(3659 - 3548) + chr(0b101101 + 0o6) + chr(54) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110100) + chr(1506 - 1455), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010110 + 0o31) + '\x33' + '\066' + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(52) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(6219 - 6108) + chr(0b110 + 0o53) + chr(0b110010) + chr(904 - 856), ord("\x08")), ehT0Px3KOsy9(chr(1593 - 1545) + '\157' + chr(50) + chr(51) + chr(0b10011 + 0o44), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b111 + 0o150) + '\063' + chr(54) + chr(0b0 + 0o62), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + '\065' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + '\064' + '\x32', 0b1000), ehT0Px3KOsy9(chr(1778 - 1730) + chr(0b1101111) + chr(0b10101 + 0o34) + chr(1430 - 1375) + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x33' + '\066' + chr(51), 10961 - 10953), ehT0Px3KOsy9('\060' + '\x6f' + chr(639 - 590) + chr(797 - 746) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b10001 + 0o40) + chr(54) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100110 + 0o111) + chr(0b101101 + 0o6) + chr(1696 - 1646) + '\060', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(5496 - 5385) + '\x34' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + '\x31' + '\x33' + '\x35', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(51) + '\x35', 8), ehT0Px3KOsy9(chr(1537 - 1489) + '\157' + chr(0b10011 + 0o42) + chr(390 - 341), 63929 - 63921), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101100 + 0o3) + '\x31' + chr(0b10011 + 0o37) + chr(0b1110 + 0o47), ord("\x08")), ehT0Px3KOsy9('\060' + chr(4350 - 4239) + chr(0b1010 + 0o47) + chr(49) + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10000 + 0o41), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100010 + 0o15) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(111) + chr(0b100000 + 0o22) + chr(0b100111 + 0o16) + chr(159 - 111), 0o10), ehT0Px3KOsy9(chr(1123 - 1075) + chr(111) + chr(1844 - 1795) + chr(0b101101 + 0o5) + '\065', 8), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1000000 + 0o57) + chr(0b100011 + 0o17) + chr(55 - 6) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5677 - 5566) + chr(0b110010) + '\064' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001 + 0o1) + chr(0b110101) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1101111) + chr(51) + chr(0b1011 + 0o51), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(48) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(5013 - 4902) + chr(51) + '\x30' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + chr(0b11001 + 0o30) + '\063', 0b1000), ehT0Px3KOsy9(chr(1251 - 1203) + '\157' + chr(0b1111 + 0o42) + chr(52), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b1000101 + 0o52) + '\x35' + chr(267 - 219), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2'), chr(0b100000 + 0o104) + chr(0b1100101) + chr(99) + chr(1721 - 1610) + chr(0b1011000 + 0o14) + chr(101))(chr(0b1110101) + chr(10827 - 10711) + '\x66' + chr(45) + chr(0b101 + 0o63)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def DuGaOAHbtwnC(JUL9X_rLMygP): if PlSM16l2KDPD(JUL9X_rLMygP, PWiT5YHe31y6): return UVSi4XW7eBIM((K3J4ZwSlE0sT for K3J4ZwSlE0sT in xafqLlk3kkUe(JUL9X_rLMygP, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa76\x90\r'), '\x64' + '\145' + '\143' + chr(111) + chr(0b1100100) + chr(748 - 647))(chr(1718 - 1601) + chr(3280 - 3164) + chr(0b11001 + 0o115) + chr(1674 - 1629) + chr(0b100001 + 0o27)))() if K3J4ZwSlE0sT in nAdVgKzWUIMN)) elif PlSM16l2KDPD(JUL9X_rLMygP, xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b"\xbf'\x9b\x17\xa0\xe9.O\x89S\x90\x15"), chr(0b100011 + 0o101) + chr(0b111100 + 0o51) + '\x63' + chr(111) + '\x64' + chr(0b110011 + 0o62))(chr(0b1110101) + chr(10605 - 10489) + '\146' + '\x2d' + chr(0b110 + 0o62)))): if not pmeeQkNrw7DC(JUL9X_rLMygP) and xafqLlk3kkUe(JUL9X_rLMygP, xafqLlk3kkUe(SXOLrMavuUCe(b"\xbf'\x88\x0c\xba\xfd\x06R\x84K"), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(100) + '\x65')('\165' + '\x74' + chr(0b101 + 0o141) + '\055' + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xab:\x9dU'), '\144' + '\x65' + chr(0b101101 + 0o66) + '\x6f' + '\x64' + chr(101))(chr(117) + '\164' + chr(0b100101 + 0o101) + '\x2d' + chr(56))): JUL9X_rLMygP = i08IIWCtgsa0(JUL9X_rLMygP) YBJHAqd6Mh__ = PmYowzd2EHzv(JUL9X_rLMygP) return xafqLlk3kkUe(YBJHAqd6Mh__, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf0\x81\x1b\xa3\xeb'), chr(100) + chr(101) + chr(7359 - 7260) + chr(0b1101111) + chr(8387 - 8287) + chr(0b1011010 + 0o13))(chr(0b1110101) + '\164' + '\146' + chr(712 - 667) + chr(0b111000))) in RScIiOyer3C7 return ehT0Px3KOsy9(chr(663 - 615) + chr(0b1101111) + '\x30', 8)
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
multi_split
def multi_split(s, split): # type: (S, Iterable[S]) -> List[S] """Splits on multiple given separators.""" for r in split: s = s.replace(r, "|") return [i for i in s.split("|") if len(i) > 0]
python
def multi_split(s, split): # type: (S, Iterable[S]) -> List[S] """Splits on multiple given separators.""" for r in split: s = s.replace(r, "|") return [i for i in s.split("|") if len(i) > 0]
[ "def", "multi_split", "(", "s", ",", "split", ")", ":", "# type: (S, Iterable[S]) -> List[S]", "for", "r", "in", "split", ":", "s", "=", "s", ".", "replace", "(", "r", ",", "\"|\"", ")", "return", "[", "i", "for", "i", "in", "s", ".", "split", "(", "\"|\"", ")", "if", "len", "(", "i", ")", ">", "0", "]" ]
Splits on multiple given separators.
[ "Splits", "on", "multiple", "given", "separators", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L172-L177
train
Splits on multiple given separators.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh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qIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + chr(54) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + '\x33' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(1797 - 1749) + '\x6f' + chr(920 - 871) + '\066' + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(0b0 + 0o157) + '\067' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\x6f' + '\061' + '\x33' + chr(49), 26166 - 26158), ehT0Px3KOsy9(chr(1806 - 1758) + '\157' + '\x32' + '\x36' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b101010 + 0o7) + chr(53) + chr(0b1000 + 0o50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b11000 + 0o33) + chr(0b1001 + 0o47) + chr(0b1101 + 0o44), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + '\061' + chr(51), 53906 - 53898), ehT0Px3KOsy9(chr(48) + chr(421 - 310) + chr(51) + '\061' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(11213 - 11102) + chr(0b110001 + 0o1) + '\064' + '\063', 17394 - 17386), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + chr(1237 - 1186) + chr(0b10100 + 0o34) + '\067', 53893 - 53885), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(192 - 138) + chr(544 - 493), 0o10), ehT0Px3KOsy9(chr(48) + chr(8076 - 7965) + chr(1108 - 1058) + '\061', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + '\061' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\062', 0o10), ehT0Px3KOsy9(chr(1307 - 1259) + chr(0b1101111) + chr(50) + chr(0b110011) + chr(0b110000 + 0o0), 43899 - 43891), ehT0Px3KOsy9(chr(2175 - 2127) + chr(111) + chr(0b110011) + chr(667 - 612) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1024 - 975) + chr(0b100101 + 0o20) + chr(0b110000 + 0o4), 3200 - 3192), ehT0Px3KOsy9(chr(48) + chr(4614 - 4503) + '\x32' + chr(54) + chr(0b11110 + 0o24), 0b1000), ehT0Px3KOsy9(chr(868 - 820) + chr(111) + chr(0b101010 + 0o7) + chr(0b101011 + 0o6) + chr(1456 - 1403), 46441 - 46433), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + chr(49) + chr(0b110000) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(50) + chr(0b10001 + 0o43), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b101001 + 0o106) + chr(0b10101 + 0o34) + chr(0b101100 + 0o10) + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1101 + 0o46) + chr(50) + chr(52), 8), ehT0Px3KOsy9('\x30' + chr(0b101101 + 0o102) + chr(49) + '\x35' + chr(1107 - 1054), 11347 - 11339), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\063' + chr(1394 - 1346) + '\067', 8), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + chr(55) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(64 - 16) + chr(0b1101111) + chr(0b110010) + chr(0b1 + 0o66) + chr(51), 8), ehT0Px3KOsy9(chr(875 - 827) + '\x6f' + chr(0b110001) + chr(53) + chr(49), 43883 - 43875), ehT0Px3KOsy9('\060' + chr(5859 - 5748) + chr(2003 - 1949) + chr(1162 - 1111), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + '\x34' + chr(51), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\062' + chr(52), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010100 + 0o33) + '\x33' + chr(0b110111), 29367 - 29359), ehT0Px3KOsy9(chr(1419 - 1371) + chr(0b1101111) + '\062' + chr(0b1110 + 0o50) + '\x34', 36526 - 36518), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + '\x33' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b1010 + 0o53) + chr(0b11001 + 0o31), 0b1000), ehT0Px3KOsy9(chr(357 - 309) + '\x6f' + chr(0b11001 + 0o31) + chr(55) + chr(1436 - 1382), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b11100 + 0o31) + '\063', 33137 - 33129)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(367 - 319) + chr(0b1 + 0o156) + chr(0b110101) + chr(48), 60498 - 60490)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x1e'), '\144' + chr(0b1100001 + 0o4) + chr(0b1100011) + '\157' + chr(0b1010011 + 0o21) + chr(0b1000111 + 0o36))('\165' + '\164' + chr(0b1100110) + chr(829 - 784) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def TQ3mI63UG7de(vGrByMSYMp9h, vsJU7GhuEuh6): for JWG5qApaeJkp in vsJU7GhuEuh6: vGrByMSYMp9h = vGrByMSYMp9h.replace(JWG5qApaeJkp, xafqLlk3kkUe(SXOLrMavuUCe(b'L'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1011110 + 0o21) + chr(0b1000110 + 0o36) + chr(101))('\x75' + '\x74' + chr(0b1100110) + chr(489 - 444) + chr(0b10100 + 0o44))) return [WVxHKyX45z_L for WVxHKyX45z_L in xafqLlk3kkUe(vGrByMSYMp9h, xafqLlk3kkUe(SXOLrMavuUCe(b'C.\x1eS-'), chr(100) + chr(0b110001 + 0o64) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b11 + 0o162) + '\164' + chr(3161 - 3059) + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'L'), chr(9815 - 9715) + '\145' + '\x63' + chr(111) + chr(100) + chr(8934 - 8833))(chr(0b10001 + 0o144) + chr(2836 - 2720) + chr(5060 - 4958) + chr(45) + chr(0b111000))) if c2A0yzQpDQB3(WVxHKyX45z_L) > ehT0Px3KOsy9(chr(0b1101 + 0o43) + '\x6f' + chr(48), 37979 - 37971)]
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
convert_entry_to_path
def convert_entry_to_path(path): # type: (Dict[S, Union[S, bool, Tuple[S], List[S]]]) -> S """Convert a pipfile entry to a string""" if not isinstance(path, Mapping): raise TypeError("expecting a mapping, received {0!r}".format(path)) if not any(key in path for key in ["file", "path"]): raise ValueError("missing path-like entry in supplied mapping {0!r}".format(path)) if "file" in path: path = vistir.path.url_to_path(path["file"]) elif "path" in path: path = path["path"] return path
python
def convert_entry_to_path(path): # type: (Dict[S, Union[S, bool, Tuple[S], List[S]]]) -> S """Convert a pipfile entry to a string""" if not isinstance(path, Mapping): raise TypeError("expecting a mapping, received {0!r}".format(path)) if not any(key in path for key in ["file", "path"]): raise ValueError("missing path-like entry in supplied mapping {0!r}".format(path)) if "file" in path: path = vistir.path.url_to_path(path["file"]) elif "path" in path: path = path["path"] return path
[ "def", "convert_entry_to_path", "(", "path", ")", ":", "# type: (Dict[S, Union[S, bool, Tuple[S], List[S]]]) -> S", "if", "not", "isinstance", "(", "path", ",", "Mapping", ")", ":", "raise", "TypeError", "(", "\"expecting a mapping, received {0!r}\"", ".", "format", "(", "path", ")", ")", "if", "not", "any", "(", "key", "in", "path", "for", "key", "in", "[", "\"file\"", ",", "\"path\"", "]", ")", ":", "raise", "ValueError", "(", "\"missing path-like entry in supplied mapping {0!r}\"", ".", "format", "(", "path", ")", ")", "if", "\"file\"", "in", "path", ":", "path", "=", "vistir", ".", "path", ".", "url_to_path", "(", "path", "[", "\"file\"", "]", ")", "elif", "\"path\"", "in", "path", ":", "path", "=", "path", "[", "\"path\"", "]", "return", "path" ]
Convert a pipfile entry to a string
[ "Convert", "a", "pipfile", "entry", "to", "a", "string" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L187-L202
train
Convert a pipfile entry to a string
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,h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V2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1011000 + 0o27) + '\063' + '\063' + chr(0b101111 + 0o5), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100100 + 0o113) + chr(0b111 + 0o54) + '\x30' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(1992 - 1943) + chr(703 - 649), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + chr(0b11110 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(8486 - 8375) + '\x32' + chr(49) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(846 - 798) + '\x6f' + chr(49) + '\064' + chr(0b110010 + 0o5), 0b1000), ehT0Px3KOsy9(chr(1997 - 1949) + chr(111) + chr(51) + chr(0b110111) + chr(0b11000 + 0o35), 64900 - 64892), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(526 - 472) + '\067', 11576 - 11568), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + chr(0b11011 + 0o32) + chr(0b11101 + 0o25), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(88 - 39) + chr(0b110001) + chr(0b101 + 0o61), 8), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\x31' + chr(0b101000 + 0o13), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110101) + chr(53), 39455 - 39447), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1237 - 1185) + chr(1858 - 1808), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8862 - 8751) + '\062' + chr(0b110111) + '\064', 37871 - 37863), ehT0Px3KOsy9('\060' + '\157' + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(2496 - 2385) + '\x34' + '\x31', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2446 - 2396) + chr(53) + chr(0b110011), 35796 - 35788), ehT0Px3KOsy9(chr(1901 - 1853) + chr(1732 - 1621) + chr(49) + chr(48) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(265 - 217) + chr(2322 - 2211) + chr(562 - 513) + chr(51) + chr(54), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1246 - 1196) + chr(0b101001 + 0o15) + chr(0b101101 + 0o3), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + chr(0b101000 + 0o13) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b11101 + 0o27) + chr(0b10100 + 0o42), ord("\x08")), ehT0Px3KOsy9(chr(2116 - 2068) + chr(0b111000 + 0o67) + '\x32' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\063' + chr(49), 7040 - 7032), ehT0Px3KOsy9(chr(675 - 627) + chr(111) + chr(0b110001) + chr(52) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + '\x30' + chr(503 - 452), 8), ehT0Px3KOsy9(chr(48) + chr(111) + '\064' + chr(2661 - 2608), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110111) + chr(1724 - 1676), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(575 - 524) + '\062' + chr(1954 - 1901), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(55) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b111 + 0o53) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11101 + 0o26) + '\x31' + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101101 + 0o2) + chr(51) + '\x30' + '\x32', 13952 - 13944), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(659 - 609) + chr(0b11111 + 0o30) + '\066', 0b1000), ehT0Px3KOsy9(chr(2247 - 2199) + chr(111) + chr(0b1101 + 0o46) + chr(52) + chr(0b100100 + 0o15), 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110 + 0o61) + chr(0b100 + 0o61), 26434 - 26426), ehT0Px3KOsy9('\060' + '\x6f' + chr(55) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100010 + 0o17) + chr(52) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(2865 - 2754) + chr(0b110001) + chr(2837 - 2782), 689 - 681)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1672 - 1624) + chr(4433 - 4322) + '\x35' + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101101 + 0o2) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b11100 + 0o130) + chr(2576 - 2474) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def EeI1Dgs_Z99u(EaCjyhZptSer): if not PlSM16l2KDPD(EaCjyhZptSer, PWiT5YHe31y6): raise sznFqDbNBHlx(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9\xbe>u\xea\x13\x94Y\x8dn*\rkC\xccuH\xc5$r\x90/\xc3v|\t5@\x1c\xf5A\xe3\xef\xb0\xc3'), chr(0b101 + 0o137) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(2586 - 2484) + '\x2d' + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8a\xf2<\x7f\xc1\x06\xae\x04\xba>.G'), chr(0b1100100) + chr(101) + chr(0b1011011 + 0o10) + '\157' + '\144' + '\x65')('\x75' + '\164' + chr(9466 - 9364) + chr(45) + '\x38'))(EaCjyhZptSer)) if not UVSi4XW7eBIM((K3J4ZwSlE0sT in EaCjyhZptSer for K3J4ZwSlE0sT in [xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\xaf"u'), chr(100) + chr(0b1010101 + 0o20) + chr(0b1100011) + chr(6735 - 6624) + '\144' + chr(0b0 + 0o145))('\165' + chr(116) + chr(3027 - 2925) + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xa7:x'), chr(0b1000111 + 0o35) + chr(9843 - 9742) + chr(3995 - 3896) + chr(5675 - 5564) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1001010 + 0o52) + chr(0b1100110) + chr(1056 - 1011) + chr(2329 - 2273))])): raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb1\xaf=c\xe0\t\x9a\x17\x9a/?E+N\xd5nD\x8b&0\xc4/\xdf5p\x0ecV\r\xa5J\xbf\xa7\xa7\xda\xc1P_\x13\x7f\xb5\xa8)0\xf2W\xdcE\x97'), '\144' + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1101 + 0o130))(chr(117) + '\x74' + '\146' + chr(0b11111 + 0o16) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8a\xf2<\x7f\xc1\x06\xae\x04\xba>.G'), '\x64' + '\145' + chr(5551 - 5452) + chr(0b1101111) + '\144' + chr(0b10001 + 0o124))(chr(0b1110101) + '\164' + '\x66' + chr(1582 - 1537) + chr(0b111000)))(EaCjyhZptSer)) if xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\xaf"u'), chr(0b1100100) + '\145' + chr(4304 - 4205) + '\157' + chr(7639 - 7539) + '\145')('\165' + chr(0b1010000 + 0o44) + '\146' + chr(45) + '\070') in EaCjyhZptSer: EaCjyhZptSer = fRftvkBYUjed.path.url_to_path(EaCjyhZptSer[xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\xaf"u'), chr(0b1100100) + '\x65' + chr(0b1011010 + 0o11) + chr(0b101010 + 0o105) + '\144' + '\145')(chr(0b1010 + 0o153) + chr(0b1101 + 0o147) + '\x66' + '\055' + '\070')]) elif xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xa7:x'), chr(0b1100100) + chr(0b1100101) + chr(9316 - 9217) + chr(0b111111 + 0o60) + chr(0b1100100) + chr(2901 - 2800))('\165' + chr(116) + chr(0b1100 + 0o132) + '\x2d' + chr(696 - 640)) in EaCjyhZptSer: EaCjyhZptSer = EaCjyhZptSer[xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xa7:x'), chr(100) + chr(3089 - 2988) + chr(9392 - 9293) + chr(0b1101111) + chr(8541 - 8441) + chr(0b1100101))(chr(0b11101 + 0o130) + '\164' + chr(102) + chr(761 - 716) + chr(0b111000))] return EaCjyhZptSer
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
is_installable_file
def is_installable_file(path): # type: (PipfileType) -> bool """Determine if a path can potentially be installed""" from packaging import specifiers if isinstance(path, Mapping): path = convert_entry_to_path(path) # If the string starts with a valid specifier operator, test if it is a valid # specifier set before making a path object (to avoid breaking windows) if any(path.startswith(spec) for spec in "!=<>~"): try: specifiers.SpecifierSet(path) # If this is not a valid specifier, just move on and try it as a path except specifiers.InvalidSpecifier: pass else: return False parsed = urlparse(path) is_local = ( not parsed.scheme or parsed.scheme == "file" or (len(parsed.scheme) == 1 and os.name == "nt") ) if parsed.scheme and parsed.scheme == "file": path = vistir.compat.fs_decode(vistir.path.url_to_path(path)) normalized_path = vistir.path.normalize_path(path) if is_local and not os.path.exists(normalized_path): return False is_archive = pip_shims.shims.is_archive_file(normalized_path) is_local_project = os.path.isdir(normalized_path) and is_installable_dir( normalized_path ) if is_local and is_local_project or is_archive: return True if not is_local and pip_shims.shims.is_archive_file(parsed.path): return True return False
python
def is_installable_file(path): # type: (PipfileType) -> bool """Determine if a path can potentially be installed""" from packaging import specifiers if isinstance(path, Mapping): path = convert_entry_to_path(path) # If the string starts with a valid specifier operator, test if it is a valid # specifier set before making a path object (to avoid breaking windows) if any(path.startswith(spec) for spec in "!=<>~"): try: specifiers.SpecifierSet(path) # If this is not a valid specifier, just move on and try it as a path except specifiers.InvalidSpecifier: pass else: return False parsed = urlparse(path) is_local = ( not parsed.scheme or parsed.scheme == "file" or (len(parsed.scheme) == 1 and os.name == "nt") ) if parsed.scheme and parsed.scheme == "file": path = vistir.compat.fs_decode(vistir.path.url_to_path(path)) normalized_path = vistir.path.normalize_path(path) if is_local and not os.path.exists(normalized_path): return False is_archive = pip_shims.shims.is_archive_file(normalized_path) is_local_project = os.path.isdir(normalized_path) and is_installable_dir( normalized_path ) if is_local and is_local_project or is_archive: return True if not is_local and pip_shims.shims.is_archive_file(parsed.path): return True return False
[ "def", "is_installable_file", "(", "path", ")", ":", "# type: (PipfileType) -> bool", "from", "packaging", "import", "specifiers", "if", "isinstance", "(", "path", ",", "Mapping", ")", ":", "path", "=", "convert_entry_to_path", "(", "path", ")", "# If the string starts with a valid specifier operator, test if it is a valid", "# specifier set before making a path object (to avoid breaking windows)", "if", "any", "(", "path", ".", "startswith", "(", "spec", ")", "for", "spec", "in", "\"!=<>~\"", ")", ":", "try", ":", "specifiers", ".", "SpecifierSet", "(", "path", ")", "# If this is not a valid specifier, just move on and try it as a path", "except", "specifiers", ".", "InvalidSpecifier", ":", "pass", "else", ":", "return", "False", "parsed", "=", "urlparse", "(", "path", ")", "is_local", "=", "(", "not", "parsed", ".", "scheme", "or", "parsed", ".", "scheme", "==", "\"file\"", "or", "(", "len", "(", "parsed", ".", "scheme", ")", "==", "1", "and", "os", ".", "name", "==", "\"nt\"", ")", ")", "if", "parsed", ".", "scheme", "and", "parsed", ".", "scheme", "==", "\"file\"", ":", "path", "=", "vistir", ".", "compat", ".", "fs_decode", "(", "vistir", ".", "path", ".", "url_to_path", "(", "path", ")", ")", "normalized_path", "=", "vistir", ".", "path", ".", "normalize_path", "(", "path", ")", "if", "is_local", "and", "not", "os", ".", "path", ".", "exists", "(", "normalized_path", ")", ":", "return", "False", "is_archive", "=", "pip_shims", ".", "shims", ".", "is_archive_file", "(", "normalized_path", ")", "is_local_project", "=", "os", ".", "path", ".", "isdir", "(", "normalized_path", ")", "and", "is_installable_dir", "(", "normalized_path", ")", "if", "is_local", "and", "is_local_project", "or", "is_archive", ":", "return", "True", "if", "not", "is_local", "and", "pip_shims", ".", "shims", ".", "is_archive_file", "(", "parsed", ".", "path", ")", ":", "return", "True", "return", "False" ]
Determine if a path can potentially be installed
[ "Determine", "if", "a", "path", "can", "potentially", "be", "installed" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L205-L246
train
Determine if a path can potentially be installed
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTb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yYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101001 + 0o6) + '\067' + chr(0b100101 + 0o17), 0o10), ehT0Px3KOsy9(chr(1520 - 1472) + '\157' + chr(0b110011) + chr(1953 - 1902) + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + chr(342 - 293) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(6992 - 6881) + '\061' + chr(52) + chr(0b101000 + 0o15), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\065' + '\x37', 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(4335 - 4224) + chr(0b100011 + 0o17) + '\064' + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1 + 0o156) + chr(0b100011 + 0o17) + chr(54) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(875 - 827) + chr(111) + chr(2385 - 2335) + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1540 - 1490) + chr(48), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(50), 547 - 539), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(217 - 166) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(841 - 791) + chr(0b100110 + 0o13), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\064', 58087 - 58079), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1101111) + chr(49) + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + chr(242 - 193) + chr(55) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x33', 19882 - 19874), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(6965 - 6854) + chr(1473 - 1424) + '\x31' + chr(1497 - 1442), 6388 - 6380), ehT0Px3KOsy9('\x30' + '\157' + chr(240 - 190) + chr(0b110110) + '\062', 8), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(48) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(1507 - 1396) + '\x31' + chr(1148 - 1098) + chr(979 - 930), ord("\x08")), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\157' + chr(0b110001 + 0o6) + '\x32', 0o10), ehT0Px3KOsy9('\060' + chr(4131 - 4020) + chr(0b110001) + chr(49) + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\064' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b111100 + 0o63) + chr(773 - 719) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001 + 0o2) + '\065' + chr(1859 - 1808), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8143 - 8032) + chr(0b100100 + 0o15) + chr(0b110001) + chr(0b110101), 8), ehT0Px3KOsy9(chr(48) + chr(0b1011111 + 0o20) + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x37' + chr(357 - 307), 8), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1100011 + 0o14) + '\x33' + chr(2108 - 2056) + '\064', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1000101 + 0o52) + chr(0b100010 + 0o24) + '\x32', 62262 - 62254), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(0b11100 + 0o26) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b110011 + 0o74) + '\x33' + '\065' + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + chr(10269 - 10158) + chr(0b1100 + 0o45) + '\x31' + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + chr(8147 - 8036) + chr(51) + chr(0b11111 + 0o27) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(4144 - 4033) + chr(51) + chr(52) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\157' + '\062' + '\x30' + chr(0b10000 + 0o47), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100101 + 0o112) + '\063' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + '\061' + '\x35' + chr(0b110000 + 0o4), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\066' + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100100 + 0o17) + chr(0b1100 + 0o47), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + chr(58 - 5) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x12'), chr(0b1100100) + chr(0b1100101) + chr(0b11110 + 0o105) + chr(111) + chr(0b100110 + 0o76) + chr(101))(chr(1879 - 1762) + chr(116) + chr(576 - 474) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def n5VaR3Bdf2Ms(EaCjyhZptSer): (ZXtidsMzqvqx,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'L\xb8\xab\x0e\xce\xc0\xdb\x7fw'), chr(0b111101 + 0o47) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(5694 - 5594) + chr(101))(chr(0b101111 + 0o106) + chr(0b1110100) + '\146' + '\x2d' + chr(369 - 313)), xafqLlk3kkUe(SXOLrMavuUCe(b'O\xa9\xad\x06\xc6\xc1\xdbtby'), '\x64' + '\x65' + chr(825 - 726) + '\x6f' + '\144' + '\145')(chr(10326 - 10209) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56))), xafqLlk3kkUe(SXOLrMavuUCe(b'O\xa9\xad\x06\xc6\xc1\xdbtby'), chr(1555 - 1455) + chr(9263 - 9162) + chr(0b1001101 + 0o26) + '\157' + chr(0b111100 + 0o50) + chr(716 - 615))(chr(1903 - 1786) + chr(116) + chr(2826 - 2724) + chr(0b101101) + chr(2454 - 2398))),) if PlSM16l2KDPD(EaCjyhZptSer, PWiT5YHe31y6): EaCjyhZptSer = EeI1Dgs_Z99u(EaCjyhZptSer) if UVSi4XW7eBIM((xafqLlk3kkUe(EaCjyhZptSer, xafqLlk3kkUe(SXOLrMavuUCe(b'O\xad\xa9\x17\xdb\xd4\xc5xdb'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(271 - 171) + chr(101))('\165' + chr(0b1110100) + chr(0b1011101 + 0o11) + '\055' + chr(0b111000)))(IH4wfF5htxM9) for IH4wfF5htxM9 in xafqLlk3kkUe(SXOLrMavuUCe(b'\x1d\xe4\xf4[\xd1'), '\144' + chr(0b1000 + 0o135) + chr(99) + chr(0b1100111 + 0o10) + chr(5056 - 4956) + chr(0b1010010 + 0o23))(chr(117) + '\x74' + chr(0b1000011 + 0o43) + chr(0b10 + 0o53) + chr(0b111000)))): try: xafqLlk3kkUe(ZXtidsMzqvqx, xafqLlk3kkUe(SXOLrMavuUCe(b'o\xa9\xad\x06\xc6\xc1\xdbtbYy\xa5'), chr(0b10011 + 0o121) + '\x65' + '\x63' + chr(0b110101 + 0o72) + chr(0b1010110 + 0o16) + chr(0b1000100 + 0o41))(chr(0b1110101) + chr(0b1110100) + chr(0b1001100 + 0o32) + chr(759 - 714) + chr(0b10010 + 0o46)))(EaCjyhZptSer) except xafqLlk3kkUe(ZXtidsMzqvqx, xafqLlk3kkUe(SXOLrMavuUCe(b'u\xb7\xbe\x04\xc3\xce\xd6B`o\x7f\xb8bc\x1dq'), chr(0b1100100) + chr(0b1000101 + 0o40) + chr(0b1100011) + chr(9547 - 9436) + chr(0b101011 + 0o71) + chr(101))(chr(8121 - 8004) + chr(6592 - 6476) + '\146' + '\x2d' + '\x38')): pass else: return ehT0Px3KOsy9(chr(48) + '\x6f' + '\060', 0b1000) QIe124s5EFAg = P8lnsClJdUFG(EaCjyhZptSer) hpYRDzDxs3xK = not QIe124s5EFAg.scheme or QIe124s5EFAg.scheme == xafqLlk3kkUe(SXOLrMavuUCe(b'Z\xb0\xa4\x00'), chr(3921 - 3821) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(9538 - 9438) + '\x65')(chr(0b1001111 + 0o46) + chr(0b10 + 0o162) + chr(4049 - 3947) + '\x2d' + chr(0b101001 + 0o17)) or (c2A0yzQpDQB3(QIe124s5EFAg.scheme) == ehT0Px3KOsy9('\x30' + chr(11738 - 11627) + chr(0b11001 + 0o30), 8) and oqhJDdMJfuwx.AIvJRzLdDfgF == xafqLlk3kkUe(SXOLrMavuUCe(b'R\xad'), '\144' + chr(101) + chr(1259 - 1160) + chr(0b1101111) + chr(0b1011011 + 0o11) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(56))) if xafqLlk3kkUe(QIe124s5EFAg, xafqLlk3kkUe(SXOLrMavuUCe(b'O\xba\xa0\x00\xc2\xc2'), chr(0b1011000 + 0o14) + chr(2813 - 2712) + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(2411 - 2309) + '\055' + '\070')) and xafqLlk3kkUe(QIe124s5EFAg, xafqLlk3kkUe(SXOLrMavuUCe(b'O\xba\xa0\x00\xc2\xc2'), '\x64' + chr(3259 - 3158) + chr(99) + chr(0b101 + 0o152) + '\x64' + chr(0b1000100 + 0o41))(chr(117) + chr(0b10001 + 0o143) + chr(0b1100110) + '\055' + chr(0b111000))) == xafqLlk3kkUe(SXOLrMavuUCe(b'Z\xb0\xa4\x00'), chr(9923 - 9823) + '\145' + chr(0b100100 + 0o77) + chr(2659 - 2548) + '\x64' + chr(0b1100101))(chr(278 - 161) + '\x74' + chr(102) + '\055' + chr(2653 - 2597)): EaCjyhZptSer = fRftvkBYUjed.compat.fs_decode(fRftvkBYUjed.path.url_to_path(EaCjyhZptSer)) fQ1SJybT3HrZ = fRftvkBYUjed.path.normalize_path(EaCjyhZptSer) if hpYRDzDxs3xK and (not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'Y\xa1\xa1\x16\xdb\xd4'), '\x64' + chr(9459 - 9358) + chr(0b1000000 + 0o43) + '\157' + '\144' + chr(5461 - 5360))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(741 - 696) + chr(56)))(fQ1SJybT3HrZ)): return ehT0Px3KOsy9('\060' + chr(4571 - 4460) + '\x30', 8) rzPk19XBmQQl = cfJjhQ7KAJKh.shims.is_archive_file(fQ1SJybT3HrZ) aicaG_fBE103 = oqhJDdMJfuwx.path.isdir(fQ1SJybT3HrZ) and Qdbzu05ngn9s(fQ1SJybT3HrZ) if hpYRDzDxs3xK and aicaG_fBE103 or rzPk19XBmQQl: return ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(2528 - 2417) + '\061', 8) if not hpYRDzDxs3xK and xafqLlk3kkUe(cfJjhQ7KAJKh.shims, xafqLlk3kkUe(SXOLrMavuUCe(b'U\xaa\x97\x04\xdd\xc4\xdaxfoC\xb7mf\x1d'), '\144' + '\145' + chr(99) + '\x6f' + chr(2839 - 2739) + chr(0b1100101))('\165' + chr(0b1110100) + chr(7898 - 7796) + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(QIe124s5EFAg, xafqLlk3kkUe(SXOLrMavuUCe(b'y\xb8\x8b\x0f\xd6\xcf\xe8adYy\xa3'), '\x64' + '\x65' + chr(7306 - 7207) + chr(4305 - 4194) + chr(100) + '\145')('\165' + chr(116) + chr(102) + '\055' + '\x38'))): return ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001), 8) return ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110000), 8)
pypa/pipenv
pipenv/vendor/requirementslib/utils.py
get_path
def get_path(root, path, default=_UNSET): """Retrieve a value from a nested object via a tuple representing the lookup path. >>> root = {'a': {'b': {'c': [[1], [2], [3]]}}} >>> get_path(root, ('a', 'b', 'c', 2, 0)) 3 The path format is intentionally consistent with that of :func:`remap`. One of get_path's chief aims is improved error messaging. EAFP is great, but the error messages are not. For instance, ``root['a']['b']['c'][2][1]`` gives back ``IndexError: list index out of range`` What went out of range where? get_path currently raises ``PathAccessError: could not access 2 from path ('a', 'b', 'c', 2, 1), got error: IndexError('list index out of range',)``, a subclass of IndexError and KeyError. You can also pass a default that covers the entire operation, should the lookup fail at any level. Args: root: The target nesting of dictionaries, lists, or other objects supporting ``__getitem__``. path (tuple): A list of strings and integers to be successively looked up within *root*. default: The value to be returned should any ``PathAccessError`` exceptions be raised. """ if isinstance(path, six.string_types): path = path.split(".") cur = root try: for seg in path: try: cur = cur[seg] except (KeyError, IndexError) as exc: raise PathAccessError(exc, seg, path) except TypeError as exc: # either string index in a list, or a parent that # doesn't support indexing try: seg = int(seg) cur = cur[seg] except (ValueError, KeyError, IndexError, TypeError): if not getattr(cur, "__iter__", None): exc = TypeError("%r object is not indexable" % type(cur).__name__) raise PathAccessError(exc, seg, path) except PathAccessError: if default is _UNSET: raise return default return cur
python
def get_path(root, path, default=_UNSET): """Retrieve a value from a nested object via a tuple representing the lookup path. >>> root = {'a': {'b': {'c': [[1], [2], [3]]}}} >>> get_path(root, ('a', 'b', 'c', 2, 0)) 3 The path format is intentionally consistent with that of :func:`remap`. One of get_path's chief aims is improved error messaging. EAFP is great, but the error messages are not. For instance, ``root['a']['b']['c'][2][1]`` gives back ``IndexError: list index out of range`` What went out of range where? get_path currently raises ``PathAccessError: could not access 2 from path ('a', 'b', 'c', 2, 1), got error: IndexError('list index out of range',)``, a subclass of IndexError and KeyError. You can also pass a default that covers the entire operation, should the lookup fail at any level. Args: root: The target nesting of dictionaries, lists, or other objects supporting ``__getitem__``. path (tuple): A list of strings and integers to be successively looked up within *root*. default: The value to be returned should any ``PathAccessError`` exceptions be raised. """ if isinstance(path, six.string_types): path = path.split(".") cur = root try: for seg in path: try: cur = cur[seg] except (KeyError, IndexError) as exc: raise PathAccessError(exc, seg, path) except TypeError as exc: # either string index in a list, or a parent that # doesn't support indexing try: seg = int(seg) cur = cur[seg] except (ValueError, KeyError, IndexError, TypeError): if not getattr(cur, "__iter__", None): exc = TypeError("%r object is not indexable" % type(cur).__name__) raise PathAccessError(exc, seg, path) except PathAccessError: if default is _UNSET: raise return default return cur
[ "def", "get_path", "(", "root", ",", "path", ",", "default", "=", "_UNSET", ")", ":", "if", "isinstance", "(", "path", ",", "six", ".", "string_types", ")", ":", "path", "=", "path", ".", "split", "(", "\".\"", ")", "cur", "=", "root", "try", ":", "for", "seg", "in", "path", ":", "try", ":", "cur", "=", "cur", "[", "seg", "]", "except", "(", "KeyError", ",", "IndexError", ")", "as", "exc", ":", "raise", "PathAccessError", "(", "exc", ",", "seg", ",", "path", ")", "except", "TypeError", "as", "exc", ":", "# either string index in a list, or a parent that", "# doesn't support indexing", "try", ":", "seg", "=", "int", "(", "seg", ")", "cur", "=", "cur", "[", "seg", "]", "except", "(", "ValueError", ",", "KeyError", ",", "IndexError", ",", "TypeError", ")", ":", "if", "not", "getattr", "(", "cur", ",", "\"__iter__\"", ",", "None", ")", ":", "exc", "=", "TypeError", "(", "\"%r object is not indexable\"", "%", "type", "(", "cur", ")", ".", "__name__", ")", "raise", "PathAccessError", "(", "exc", ",", "seg", ",", "path", ")", "except", "PathAccessError", ":", "if", "default", "is", "_UNSET", ":", "raise", "return", "default", "return", "cur" ]
Retrieve a value from a nested object via a tuple representing the lookup path. >>> root = {'a': {'b': {'c': [[1], [2], [3]]}}} >>> get_path(root, ('a', 'b', 'c', 2, 0)) 3 The path format is intentionally consistent with that of :func:`remap`. One of get_path's chief aims is improved error messaging. EAFP is great, but the error messages are not. For instance, ``root['a']['b']['c'][2][1]`` gives back ``IndexError: list index out of range`` What went out of range where? get_path currently raises ``PathAccessError: could not access 2 from path ('a', 'b', 'c', 2, 1), got error: IndexError('list index out of range',)``, a subclass of IndexError and KeyError. You can also pass a default that covers the entire operation, should the lookup fail at any level. Args: root: The target nesting of dictionaries, lists, or other objects supporting ``__getitem__``. path (tuple): A list of strings and integers to be successively looked up within *root*. default: The value to be returned should any ``PathAccessError`` exceptions be raised.
[ "Retrieve", "a", "value", "from", "a", "nested", "object", "via", "a", "tuple", "representing", "the", "lookup", "path", ".", ">>>", "root", "=", "{", "a", ":", "{", "b", ":", "{", "c", ":", "[[", "1", "]", "[", "2", "]", "[", "3", "]]", "}}}", ">>>", "get_path", "(", "root", "(", "a", "b", "c", "2", "0", "))", "3", "The", "path", "format", "is", "intentionally", "consistent", "with", "that", "of", ":", "func", ":", "remap", ".", "One", "of", "get_path", "s", "chief", "aims", "is", "improved", "error", "messaging", ".", "EAFP", "is", "great", "but", "the", "error", "messages", "are", "not", ".", "For", "instance", "root", "[", "a", "]", "[", "b", "]", "[", "c", "]", "[", "2", "]", "[", "1", "]", "gives", "back", "IndexError", ":", "list", "index", "out", "of", "range", "What", "went", "out", "of", "range", "where?", "get_path", "currently", "raises", "PathAccessError", ":", "could", "not", "access", "2", "from", "path", "(", "a", "b", "c", "2", "1", ")", "got", "error", ":", "IndexError", "(", "list", "index", "out", "of", "range", ")", "a", "subclass", "of", "IndexError", "and", "KeyError", ".", "You", "can", "also", "pass", "a", "default", "that", "covers", "the", "entire", "operation", "should", "the", "lookup", "fail", "at", "any", "level", ".", "Args", ":", "root", ":", "The", "target", "nesting", "of", "dictionaries", "lists", "or", "other", "objects", "supporting", "__getitem__", ".", "path", "(", "tuple", ")", ":", "A", "list", "of", "strings", "and", "integers", "to", "be", "successively", "looked", "up", "within", "*", "root", "*", ".", "default", ":", "The", "value", "to", "be", "returned", "should", "any", "PathAccessError", "exceptions", "be", "raised", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/utils.py#L409-L458
train
Get a value from a nested object via a tuple representing the tree structure of the object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7b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Yhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + '\064' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(1101 - 990) + '\x32' + chr(2577 - 2525) + chr(966 - 916), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b10011 + 0o40) + chr(0b10001 + 0o42) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(186 - 137), ord("\x08")), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b1010000 + 0o37) + '\x32' + chr(48) + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b10111 + 0o32) + '\063', 0o10), ehT0Px3KOsy9(chr(1907 - 1859) + chr(0b1101111) + chr(0b110001) + chr(240 - 185), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(48) + chr(0b100 + 0o62), 0o10), ehT0Px3KOsy9('\x30' + chr(0b10010 + 0o135) + chr(0b110010) + '\x36' + chr(777 - 729), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(53) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + chr(3363 - 3252) + chr(52) + chr(2347 - 2296), 4653 - 4645), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(8712 - 8601) + chr(49) + '\064' + chr(0b1111 + 0o42), 0o10), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\x6f' + chr(0b110001 + 0o1) + chr(299 - 244) + '\067', 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + chr(50) + chr(51) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(1724 - 1676) + chr(0b1101111) + chr(0b110010) + '\064' + '\x33', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(550 - 499) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(49) + chr(1492 - 1442) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(48) + chr(55), 0o10), ehT0Px3KOsy9(chr(1358 - 1310) + '\x6f' + '\061' + '\060' + chr(52), 0b1000), ehT0Px3KOsy9('\060' + chr(9026 - 8915) + chr(0b110001) + '\065' + '\x30', 53415 - 53407), ehT0Px3KOsy9(chr(827 - 779) + chr(0b1101111) + '\061' + '\x30' + chr(0b11110 + 0o22), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10 + 0o155) + chr(0b110011) + '\x34', 42004 - 41996), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + chr(54) + chr(48), 10090 - 10082), ehT0Px3KOsy9(chr(583 - 535) + chr(111) + chr(704 - 652), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + '\x34' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b110011) + '\064' + chr(50), 55301 - 55293), ehT0Px3KOsy9(chr(70 - 22) + '\x6f' + chr(0b110101) + chr(0b100011 + 0o21), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(2333 - 2282) + '\064' + '\065', 8), ehT0Px3KOsy9(chr(1129 - 1081) + chr(0b1001010 + 0o45) + chr(153 - 104) + '\x37' + chr(51), 58154 - 58146), ehT0Px3KOsy9('\x30' + chr(0b1001110 + 0o41) + chr(0b1111 + 0o43) + '\062' + chr(54), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(49) + chr(1740 - 1690) + chr(238 - 186), ord("\x08")), ehT0Px3KOsy9(chr(243 - 195) + '\x6f' + '\061' + chr(0b110110) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\x6f' + chr(2287 - 2236) + chr(1180 - 1127) + chr(0b1001 + 0o54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(7327 - 7216) + chr(1364 - 1315) + chr(1369 - 1321) + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b110011) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10101 + 0o37) + chr(0b110000 + 0o2), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + '\x35' + chr(0b10000 + 0o43), 19997 - 19989), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(0b110011) + chr(0b11 + 0o64), 8), ehT0Px3KOsy9(chr(0b110000) + chr(11240 - 11129) + chr(49), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2565 - 2512) + '\060', 29633 - 29625)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb'), chr(0b11101 + 0o107) + '\x65' + '\x63' + '\x6f' + chr(100) + '\x65')(chr(117) + chr(0b1011011 + 0o31) + chr(3466 - 3364) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Ym6camI6KBX9(FiL2Xt3u2AMN, EaCjyhZptSer, t1v7afVhe01t=m7uwOXgR1rsy): if PlSM16l2KDPD(EaCjyhZptSer, xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xd6\xabh\xea\xecP\xf2\xc9[F\x12'), chr(100) + chr(9390 - 9289) + '\x63' + '\157' + chr(6530 - 6430) + chr(3924 - 3823))(chr(0b101101 + 0o110) + chr(116) + chr(102) + chr(45) + chr(0b11100 + 0o34)))): EaCjyhZptSer = EaCjyhZptSer.split(xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb'), chr(0b11000 + 0o114) + chr(101) + chr(99) + '\157' + chr(0b11010 + 0o112) + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000))) wL6S4kgnTowq = FiL2Xt3u2AMN try: for t8OqTLH4p9Bl in EaCjyhZptSer: try: wL6S4kgnTowq = wL6S4kgnTowq[t8OqTLH4p9Bl] except (RQ6CSRrFArYB, _fsda0v2_OKU) as YitWAjCPw_g9: raise HNpey_INDJMz(YitWAjCPw_g9, t8OqTLH4p9Bl, EaCjyhZptSer) except sznFqDbNBHlx as YitWAjCPw_g9: try: t8OqTLH4p9Bl = ehT0Px3KOsy9(t8OqTLH4p9Bl) wL6S4kgnTowq = wL6S4kgnTowq[t8OqTLH4p9Bl] except (q1QCh3W88sgk, RQ6CSRrFArYB, _fsda0v2_OKU, sznFqDbNBHlx): if not xafqLlk3kkUe(wL6S4kgnTowq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\xfd\xb0u\xe1\xf9P\xd9'), chr(100) + chr(0b1010011 + 0o22) + '\x63' + chr(0b101011 + 0o104) + chr(6054 - 5954) + '\x65')(chr(0b110100 + 0o101) + chr(0b100001 + 0o123) + chr(148 - 46) + '\x2d' + '\070'), None): YitWAjCPw_g9 = sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\xd0\xf9n\xe6\xe1j\xe5\xc4\x0bJ\x12\x9f\xf1\xcc,u\xae*\x0c%dQf\xc8\x87'), '\144' + chr(7895 - 7794) + chr(0b1011 + 0o130) + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\x74' + '\146' + chr(45) + chr(56)) % wmQmyeWBmUpv(wL6S4kgnTowq).Gbej4oZqKLA6) raise HNpey_INDJMz(YitWAjCPw_g9, t8OqTLH4p9Bl, EaCjyhZptSer) except HNpey_INDJMz: if t1v7afVhe01t is m7uwOXgR1rsy: raise return t1v7afVhe01t return wL6S4kgnTowq
pypa/pipenv
pipenv/patched/notpip/_internal/exceptions.py
HashMismatch._hash_comparison
def _hash_comparison(self): """ Return a comparison of actual and expected hash values. Example:: Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde or 123451234512345123451234512345123451234512345 Got bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef """ def hash_then_or(hash_name): # For now, all the decent hashes have 6-char names, so we can get # away with hard-coding space literals. return chain([hash_name], repeat(' or')) lines = [] for hash_name, expecteds in iteritems(self.allowed): prefix = hash_then_or(hash_name) lines.extend((' Expected %s %s' % (next(prefix), e)) for e in expecteds) lines.append(' Got %s\n' % self.gots[hash_name].hexdigest()) prefix = ' or' return '\n'.join(lines)
python
def _hash_comparison(self): """ Return a comparison of actual and expected hash values. Example:: Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde or 123451234512345123451234512345123451234512345 Got bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef """ def hash_then_or(hash_name): # For now, all the decent hashes have 6-char names, so we can get # away with hard-coding space literals. return chain([hash_name], repeat(' or')) lines = [] for hash_name, expecteds in iteritems(self.allowed): prefix = hash_then_or(hash_name) lines.extend((' Expected %s %s' % (next(prefix), e)) for e in expecteds) lines.append(' Got %s\n' % self.gots[hash_name].hexdigest()) prefix = ' or' return '\n'.join(lines)
[ "def", "_hash_comparison", "(", "self", ")", ":", "def", "hash_then_or", "(", "hash_name", ")", ":", "# For now, all the decent hashes have 6-char names, so we can get", "# away with hard-coding space literals.", "return", "chain", "(", "[", "hash_name", "]", ",", "repeat", "(", "' or'", ")", ")", "lines", "=", "[", "]", "for", "hash_name", ",", "expecteds", "in", "iteritems", "(", "self", ".", "allowed", ")", ":", "prefix", "=", "hash_then_or", "(", "hash_name", ")", "lines", ".", "extend", "(", "(", "' Expected %s %s'", "%", "(", "next", "(", "prefix", ")", ",", "e", ")", ")", "for", "e", "in", "expecteds", ")", "lines", ".", "append", "(", "' Got %s\\n'", "%", "self", ".", "gots", "[", "hash_name", "]", ".", "hexdigest", "(", ")", ")", "prefix", "=", "' or'", "return", "'\\n'", ".", "join", "(", "lines", ")" ]
Return a comparison of actual and expected hash values. Example:: Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde or 123451234512345123451234512345123451234512345 Got bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef
[ "Return", "a", "comparison", "of", "actual", "and", "expected", "hash", "values", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/exceptions.py#L226-L250
train
Return a comparison of actual and expected hash values.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFG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,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b110001 + 0o76) + chr(0b1011 + 0o47) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(4584 - 4473) + chr(0b1 + 0o62) + chr(0b110010) + '\061', 24589 - 24581), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + chr(0b110001) + chr(2358 - 2308), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2492 - 2441) + chr(0b10001 + 0o44) + '\063', 55589 - 55581), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1641 - 1592) + '\060', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1101 + 0o46) + chr(0b100000 + 0o27) + chr(0b110110), 0o10), ehT0Px3KOsy9('\060' + chr(0b101000 + 0o107) + '\063' + chr(0b11100 + 0o31) + chr(0b10001 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100111 + 0o13) + chr(0b110000) + chr(1977 - 1927), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110111) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + '\067' + chr(48), 23553 - 23545), ehT0Px3KOsy9('\x30' + chr(0b1100011 + 0o14) + '\x35' + '\x30', 0o10), ehT0Px3KOsy9(chr(814 - 766) + chr(111) + chr(0b110011) + '\064' + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\x33', 709 - 701), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(54) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(557 - 509) + chr(0b1010111 + 0o30) + chr(0b1100 + 0o45) + chr(0b1110 + 0o50) + chr(2272 - 2222), 19739 - 19731), ehT0Px3KOsy9(chr(0b110000) + chr(11238 - 11127) + '\x33' + chr(872 - 821) + '\x33', 55694 - 55686), ehT0Px3KOsy9('\x30' + chr(0b101110 + 0o101) + chr(51) + chr(0b11001 + 0o36) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(12259 - 12148) + chr(0b101000 + 0o13) + chr(0b110010) + chr(54), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x37' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2152 - 2103) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(778 - 727) + chr(54) + chr(0b10010 + 0o41), ord("\x08")), ehT0Px3KOsy9(chr(1366 - 1318) + chr(0b1101111) + '\x32' + chr(0b101101 + 0o6) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + '\x36' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(2122 - 2074) + chr(111) + chr(49) + chr(49) + '\065', 0o10), ehT0Px3KOsy9(chr(1004 - 956) + chr(0b1101111) + '\063' + chr(1301 - 1246) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11 + 0o63) + chr(0b101010 + 0o10), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101 + 0o142) + chr(0b100010 + 0o17) + chr(945 - 895) + '\063', ord("\x08")), ehT0Px3KOsy9('\060' + chr(8144 - 8033) + '\063', 30019 - 30011), ehT0Px3KOsy9(chr(48) + chr(0b11111 + 0o120) + chr(0b110010) + chr(0b11001 + 0o27), 34494 - 34486), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + '\x31' + chr(0b101011 + 0o14), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(994 - 883) + chr(0b10011 + 0o36) + '\060' + '\x31', 0o10), ehT0Px3KOsy9(chr(1327 - 1279) + chr(111) + chr(0b110101) + chr(0b110111), 19027 - 19019), ehT0Px3KOsy9('\x30' + chr(9600 - 9489) + chr(332 - 281) + chr(0b110110) + chr(0b101111 + 0o4), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + '\x31' + '\063', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(0b110100) + '\x31', 6337 - 6329), ehT0Px3KOsy9(chr(1815 - 1767) + chr(0b11011 + 0o124) + chr(0b110001) + '\066' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + chr(0b100101 + 0o20) + chr(48), 47432 - 47424), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\064' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(883 - 835) + '\x6f' + '\x31' + '\x32' + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(2782 - 2671) + chr(0b110001) + chr(2245 - 2197) + '\062', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + chr(1495 - 1442) + chr(48), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'8'), chr(100) + '\145' + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def xpVw_97NiBo_(oVre8I6UXc3b): def UPJrKWd8uth6(R4TgrW3JYjBX): return bmb33Pw6erRd([R4TgrW3JYjBX], hpyK9c505LBh(xafqLlk3kkUe(SXOLrMavuUCe(b'6\xf1j\xcbg\x8c'), chr(4380 - 4280) + chr(9495 - 9394) + '\143' + '\157' + '\144' + chr(0b1011011 + 0o12))('\x75' + chr(0b1110100) + chr(0b111 + 0o137) + chr(192 - 147) + '\070'))) izUh4XSf7tJY = [] for (R4TgrW3JYjBX, yEMvT6fDLik_) in WYXqUHkBa2Bx(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'w\xbd&\x84\x7f\x9b\x8b'), '\144' + '\x65' + chr(2799 - 2700) + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(116) + '\x66' + chr(45) + chr(0b111000)))): K1Ha0XjJTAE7 = UPJrKWd8uth6(R4TgrW3JYjBX) xafqLlk3kkUe(izUh4XSf7tJY, xafqLlk3kkUe(SXOLrMavuUCe(b's\xa9>\x8ef\x9a'), chr(6145 - 6045) + '\145' + chr(4692 - 4593) + chr(0b110000 + 0o77) + chr(0b11111 + 0o105) + '\145')(chr(0b10001 + 0o144) + chr(0b10010 + 0o142) + chr(102) + chr(326 - 281) + chr(1950 - 1894)))((xafqLlk3kkUe(SXOLrMavuUCe(b'6\xf1j\xcb(\xde\xcf\xa2x\xc0X\x86h\x02\x17\xbf\xd8\xf3I)\xd6\xeb'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(4318 - 4202) + chr(0b1100110) + '\x2d' + chr(2625 - 2569)) % (nSwwHEeM4cxI(K1Ha0XjJTAE7), GlnVAPeT6CUe) for GlnVAPeT6CUe in yEMvT6fDLik_)) xafqLlk3kkUe(izUh4XSf7tJY, xafqLlk3kkUe(SXOLrMavuUCe(b'w\xa1:\x8ef\x9a'), '\144' + chr(0b1100101) + chr(3267 - 3168) + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + '\164' + '\146' + chr(364 - 319) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'6\xf1j\xcb(\xde\xcf\xa2\x1d\x98\x08\xc3+1\x1d\xaf\xd8\xf6\x1a)\xd3\xb8\x94m\xdfAY'), chr(8557 - 8457) + chr(0b100010 + 0o103) + '\143' + '\x6f' + chr(0b1100100) + '\x65')('\165' + '\x74' + '\146' + '\x2d' + chr(0b101110 + 0o12)) % xafqLlk3kkUe(oVre8I6UXc3b.gots[R4TgrW3JYjBX], xafqLlk3kkUe(SXOLrMavuUCe(b'~\xb42\x8fa\x99\x8a\xf1I'), chr(1905 - 1805) + chr(101) + chr(0b1000010 + 0o41) + chr(0b1101111) + chr(100) + chr(0b1001101 + 0o30))(chr(0b1110101) + '\164' + chr(3488 - 3386) + chr(45) + chr(876 - 820)))()) K1Ha0XjJTAE7 = xafqLlk3kkUe(SXOLrMavuUCe(b'6\xf1j\xcbg\x8c'), chr(0b11101 + 0o107) + '\x65' + chr(7271 - 7172) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b101001 + 0o17)) return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1c'), chr(2451 - 2351) + chr(0b1100000 + 0o5) + '\143' + chr(0b1101111) + '\x64' + chr(0b1001110 + 0o27))(chr(0b1001010 + 0o53) + chr(1882 - 1766) + chr(6429 - 6327) + chr(0b111 + 0o46) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'I\xbe\x1d\xb3r\x8a\xb9\xccS\xc9`\xa5'), chr(4290 - 4190) + chr(0b1001101 + 0o30) + chr(6236 - 6137) + chr(0b1100000 + 0o17) + chr(4898 - 4798) + chr(4843 - 4742))(chr(117) + chr(0b10100 + 0o140) + chr(0b10000 + 0o126) + chr(1560 - 1515) + chr(0b11010 + 0o36)))(izUh4XSf7tJY)
pypa/pipenv
pipenv/vendor/chardet/universaldetector.py
UniversalDetector.reset
def reset(self): """ Reset the UniversalDetector and all of its probers back to their initial states. This is called by ``__init__``, so you only need to call this directly in between analyses of different documents. """ self.result = {'encoding': None, 'confidence': 0.0, 'language': None} self.done = False self._got_data = False self._has_win_bytes = False self._input_state = InputState.PURE_ASCII self._last_char = b'' if self._esc_charset_prober: self._esc_charset_prober.reset() for prober in self._charset_probers: prober.reset()
python
def reset(self): """ Reset the UniversalDetector and all of its probers back to their initial states. This is called by ``__init__``, so you only need to call this directly in between analyses of different documents. """ self.result = {'encoding': None, 'confidence': 0.0, 'language': None} self.done = False self._got_data = False self._has_win_bytes = False self._input_state = InputState.PURE_ASCII self._last_char = b'' if self._esc_charset_prober: self._esc_charset_prober.reset() for prober in self._charset_probers: prober.reset()
[ "def", "reset", "(", "self", ")", ":", "self", ".", "result", "=", "{", "'encoding'", ":", "None", ",", "'confidence'", ":", "0.0", ",", "'language'", ":", "None", "}", "self", ".", "done", "=", "False", "self", ".", "_got_data", "=", "False", "self", ".", "_has_win_bytes", "=", "False", "self", ".", "_input_state", "=", "InputState", ".", "PURE_ASCII", "self", ".", "_last_char", "=", "b''", "if", "self", ".", "_esc_charset_prober", ":", "self", ".", "_esc_charset_prober", ".", "reset", "(", ")", "for", "prober", "in", "self", ".", "_charset_probers", ":", "prober", ".", "reset", "(", ")" ]
Reset the UniversalDetector and all of its probers back to their initial states. This is called by ``__init__``, so you only need to call this directly in between analyses of different documents.
[ "Reset", "the", "UniversalDetector", "and", "all", "of", "its", "probers", "back", "to", "their", "initial", "states", ".", "This", "is", "called", "by", "__init__", "so", "you", "only", "need", "to", "call", "this", "directly", "in", "between", "analyses", "of", "different", "documents", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/chardet/universaldetector.py#L94-L109
train
Reset the UniversalDetector and all of its probers to their initial states.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMW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d4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10111 + 0o34) + '\x36' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(0b110111) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + chr(492 - 381) + chr(0b110001) + '\x37' + '\060', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101000 + 0o11) + '\063' + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101101 + 0o102) + '\063' + '\x37' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6900 - 6789) + '\x33' + chr(51) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(2201 - 2151) + chr(55) + chr(1276 - 1225), 0b1000), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(2428 - 2317) + '\x33' + chr(0b110010) + chr(1083 - 1030), ord("\x08")), ehT0Px3KOsy9(chr(346 - 298) + chr(111) + '\x37' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\157' + chr(1798 - 1747), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11101 + 0o25) + chr(0b11110 + 0o23) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + chr(394 - 342) + chr(0b101010 + 0o12), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(49) + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(3185 - 3074) + chr(0b1011 + 0o47) + chr(433 - 378) + chr(761 - 706), 8), ehT0Px3KOsy9(chr(117 - 69) + '\x6f' + '\x31' + '\x33' + chr(54), 18579 - 18571), ehT0Px3KOsy9(chr(48) + chr(0b11001 + 0o126) + chr(1435 - 1386) + chr(1387 - 1335) + '\x32', 0b1000), ehT0Px3KOsy9('\060' + chr(7739 - 7628) + chr(1926 - 1873) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101111) + chr(2513 - 2461) + chr(0b10011 + 0o44), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + '\x32' + chr(55), 57586 - 57578), ehT0Px3KOsy9('\060' + '\x6f' + '\x37' + chr(0b110011), 8), ehT0Px3KOsy9(chr(1763 - 1715) + chr(111) + '\063' + chr(0b11 + 0o62) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(9626 - 9515) + chr(0b110010) + chr(0b110000) + chr(2412 - 2362), 0o10), ehT0Px3KOsy9(chr(1609 - 1561) + chr(12198 - 12087) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2066 - 2017) + chr(54), 45066 - 45058), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1000 + 0o52) + chr(54) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b110011) + chr(53) + chr(52), 0o10), ehT0Px3KOsy9(chr(375 - 327) + '\157' + chr(0b100110 + 0o13) + '\063' + chr(0b1 + 0o62), 8), ehT0Px3KOsy9(chr(1385 - 1337) + '\157' + '\x33' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2025 - 1976) + chr(0b110110) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + chr(50) + chr(2200 - 2151), 19929 - 19921), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(615 - 564) + '\063' + chr(0b110011), 56772 - 56764), ehT0Px3KOsy9(chr(651 - 603) + '\157' + chr(51) + chr(49) + '\064', 38453 - 38445), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\x31' + '\x34', 5816 - 5808), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(53) + chr(0b101101 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(52) + chr(0b11000 + 0o33), 64546 - 64538), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + chr(49) + chr(1519 - 1468) + '\063', 8), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + chr(0b110001) + chr(0b110101) + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(422 - 311) + chr(49) + '\066', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + '\065' + chr(0b110100), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1224 - 1176) + '\157' + '\x35' + chr(48), 26298 - 26290)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xda'), chr(6625 - 6525) + chr(0b1100101) + chr(1557 - 1458) + '\x6f' + chr(100) + chr(0b110000 + 0o65))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def G0V856pwkJmZ(oVre8I6UXc3b): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\x91\xd1\x1b4\x99\xb7\xd5\xb2'), chr(0b1000 + 0o134) + chr(1825 - 1724) + chr(0b1100011) + chr(0b110010 + 0o75) + '\144' + chr(0b110100 + 0o61))(chr(117) + chr(11151 - 11035) + '\146' + '\055' + chr(0b1111 + 0o51)): None, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97\xd0\x16=\x94\xba\xde\xbbXf'), chr(0b11000 + 0o114) + chr(1330 - 1229) + chr(0b1100011) + chr(11612 - 11501) + '\144' + chr(7719 - 7618))(chr(0b1110101) + '\164' + chr(102) + chr(1381 - 1336) + chr(0b111 + 0o61)): 0.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\xde\x16<\x88\xbf\xdc\xb0'), '\144' + '\x65' + chr(99) + chr(0b1101111) + chr(0b110110 + 0o56) + chr(101))(chr(0b1110101) + chr(156 - 40) + chr(102) + '\x2d' + chr(56)): None} oVre8I6UXc3b.Ki86oC9WfglU = ehT0Px3KOsy9('\060' + chr(0b1010100 + 0o33) + '\060', 8) oVre8I6UXc3b.cbg4z8XoE3ya = ehT0Px3KOsy9('\x30' + '\x6f' + '\060', 8) oVre8I6UXc3b.Z4u5OStPAOT9 = ehT0Px3KOsy9(chr(48) + chr(111) + '\x30', 8) oVre8I6UXc3b.fVET9jSg84eg = w1VftphJANkW.PURE_ASCII oVre8I6UXc3b.X7uSgPQctMEZ = SXOLrMavuUCe(b'') if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\xda\x0b8\xa2\xbd\xd3\xb4Ip\xec\x10\xd1c\xcd1\x00KU'), chr(6242 - 6142) + chr(101) + chr(99) + chr(1033 - 922) + chr(6668 - 6568) + chr(2696 - 2595))(chr(117) + chr(6658 - 6542) + chr(0b1100110) + chr(1386 - 1341) + '\070')): xafqLlk3kkUe(oVre8I6UXc3b._esc_charset_prober, xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\xda\x0b>\x89'), chr(0b1100100) + chr(0b101110 + 0o67) + chr(5420 - 5321) + chr(111) + '\144' + chr(0b111011 + 0o52))('\x75' + chr(0b10101 + 0o137) + '\146' + chr(368 - 323) + chr(0b110110 + 0o2)))() for YGABugtwSK3V in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\xdc\x10:\x8f\xad\xde\xa1ds\xfb\x0b\xecv\xcd-'), chr(0b101001 + 0o73) + '\x65' + chr(0b1100011) + '\157' + chr(5404 - 5304) + '\x65')('\x75' + '\164' + chr(102) + chr(0b10000 + 0o35) + chr(3103 - 3047))): xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\xda\x0b>\x89'), chr(0b1100100) + chr(101) + chr(0b111000 + 0o53) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38'))()
pypa/pipenv
pipenv/vendor/chardet/universaldetector.py
UniversalDetector.feed
def feed(self, byte_str): """ Takes a chunk of a document and feeds it through all of the relevant charset probers. After calling ``feed``, you can check the value of the ``done`` attribute to see if you need to continue feeding the ``UniversalDetector`` more data, or if it has made a prediction (in the ``result`` attribute). .. note:: You should always call ``close`` when you're done feeding in your document if ``done`` is not already ``True``. """ if self.done: return if not len(byte_str): return if not isinstance(byte_str, bytearray): byte_str = bytearray(byte_str) # First check for known BOMs, since these are guaranteed to be correct if not self._got_data: # If the data starts with BOM, we know it is UTF if byte_str.startswith(codecs.BOM_UTF8): # EF BB BF UTF-8 with BOM self.result = {'encoding': "UTF-8-SIG", 'confidence': 1.0, 'language': ''} elif byte_str.startswith((codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE)): # FF FE 00 00 UTF-32, little-endian BOM # 00 00 FE FF UTF-32, big-endian BOM self.result = {'encoding': "UTF-32", 'confidence': 1.0, 'language': ''} elif byte_str.startswith(b'\xFE\xFF\x00\x00'): # FE FF 00 00 UCS-4, unusual octet order BOM (3412) self.result = {'encoding': "X-ISO-10646-UCS-4-3412", 'confidence': 1.0, 'language': ''} elif byte_str.startswith(b'\x00\x00\xFF\xFE'): # 00 00 FF FE UCS-4, unusual octet order BOM (2143) self.result = {'encoding': "X-ISO-10646-UCS-4-2143", 'confidence': 1.0, 'language': ''} elif byte_str.startswith((codecs.BOM_LE, codecs.BOM_BE)): # FF FE UTF-16, little endian BOM # FE FF UTF-16, big endian BOM self.result = {'encoding': "UTF-16", 'confidence': 1.0, 'language': ''} self._got_data = True if self.result['encoding'] is not None: self.done = True return # If none of those matched and we've only see ASCII so far, check # for high bytes and escape sequences if self._input_state == InputState.PURE_ASCII: if self.HIGH_BYTE_DETECTOR.search(byte_str): self._input_state = InputState.HIGH_BYTE elif self._input_state == InputState.PURE_ASCII and \ self.ESC_DETECTOR.search(self._last_char + byte_str): self._input_state = InputState.ESC_ASCII self._last_char = byte_str[-1:] # If we've seen escape sequences, use the EscCharSetProber, which # uses a simple state machine to check for known escape sequences in # HZ and ISO-2022 encodings, since those are the only encodings that # use such sequences. if self._input_state == InputState.ESC_ASCII: if not self._esc_charset_prober: self._esc_charset_prober = EscCharSetProber(self.lang_filter) if self._esc_charset_prober.feed(byte_str) == ProbingState.FOUND_IT: self.result = {'encoding': self._esc_charset_prober.charset_name, 'confidence': self._esc_charset_prober.get_confidence(), 'language': self._esc_charset_prober.language} self.done = True # If we've seen high bytes (i.e., those with values greater than 127), # we need to do more complicated checks using all our multi-byte and # single-byte probers that are left. The single-byte probers # use character bigram distributions to determine the encoding, whereas # the multi-byte probers use a combination of character unigram and # bigram distributions. elif self._input_state == InputState.HIGH_BYTE: if not self._charset_probers: self._charset_probers = [MBCSGroupProber(self.lang_filter)] # If we're checking non-CJK encodings, use single-byte prober if self.lang_filter & LanguageFilter.NON_CJK: self._charset_probers.append(SBCSGroupProber()) self._charset_probers.append(Latin1Prober()) for prober in self._charset_probers: if prober.feed(byte_str) == ProbingState.FOUND_IT: self.result = {'encoding': prober.charset_name, 'confidence': prober.get_confidence(), 'language': prober.language} self.done = True break if self.WIN_BYTE_DETECTOR.search(byte_str): self._has_win_bytes = True
python
def feed(self, byte_str): """ Takes a chunk of a document and feeds it through all of the relevant charset probers. After calling ``feed``, you can check the value of the ``done`` attribute to see if you need to continue feeding the ``UniversalDetector`` more data, or if it has made a prediction (in the ``result`` attribute). .. note:: You should always call ``close`` when you're done feeding in your document if ``done`` is not already ``True``. """ if self.done: return if not len(byte_str): return if not isinstance(byte_str, bytearray): byte_str = bytearray(byte_str) # First check for known BOMs, since these are guaranteed to be correct if not self._got_data: # If the data starts with BOM, we know it is UTF if byte_str.startswith(codecs.BOM_UTF8): # EF BB BF UTF-8 with BOM self.result = {'encoding': "UTF-8-SIG", 'confidence': 1.0, 'language': ''} elif byte_str.startswith((codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE)): # FF FE 00 00 UTF-32, little-endian BOM # 00 00 FE FF UTF-32, big-endian BOM self.result = {'encoding': "UTF-32", 'confidence': 1.0, 'language': ''} elif byte_str.startswith(b'\xFE\xFF\x00\x00'): # FE FF 00 00 UCS-4, unusual octet order BOM (3412) self.result = {'encoding': "X-ISO-10646-UCS-4-3412", 'confidence': 1.0, 'language': ''} elif byte_str.startswith(b'\x00\x00\xFF\xFE'): # 00 00 FF FE UCS-4, unusual octet order BOM (2143) self.result = {'encoding': "X-ISO-10646-UCS-4-2143", 'confidence': 1.0, 'language': ''} elif byte_str.startswith((codecs.BOM_LE, codecs.BOM_BE)): # FF FE UTF-16, little endian BOM # FE FF UTF-16, big endian BOM self.result = {'encoding': "UTF-16", 'confidence': 1.0, 'language': ''} self._got_data = True if self.result['encoding'] is not None: self.done = True return # If none of those matched and we've only see ASCII so far, check # for high bytes and escape sequences if self._input_state == InputState.PURE_ASCII: if self.HIGH_BYTE_DETECTOR.search(byte_str): self._input_state = InputState.HIGH_BYTE elif self._input_state == InputState.PURE_ASCII and \ self.ESC_DETECTOR.search(self._last_char + byte_str): self._input_state = InputState.ESC_ASCII self._last_char = byte_str[-1:] # If we've seen escape sequences, use the EscCharSetProber, which # uses a simple state machine to check for known escape sequences in # HZ and ISO-2022 encodings, since those are the only encodings that # use such sequences. if self._input_state == InputState.ESC_ASCII: if not self._esc_charset_prober: self._esc_charset_prober = EscCharSetProber(self.lang_filter) if self._esc_charset_prober.feed(byte_str) == ProbingState.FOUND_IT: self.result = {'encoding': self._esc_charset_prober.charset_name, 'confidence': self._esc_charset_prober.get_confidence(), 'language': self._esc_charset_prober.language} self.done = True # If we've seen high bytes (i.e., those with values greater than 127), # we need to do more complicated checks using all our multi-byte and # single-byte probers that are left. The single-byte probers # use character bigram distributions to determine the encoding, whereas # the multi-byte probers use a combination of character unigram and # bigram distributions. elif self._input_state == InputState.HIGH_BYTE: if not self._charset_probers: self._charset_probers = [MBCSGroupProber(self.lang_filter)] # If we're checking non-CJK encodings, use single-byte prober if self.lang_filter & LanguageFilter.NON_CJK: self._charset_probers.append(SBCSGroupProber()) self._charset_probers.append(Latin1Prober()) for prober in self._charset_probers: if prober.feed(byte_str) == ProbingState.FOUND_IT: self.result = {'encoding': prober.charset_name, 'confidence': prober.get_confidence(), 'language': prober.language} self.done = True break if self.WIN_BYTE_DETECTOR.search(byte_str): self._has_win_bytes = True
[ "def", "feed", "(", "self", ",", "byte_str", ")", ":", "if", "self", ".", "done", ":", "return", "if", "not", "len", "(", "byte_str", ")", ":", "return", "if", "not", "isinstance", "(", "byte_str", ",", "bytearray", ")", ":", "byte_str", "=", "bytearray", "(", "byte_str", ")", "# First check for known BOMs, since these are guaranteed to be correct", "if", "not", "self", ".", "_got_data", ":", "# If the data starts with BOM, we know it is UTF", "if", "byte_str", ".", "startswith", "(", "codecs", ".", "BOM_UTF8", ")", ":", "# EF BB BF UTF-8 with BOM", "self", ".", "result", "=", "{", "'encoding'", ":", "\"UTF-8-SIG\"", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "elif", "byte_str", ".", "startswith", "(", "(", "codecs", ".", "BOM_UTF32_LE", ",", "codecs", ".", "BOM_UTF32_BE", ")", ")", ":", "# FF FE 00 00 UTF-32, little-endian BOM", "# 00 00 FE FF UTF-32, big-endian BOM", "self", ".", "result", "=", "{", "'encoding'", ":", "\"UTF-32\"", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "elif", "byte_str", ".", "startswith", "(", "b'\\xFE\\xFF\\x00\\x00'", ")", ":", "# FE FF 00 00 UCS-4, unusual octet order BOM (3412)", "self", ".", "result", "=", "{", "'encoding'", ":", "\"X-ISO-10646-UCS-4-3412\"", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "elif", "byte_str", ".", "startswith", "(", "b'\\x00\\x00\\xFF\\xFE'", ")", ":", "# 00 00 FF FE UCS-4, unusual octet order BOM (2143)", "self", ".", "result", "=", "{", "'encoding'", ":", "\"X-ISO-10646-UCS-4-2143\"", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "elif", "byte_str", ".", "startswith", "(", "(", "codecs", ".", "BOM_LE", ",", "codecs", ".", "BOM_BE", ")", ")", ":", "# FF FE UTF-16, little endian BOM", "# FE FF UTF-16, big endian BOM", "self", ".", "result", "=", "{", "'encoding'", ":", "\"UTF-16\"", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "self", ".", "_got_data", "=", "True", "if", "self", ".", "result", "[", "'encoding'", "]", "is", "not", "None", ":", "self", ".", "done", "=", "True", "return", "# If none of those matched and we've only see ASCII so far, check", "# for high bytes and escape sequences", "if", "self", ".", "_input_state", "==", "InputState", ".", "PURE_ASCII", ":", "if", "self", ".", "HIGH_BYTE_DETECTOR", ".", "search", "(", "byte_str", ")", ":", "self", ".", "_input_state", "=", "InputState", ".", "HIGH_BYTE", "elif", "self", ".", "_input_state", "==", "InputState", ".", "PURE_ASCII", "and", "self", ".", "ESC_DETECTOR", ".", "search", "(", "self", ".", "_last_char", "+", "byte_str", ")", ":", "self", ".", "_input_state", "=", "InputState", ".", "ESC_ASCII", "self", ".", "_last_char", "=", "byte_str", "[", "-", "1", ":", "]", "# If we've seen escape sequences, use the EscCharSetProber, which", "# uses a simple state machine to check for known escape sequences in", "# HZ and ISO-2022 encodings, since those are the only encodings that", "# use such sequences.", "if", "self", ".", "_input_state", "==", "InputState", ".", "ESC_ASCII", ":", "if", "not", "self", ".", "_esc_charset_prober", ":", "self", ".", "_esc_charset_prober", "=", "EscCharSetProber", "(", "self", ".", "lang_filter", ")", "if", "self", ".", "_esc_charset_prober", ".", "feed", "(", "byte_str", ")", "==", "ProbingState", ".", "FOUND_IT", ":", "self", ".", "result", "=", "{", "'encoding'", ":", "self", ".", "_esc_charset_prober", ".", "charset_name", ",", "'confidence'", ":", "self", ".", "_esc_charset_prober", ".", "get_confidence", "(", ")", ",", "'language'", ":", "self", ".", "_esc_charset_prober", ".", "language", "}", "self", ".", "done", "=", "True", "# If we've seen high bytes (i.e., those with values greater than 127),", "# we need to do more complicated checks using all our multi-byte and", "# single-byte probers that are left. The single-byte probers", "# use character bigram distributions to determine the encoding, whereas", "# the multi-byte probers use a combination of character unigram and", "# bigram distributions.", "elif", "self", ".", "_input_state", "==", "InputState", ".", "HIGH_BYTE", ":", "if", "not", "self", ".", "_charset_probers", ":", "self", ".", "_charset_probers", "=", "[", "MBCSGroupProber", "(", "self", ".", "lang_filter", ")", "]", "# If we're checking non-CJK encodings, use single-byte prober", "if", "self", ".", "lang_filter", "&", "LanguageFilter", ".", "NON_CJK", ":", "self", ".", "_charset_probers", ".", "append", "(", "SBCSGroupProber", "(", ")", ")", "self", ".", "_charset_probers", ".", "append", "(", "Latin1Prober", "(", ")", ")", "for", "prober", "in", "self", ".", "_charset_probers", ":", "if", "prober", ".", "feed", "(", "byte_str", ")", "==", "ProbingState", ".", "FOUND_IT", ":", "self", ".", "result", "=", "{", "'encoding'", ":", "prober", ".", "charset_name", ",", "'confidence'", ":", "prober", ".", "get_confidence", "(", ")", ",", "'language'", ":", "prober", ".", "language", "}", "self", ".", "done", "=", "True", "break", "if", "self", ".", "WIN_BYTE_DETECTOR", ".", "search", "(", "byte_str", ")", ":", "self", ".", "_has_win_bytes", "=", "True" ]
Takes a chunk of a document and feeds it through all of the relevant charset probers. After calling ``feed``, you can check the value of the ``done`` attribute to see if you need to continue feeding the ``UniversalDetector`` more data, or if it has made a prediction (in the ``result`` attribute). .. note:: You should always call ``close`` when you're done feeding in your document if ``done`` is not already ``True``.
[ "Takes", "a", "chunk", "of", "a", "document", "and", "feeds", "it", "through", "all", "of", "the", "relevant", "charset", "probers", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/chardet/universaldetector.py#L111-L218
train
Feeds a chunk of a unicode object into the relevant base - level ISO - 10646 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412 - UCS - 4 - 3412.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee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QpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(1799 - 1749) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b110001) + '\x36' + chr(0b1011 + 0o47), 0b1000), ehT0Px3KOsy9(chr(1356 - 1308) + '\157' + '\x35' + chr(0b101101 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(526 - 415) + chr(49) + '\x37' + chr(1077 - 1027), 0o10), ehT0Px3KOsy9(chr(2039 - 1991) + chr(0b10010 + 0o135) + chr(1177 - 1127) + chr(0b110111) + '\064', 0b1000), ehT0Px3KOsy9(chr(1109 - 1061) + '\157' + chr(51) + '\061' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101 + 0o142) + chr(50) + '\x37' + chr(0b11101 + 0o27), 8), ehT0Px3KOsy9(chr(48) + chr(345 - 234) + chr(0b1101 + 0o44) + chr(51) + chr(51), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101000 + 0o7) + chr(784 - 734) + chr(0b110001) + '\065', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1001 - 951) + '\061' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\x36' + chr(0b1101 + 0o52), 14761 - 14753), ehT0Px3KOsy9('\060' + chr(0b11111 + 0o120) + chr(2465 - 2414) + '\062' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b110110 + 0o71) + chr(1996 - 1947) + chr(55) + '\x36', 59068 - 59060), ehT0Px3KOsy9(chr(1224 - 1176) + chr(0b100100 + 0o113) + '\061' + chr(0b1001 + 0o47) + chr(0b110101), 29216 - 29208), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(54) + chr(0b1010 + 0o46), 46188 - 46180), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + '\x31' + '\x34' + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(0b110101 + 0o1) + chr(51), 2349 - 2341), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + '\x34' + chr(0b101000 + 0o14), 18693 - 18685), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + chr(0b110100) + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(1872 - 1761) + chr(2171 - 2121) + chr(0b110001) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + chr(6280 - 6169) + chr(54) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1100100 + 0o13) + chr(51) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + chr(0b110110) + chr(0b110010), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(1334 - 1280) + chr(50), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b101110 + 0o7) + '\x32', 0o10), ehT0Px3KOsy9(chr(340 - 292) + chr(0b111100 + 0o63) + chr(0b110100) + chr(0b11010 + 0o27), ord("\x08")), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + chr(0b101001 + 0o11) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100110 + 0o13) + '\x36' + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\064' + chr(1348 - 1294), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + chr(0b111 + 0o53) + chr(0b11010 + 0o32) + '\x36', 0o10), ehT0Px3KOsy9(chr(1226 - 1178) + chr(4726 - 4615) + '\061' + chr(1977 - 1923) + chr(50), 8), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(8081 - 7970) + chr(934 - 883) + chr(0b110011) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(2514 - 2462), 56490 - 56482), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\157' + '\062' + chr(49) + chr(0b100001 + 0o25), 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + chr(1150 - 1100) + chr(0b100110 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + chr(49) + '\x34' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(49) + chr(74 - 25), 8), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(111) + chr(0b10110 + 0o35) + '\064', 8), ehT0Px3KOsy9(chr(48) + chr(1099 - 988) + chr(55) + chr(0b100111 + 0o14), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(118 - 65) + chr(0b110001), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1101000 + 0o7) + '\x35' + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xff'), chr(0b101011 + 0o71) + '\145' + chr(0b1100011) + chr(0b111100 + 0o63) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def hvmrINhTaZN9(oVre8I6UXc3b, ivKL3OIGGU8m): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\x1b\x12L\xd3\x8a\x85\x0c\xeb\xed\x9b\x81'), '\x64' + chr(0b10010 + 0o123) + chr(5074 - 4975) + '\157' + chr(0b1001010 + 0o32) + '\x65')(chr(12022 - 11905) + chr(3395 - 3279) + chr(102) + chr(0b10000 + 0o35) + '\x38')): return if not c2A0yzQpDQB3(ivKL3OIGGU8m): return if not PlSM16l2KDPD(ivKL3OIGGU8m, QC9iu2kLpS8s): ivKL3OIGGU8m = QC9iu2kLpS8s(ivKL3OIGGU8m) if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x10MN\xc6\xf1\xe44\xc8\xb9\x8e\xb5'), chr(100) + chr(767 - 666) + chr(0b100000 + 0o103) + chr(111) + chr(0b1100100) + chr(0b1000111 + 0o36))('\165' + chr(2610 - 2494) + '\146' + chr(0b1001 + 0o44) + chr(148 - 92))): if xafqLlk3kkUe(ivKL3OIGGU8m, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x06K\x08\xc8\xba\xcb2\xf9\xe2'), chr(900 - 800) + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(1954 - 1898)))(xafqLlk3kkUe(aABRNn2PDIOX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93=g%\xe9\x9d\xfac'), '\x64' + chr(0b111001 + 0o54) + chr(1819 - 1720) + '\x6f' + chr(0b1011100 + 0o10) + '\145')(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\070'))): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), chr(100) + chr(101) + chr(99) + chr(0b1101111 + 0o0) + chr(0b1011110 + 0o6) + chr(0b10000 + 0o125))('\x75' + chr(0b1110100) + chr(9357 - 9255) + '\055' + chr(56)): xafqLlk3kkUe(SXOLrMavuUCe(b'\x84&lW\x84\xe4\xef\x12\xca'), chr(0b101010 + 0o72) + chr(101) + chr(99) + chr(0b1101111) + chr(8299 - 8199) + '\145')(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), '\144' + chr(0b10101 + 0o120) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b10100 + 0o121))('\x75' + chr(10893 - 10777) + chr(0b100000 + 0o106) + chr(0b101101) + '\070'): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), chr(100) + chr(0b1001100 + 0o31) + '\143' + chr(0b100011 + 0o114) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(0b101001 + 0o4) + '\070'): xafqLlk3kkUe(SXOLrMavuUCe(b''), '\x64' + chr(8740 - 8639) + '\x63' + chr(0b110 + 0o151) + '\x64' + chr(0b1000010 + 0o43))('\x75' + chr(116) + chr(0b11100 + 0o112) + '\x2d' + '\x38')} elif xafqLlk3kkUe(ivKL3OIGGU8m, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x06K\x08\xc8\xba\xcb2\xf9\xe2'), chr(0b1100010 + 0o2) + chr(0b1100101) + chr(4937 - 4838) + '\x6f' + '\x64' + chr(101))(chr(6914 - 6797) + chr(116) + chr(102) + chr(1522 - 1477) + chr(56)))((xafqLlk3kkUe(aABRNn2PDIOX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93=g%\xe9\x9d\xfah\xbf\xd5\xbb\x91'), chr(9571 - 9471) + chr(101) + chr(99) + chr(0b100001 + 0o116) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b110011 + 0o101) + '\x66' + '\x2d' + chr(0b101011 + 0o15))), xafqLlk3kkUe(aABRNn2PDIOX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93=g%\xe9\x9d\xfah\xbf\xd5\xb5\x91'), '\x64' + '\x65' + '\x63' + chr(12130 - 12019) + chr(0b101010 + 0o72) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(0b11010 + 0o36))))): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), chr(100) + chr(8622 - 8521) + chr(0b1100011) + chr(0b1101100 + 0o3) + chr(0b1100100) + chr(1265 - 1164))(chr(2368 - 2251) + chr(116) + '\146' + '\055' + chr(0b111000)): xafqLlk3kkUe(SXOLrMavuUCe(b'\x84&lW\x8f\xfb'), '\144' + chr(0b1100101) + '\x63' + chr(4668 - 4557) + '\144' + chr(8008 - 7907))(chr(0b1101000 + 0o15) + chr(116) + chr(0b1100110) + chr(1526 - 1481) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), chr(0b111011 + 0o51) + '\x65' + chr(0b100011 + 0o100) + chr(0b111000 + 0o67) + chr(0b1100100) + '\x65')('\165' + '\164' + chr(0b101000 + 0o76) + chr(122 - 77) + '\x38'): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), '\144' + '\x65' + '\x63' + chr(3425 - 3314) + '\x64' + chr(0b111101 + 0o50))(chr(0b1110101) + '\164' + '\x66' + chr(137 - 92) + chr(56)): xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(2274 - 2163) + chr(0b1100100) + chr(101))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + chr(56))} elif xafqLlk3kkUe(ivKL3OIGGU8m, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x06K\x08\xc8\xba\xcb2\xf9\xe2'), chr(0b110000 + 0o64) + '\145' + '\143' + chr(11202 - 11091) + '\x64' + '\x65')('\165' + '\x74' + '\146' + '\055' + '\070'))(SXOLrMavuUCe(b'/\x8d*z')): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), chr(133 - 33) + chr(101) + chr(99) + '\x6f' + '\x64' + chr(101))(chr(117) + '\164' + chr(102) + chr(45) + '\x38'): xafqLlk3kkUe(SXOLrMavuUCe(b'\x89_c)\xf3\xe4\x8dk\xbb\xbe\xc1\xf9+\x06#K\xc7\xc9S\xbb\x07.'), chr(3468 - 3368) + '\x65' + chr(0b11111 + 0o104) + chr(0b110100 + 0o73) + chr(100) + '\x65')(chr(0b1000010 + 0o63) + chr(116) + '\146' + chr(0b101101) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), chr(0b1100100) + chr(101) + '\143' + chr(4433 - 4322) + chr(6437 - 6337) + '\145')(chr(0b110111 + 0o76) + chr(0b10000 + 0o144) + '\x66' + '\x2d' + chr(698 - 642)): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), '\x64' + chr(101) + chr(0b111101 + 0o46) + chr(3450 - 3339) + chr(100) + chr(0b1010101 + 0o20))(chr(0b1000 + 0o155) + chr(0b1001100 + 0o50) + '\x66' + chr(45) + chr(0b101010 + 0o16)): xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + '\x65' + chr(0b1100001 + 0o2) + '\x6f' + '\144' + chr(101))('\165' + chr(0b1110100) + chr(6164 - 6062) + '\x2d' + chr(2127 - 2071))} elif xafqLlk3kkUe(ivKL3OIGGU8m, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x06K\x08\xc8\xba\xcb2\xf9\xe2'), chr(0b1100 + 0o130) + chr(0b100101 + 0o100) + '\x63' + chr(111) + '\144' + chr(0b1100101))(chr(5299 - 5182) + chr(116) + '\x66' + chr(1316 - 1271) + chr(0b111000)))(SXOLrMavuUCe(b'\xd1r\xd5\x84')): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), '\x64' + chr(0b1100101) + chr(6905 - 6806) + chr(11879 - 11768) + chr(100) + chr(101))(chr(0b1110101) + chr(116) + chr(0b10 + 0o144) + chr(0b11010 + 0o23) + '\x38'): xafqLlk3kkUe(SXOLrMavuUCe(b'\x89_c)\xf3\xe4\x8dk\xbb\xbe\xc1\xf9+\x06#K\xc7\xc9R\xbe\x02/'), chr(0b1100100) + chr(0b110000 + 0o65) + chr(8393 - 8294) + '\x6f' + chr(0b110101 + 0o57) + chr(0b1100101))(chr(2036 - 1919) + chr(0b1110100) + chr(8529 - 8427) + chr(45) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), chr(0b111 + 0o135) + chr(0b110001 + 0o64) + chr(0b1010001 + 0o22) + chr(0b101101 + 0o102) + chr(7148 - 7048) + chr(101))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(0b111000)): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), chr(610 - 510) + chr(101) + '\x63' + chr(0b1010101 + 0o32) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + chr(6205 - 6103) + chr(45) + '\x38'): xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(8463 - 8363) + '\x65' + chr(0b1011101 + 0o6) + '\157' + chr(100) + '\145')('\165' + chr(116) + chr(102) + chr(0b101101) + chr(1494 - 1438))} elif xafqLlk3kkUe(ivKL3OIGGU8m, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x06K\x08\xc8\xba\xcb2\xf9\xe2'), chr(9040 - 8940) + chr(2054 - 1953) + chr(0b1100011) + '\157' + '\144' + '\145')(chr(0b1100110 + 0o17) + chr(116) + '\146' + chr(755 - 710) + chr(0b111000)))((xafqLlk3kkUe(aABRNn2PDIOX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93=g%\xf0\x8c'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(4930 - 4819) + '\144' + '\145')(chr(2828 - 2711) + chr(0b1110100) + chr(102) + chr(1429 - 1384) + chr(0b100 + 0o64))), xafqLlk3kkUe(aABRNn2PDIOX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93=g%\xfe\x8c'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(0b1011111 + 0o5) + '\145')(chr(249 - 132) + '\x74' + chr(3760 - 3658) + '\055' + chr(475 - 419))))): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), chr(246 - 146) + '\145' + chr(0b10010 + 0o121) + chr(0b1101111) + chr(0b1100100) + chr(8022 - 7921))(chr(0b1110101) + chr(0b1101 + 0o147) + '\x66' + chr(919 - 874) + chr(56)): xafqLlk3kkUe(SXOLrMavuUCe(b'\x84&lW\x8d\xff'), chr(100) + chr(9132 - 9031) + chr(99) + chr(2914 - 2803) + chr(0b1100100) + chr(101))(chr(0b101 + 0o160) + '\164' + chr(102) + chr(45) + chr(3011 - 2955)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), chr(0b1100100) + '\145' + chr(1499 - 1400) + chr(0b1101111) + '\x64' + chr(0b1001110 + 0o27))(chr(0b10000 + 0o145) + '\x74' + chr(0b1100110) + chr(133 - 88) + chr(0b1010 + 0o56)): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), chr(0b1100100) + '\145' + chr(0b1001100 + 0o27) + '\157' + '\x64' + chr(101))(chr(117) + chr(116) + chr(0b1011000 + 0o16) + chr(0b101101) + chr(0b111000)): xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b111000 + 0o54) + '\145' + chr(8511 - 8412) + chr(8626 - 8515) + chr(0b11011 + 0o111) + chr(0b1010111 + 0o16))('\165' + '\x74' + chr(5823 - 5721) + '\x2d' + '\x38')} oVre8I6UXc3b.cbg4z8XoE3ya = ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + chr(369 - 320), 57296 - 57288) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x82\x1ap\x17\xf9\x82\xda\x0f\xe6\xcb\xb8\x8e'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100000 + 0o6) + chr(0b0 + 0o55) + '\x38'))[xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), chr(0b1001111 + 0o25) + '\145' + '\143' + '\157' + chr(100) + '\x65')(chr(4602 - 4485) + chr(0b110101 + 0o77) + chr(102) + chr(1124 - 1079) + chr(0b111000))] is not None: oVre8I6UXc3b.Ki86oC9WfglU = ehT0Px3KOsy9(chr(1972 - 1924) + '\x6f' + chr(0b110001), 8) return if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7$o.\x85\xa3\xef<\xb5\xbe\x92\xb3'), '\x64' + chr(0b10101 + 0o120) + '\x63' + '\157' + chr(100) + chr(3334 - 3233))('\x75' + chr(116) + chr(0b110111 + 0o57) + chr(732 - 687) + chr(56))) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b"\x81'x?\xe3\x88\xef\x18\xc4\xc3"), chr(100) + chr(0b1100101) + chr(99) + chr(0b0 + 0o157) + '\144' + chr(0b1001101 + 0o30))(chr(117) + chr(116) + chr(0b1000000 + 0o46) + chr(45) + '\070')): if xafqLlk3kkUe(oVre8I6UXc3b.HIGH_BYTE_DETECTOR, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x17K\x08\xdf\xa1'), chr(7028 - 6928) + '\x65' + chr(0b111010 + 0o51) + chr(0b1000100 + 0o53) + chr(8923 - 8823) + chr(0b1100101))(chr(2258 - 2141) + chr(116) + chr(102) + chr(1870 - 1825) + '\x38'))(ivKL3OIGGU8m): oVre8I6UXc3b.fVET9jSg84eg = w1VftphJANkW.HIGH_BYTE elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7$o.\x85\xa3\xef<\xb5\xbe\x92\xb3'), chr(0b1100100) + chr(101) + chr(2375 - 2276) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(10256 - 10140) + chr(0b1100110) + chr(45) + chr(0b110011 + 0o5))) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b"\x81'x?\xe3\x88\xef\x18\xc4\xc3"), chr(0b1100100) + chr(0b1011100 + 0o11) + '\143' + chr(7386 - 7275) + '\x64' + chr(0b1000110 + 0o37))(chr(0b1001011 + 0o52) + chr(116) + '\x66' + chr(0b11111 + 0o16) + '\070')) and xafqLlk3kkUe(oVre8I6UXc3b.ESC_DETECTOR, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x17K\x08\xdf\xa1'), '\x64' + chr(0b100110 + 0o77) + chr(5451 - 5352) + chr(0b101011 + 0o104) + chr(100) + '\x65')(chr(0b1101011 + 0o12) + chr(0b1111 + 0o145) + '\x66' + '\x2d' + chr(0b111000 + 0o0)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x89E_)\xdb\x99\xed8\xf9\xc7\xb2\x8e'), chr(100) + '\145' + '\x63' + '\157' + '\x64' + '\x65')(chr(117) + chr(1680 - 1564) + chr(102) + chr(0b101101) + chr(0b100000 + 0o30))) + ivKL3OIGGU8m): oVre8I6UXc3b.fVET9jSg84eg = w1VftphJANkW.ESC_ASCII oVre8I6UXc3b.X7uSgPQctMEZ = ivKL3OIGGU8m[-ehT0Px3KOsy9('\060' + chr(9154 - 9043) + chr(0b110001), 8):] if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7$o.\x85\xa3\xef<\xb5\xbe\x92\xb3'), chr(100) + chr(0b1010 + 0o133) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(5600 - 5499))(chr(0b1100101 + 0o20) + chr(116) + '\146' + chr(45) + '\x38')) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b'\x94!i%\xfd\x9a\xff\x12\xc4'), chr(0b101 + 0o137) + chr(0b100100 + 0o101) + chr(2836 - 2737) + chr(3096 - 2985) + chr(8647 - 8547) + chr(0b1000000 + 0o45))(chr(0b1110101) + '\x74' + chr(0b11001 + 0o115) + chr(45) + '\070')): if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8e\x17Y\x19\xe3\xaa\xd4:\xff\xf9\x92\xa0!5\x02\t\x91\x81\x12'), chr(100) + chr(101) + chr(6490 - 6391) + chr(0b1101111) + chr(100) + chr(8125 - 8024))(chr(0b10111 + 0o136) + chr(11413 - 11297) + '\146' + chr(0b101101) + chr(2593 - 2537))): oVre8I6UXc3b.RlOFBvWdSabV = XaQT5U3f7ifW(oVre8I6UXc3b.lang_filter) if xafqLlk3kkUe(oVre8I6UXc3b._esc_charset_prober, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7\x17O\x1e'), chr(9975 - 9875) + chr(5209 - 5108) + chr(0b10101 + 0o116) + '\x6f' + chr(100) + '\145')(chr(4495 - 4378) + '\164' + chr(0b1100110) + '\x2d' + chr(2360 - 2304)))(ivKL3OIGGU8m) == xafqLlk3kkUe(qK9j6qjcKxRA, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97=\x7f4\xf8\x96\xf5\x0f'), chr(100) + chr(101) + chr(0b1100011) + chr(11861 - 11750) + chr(7121 - 7021) + chr(708 - 607))(chr(0b1110101) + '\x74' + chr(0b1000101 + 0o41) + '\055' + chr(0b111000))): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), '\x64' + chr(101) + '\143' + chr(0b1100011 + 0o14) + chr(100) + chr(0b1100101))(chr(0b1100101 + 0o20) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b100001 + 0o27)): oVre8I6UXc3b._esc_charset_prober.charset_name, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), chr(0b11100 + 0o110) + '\x65' + chr(4202 - 4103) + '\x6f' + chr(100) + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(8291 - 8175) + chr(0b1100110) + chr(1904 - 1859) + '\x38'): oVre8I6UXc3b._esc_charset_prober.get_confidence(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), chr(0b1100100) + chr(1626 - 1525) + chr(99) + chr(0b1101111) + chr(3322 - 3222) + chr(0b1100101))(chr(0b11001 + 0o134) + chr(0b1110100) + chr(102) + chr(1576 - 1531) + chr(0b1101 + 0o53)): oVre8I6UXc3b._esc_charset_prober.language} oVre8I6UXc3b.Ki86oC9WfglU = ehT0Px3KOsy9(chr(0b110000) + chr(6948 - 6837) + chr(0b100001 + 0o20), 8) elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7$o.\x85\xa3\xef<\xb5\xbe\x92\xb3'), '\144' + chr(101) + chr(99) + chr(0b100111 + 0o110) + chr(4099 - 3999) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b111000))) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b'\x99;m2\xe3\x8b\xe5\x0f\xc8'), chr(0b110011 + 0o61) + chr(6729 - 6628) + chr(0b11000 + 0o113) + chr(111) + chr(1381 - 1281) + chr(0b1100101))(chr(8341 - 8224) + chr(0b1110100) + chr(0b11111 + 0o107) + chr(1043 - 998) + chr(2491 - 2435))): if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8e\x11B\x1b\xce\xba\xd9/\xd2\xfa\x85\xbb\x1c \x02\x15'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + '\144' + chr(9438 - 9337))('\x75' + chr(0b1001001 + 0o53) + '\x66' + chr(866 - 821) + chr(56))): oVre8I6UXc3b.FniULccpnbV6 = [RYHqOSzhupOk(oVre8I6UXc3b.lang_filter)] if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xe3\xaf\xd57\xf9\xef\x85'), chr(0b1100100) + chr(0b101010 + 0o73) + chr(3636 - 3537) + chr(0b1011101 + 0o22) + chr(487 - 387) + '\145')('\165' + chr(0b111110 + 0o66) + chr(0b1100110) + chr(145 - 100) + chr(0b110011 + 0o5))) & xafqLlk3kkUe(rQ0cD4cjfGPs, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f=d%\xff\x83\xf7'), chr(0b111010 + 0o52) + chr(0b1000010 + 0o43) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1011 + 0o132))('\x75' + chr(116) + '\146' + chr(45) + chr(2554 - 2498))): xafqLlk3kkUe(oVre8I6UXc3b._charset_probers, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0\x02Z\x1f\xd2\xad'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(0b1100011) + chr(0b1101111) + chr(0b111010 + 0o52) + chr(8934 - 8833))(chr(0b1100100 + 0o21) + '\164' + chr(0b1100110) + '\055' + chr(0b100110 + 0o22)))(_PMI4ViQteuE()) xafqLlk3kkUe(oVre8I6UXc3b._charset_probers, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0\x02Z\x1f\xd2\xad'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(3622 - 3522) + chr(0b1100101))(chr(0b1110101) + chr(8123 - 8007) + chr(0b1100110) + chr(0b101101) + chr(184 - 128)))(gD74vBw0azNo()) for YGABugtwSK3V in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97\x1cC/\xf0\xaa\xdf+\xe3\xe8\xa1\xe2'), chr(0b100 + 0o140) + chr(0b1100101) + chr(0b1011111 + 0o4) + '\157' + chr(0b101101 + 0o67) + chr(9266 - 9165))(chr(1950 - 1833) + chr(0b1110100) + '\146' + chr(2017 - 1972) + chr(0b100111 + 0o21))): if xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7\x17O\x1e'), chr(0b1101 + 0o127) + '\145' + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(12904 - 12788) + '\146' + '\055' + '\x38'))(ivKL3OIGGU8m) == xafqLlk3kkUe(qK9j6qjcKxRA, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97=\x7f4\xf8\x96\xf5\x0f'), chr(1632 - 1532) + '\145' + chr(0b1100011) + chr(111) + chr(0b101111 + 0o65) + '\x65')(chr(0b1110101) + chr(8578 - 8462) + chr(0b1100110) + '\055' + '\x38')): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4\x1cI\x15\xd8\xa0\xd2<'), '\x64' + chr(0b101110 + 0o67) + '\x63' + '\157' + chr(1333 - 1233) + '\145')(chr(5759 - 5642) + '\164' + chr(0b11101 + 0o111) + '\x2d' + chr(2973 - 2917)): YGABugtwSK3V.charset_name, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x1dD\x1c\xd5\xad\xd95\xee\xef'), '\x64' + chr(0b1001101 + 0o30) + chr(99) + '\x6f' + chr(100) + '\145')(chr(117) + '\164' + chr(0b1100110) + chr(285 - 240) + '\070'): YGABugtwSK3V.get_confidence(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x13D\x1d\xc9\xa8\xdb>'), chr(0b1100100) + chr(0b1000111 + 0o36) + chr(6211 - 6112) + '\x6f' + chr(0b1011000 + 0o14) + '\x65')(chr(117) + '\164' + '\x66' + chr(0b101101) + '\x38'): YGABugtwSK3V.language} oVre8I6UXc3b.Ki86oC9WfglU = ehT0Px3KOsy9('\060' + chr(5992 - 5881) + chr(0b1 + 0o60), 8) break if xafqLlk3kkUe(oVre8I6UXc3b.WIN_BYTE_DETECTOR, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\x17K\x08\xdf\xa1'), '\x64' + chr(101) + chr(0b1100011) + '\x6f' + chr(7742 - 7642) + '\x65')(chr(3541 - 3424) + chr(0b10001 + 0o143) + chr(0b110101 + 0o61) + '\x2d' + chr(0b111000)))(ivKL3OIGGU8m): oVre8I6UXc3b.Z4u5OStPAOT9 = ehT0Px3KOsy9('\x30' + chr(6533 - 6422) + '\x31', 8)
pypa/pipenv
pipenv/vendor/chardet/universaldetector.py
UniversalDetector.close
def close(self): """ Stop analyzing the current document and come up with a final prediction. :returns: The ``result`` attribute, a ``dict`` with the keys `encoding`, `confidence`, and `language`. """ # Don't bother with checks if we're already done if self.done: return self.result self.done = True if not self._got_data: self.logger.debug('no data received!') # Default to ASCII if it is all we've seen so far elif self._input_state == InputState.PURE_ASCII: self.result = {'encoding': 'ascii', 'confidence': 1.0, 'language': ''} # If we have seen non-ASCII, return the best that met MINIMUM_THRESHOLD elif self._input_state == InputState.HIGH_BYTE: prober_confidence = None max_prober_confidence = 0.0 max_prober = None for prober in self._charset_probers: if not prober: continue prober_confidence = prober.get_confidence() if prober_confidence > max_prober_confidence: max_prober_confidence = prober_confidence max_prober = prober if max_prober and (max_prober_confidence > self.MINIMUM_THRESHOLD): charset_name = max_prober.charset_name lower_charset_name = max_prober.charset_name.lower() confidence = max_prober.get_confidence() # Use Windows encoding name instead of ISO-8859 if we saw any # extra Windows-specific bytes if lower_charset_name.startswith('iso-8859'): if self._has_win_bytes: charset_name = self.ISO_WIN_MAP.get(lower_charset_name, charset_name) self.result = {'encoding': charset_name, 'confidence': confidence, 'language': max_prober.language} # Log all prober confidences if none met MINIMUM_THRESHOLD if self.logger.getEffectiveLevel() == logging.DEBUG: if self.result['encoding'] is None: self.logger.debug('no probers hit minimum threshold') for group_prober in self._charset_probers: if not group_prober: continue if isinstance(group_prober, CharSetGroupProber): for prober in group_prober.probers: self.logger.debug('%s %s confidence = %s', prober.charset_name, prober.language, prober.get_confidence()) else: self.logger.debug('%s %s confidence = %s', prober.charset_name, prober.language, prober.get_confidence()) return self.result
python
def close(self): """ Stop analyzing the current document and come up with a final prediction. :returns: The ``result`` attribute, a ``dict`` with the keys `encoding`, `confidence`, and `language`. """ # Don't bother with checks if we're already done if self.done: return self.result self.done = True if not self._got_data: self.logger.debug('no data received!') # Default to ASCII if it is all we've seen so far elif self._input_state == InputState.PURE_ASCII: self.result = {'encoding': 'ascii', 'confidence': 1.0, 'language': ''} # If we have seen non-ASCII, return the best that met MINIMUM_THRESHOLD elif self._input_state == InputState.HIGH_BYTE: prober_confidence = None max_prober_confidence = 0.0 max_prober = None for prober in self._charset_probers: if not prober: continue prober_confidence = prober.get_confidence() if prober_confidence > max_prober_confidence: max_prober_confidence = prober_confidence max_prober = prober if max_prober and (max_prober_confidence > self.MINIMUM_THRESHOLD): charset_name = max_prober.charset_name lower_charset_name = max_prober.charset_name.lower() confidence = max_prober.get_confidence() # Use Windows encoding name instead of ISO-8859 if we saw any # extra Windows-specific bytes if lower_charset_name.startswith('iso-8859'): if self._has_win_bytes: charset_name = self.ISO_WIN_MAP.get(lower_charset_name, charset_name) self.result = {'encoding': charset_name, 'confidence': confidence, 'language': max_prober.language} # Log all prober confidences if none met MINIMUM_THRESHOLD if self.logger.getEffectiveLevel() == logging.DEBUG: if self.result['encoding'] is None: self.logger.debug('no probers hit minimum threshold') for group_prober in self._charset_probers: if not group_prober: continue if isinstance(group_prober, CharSetGroupProber): for prober in group_prober.probers: self.logger.debug('%s %s confidence = %s', prober.charset_name, prober.language, prober.get_confidence()) else: self.logger.debug('%s %s confidence = %s', prober.charset_name, prober.language, prober.get_confidence()) return self.result
[ "def", "close", "(", "self", ")", ":", "# Don't bother with checks if we're already done", "if", "self", ".", "done", ":", "return", "self", ".", "result", "self", ".", "done", "=", "True", "if", "not", "self", ".", "_got_data", ":", "self", ".", "logger", ".", "debug", "(", "'no data received!'", ")", "# Default to ASCII if it is all we've seen so far", "elif", "self", ".", "_input_state", "==", "InputState", ".", "PURE_ASCII", ":", "self", ".", "result", "=", "{", "'encoding'", ":", "'ascii'", ",", "'confidence'", ":", "1.0", ",", "'language'", ":", "''", "}", "# If we have seen non-ASCII, return the best that met MINIMUM_THRESHOLD", "elif", "self", ".", "_input_state", "==", "InputState", ".", "HIGH_BYTE", ":", "prober_confidence", "=", "None", "max_prober_confidence", "=", "0.0", "max_prober", "=", "None", "for", "prober", "in", "self", ".", "_charset_probers", ":", "if", "not", "prober", ":", "continue", "prober_confidence", "=", "prober", ".", "get_confidence", "(", ")", "if", "prober_confidence", ">", "max_prober_confidence", ":", "max_prober_confidence", "=", "prober_confidence", "max_prober", "=", "prober", "if", "max_prober", "and", "(", "max_prober_confidence", ">", "self", ".", "MINIMUM_THRESHOLD", ")", ":", "charset_name", "=", "max_prober", ".", "charset_name", "lower_charset_name", "=", "max_prober", ".", "charset_name", ".", "lower", "(", ")", "confidence", "=", "max_prober", ".", "get_confidence", "(", ")", "# Use Windows encoding name instead of ISO-8859 if we saw any", "# extra Windows-specific bytes", "if", "lower_charset_name", ".", "startswith", "(", "'iso-8859'", ")", ":", "if", "self", ".", "_has_win_bytes", ":", "charset_name", "=", "self", ".", "ISO_WIN_MAP", ".", "get", "(", "lower_charset_name", ",", "charset_name", ")", "self", ".", "result", "=", "{", "'encoding'", ":", "charset_name", ",", "'confidence'", ":", "confidence", ",", "'language'", ":", "max_prober", ".", "language", "}", "# Log all prober confidences if none met MINIMUM_THRESHOLD", "if", "self", ".", "logger", ".", "getEffectiveLevel", "(", ")", "==", "logging", ".", "DEBUG", ":", "if", "self", ".", "result", "[", "'encoding'", "]", "is", "None", ":", "self", ".", "logger", ".", "debug", "(", "'no probers hit minimum threshold'", ")", "for", "group_prober", "in", "self", ".", "_charset_probers", ":", "if", "not", "group_prober", ":", "continue", "if", "isinstance", "(", "group_prober", ",", "CharSetGroupProber", ")", ":", "for", "prober", "in", "group_prober", ".", "probers", ":", "self", ".", "logger", ".", "debug", "(", "'%s %s confidence = %s'", ",", "prober", ".", "charset_name", ",", "prober", ".", "language", ",", "prober", ".", "get_confidence", "(", ")", ")", "else", ":", "self", ".", "logger", ".", "debug", "(", "'%s %s confidence = %s'", ",", "prober", ".", "charset_name", ",", "prober", ".", "language", ",", "prober", ".", "get_confidence", "(", ")", ")", "return", "self", ".", "result" ]
Stop analyzing the current document and come up with a final prediction. :returns: The ``result`` attribute, a ``dict`` with the keys `encoding`, `confidence`, and `language`.
[ "Stop", "analyzing", "the", "current", "document", "and", "come", "up", "with", "a", "final", "prediction", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/chardet/universaldetector.py#L220-L286
train
Stop analyzing the current document and come up with a final AttributeNames prediction.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToT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f_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(111) + chr(53) + '\067', 0o10), ehT0Px3KOsy9(chr(2181 - 2133) + chr(0b10100 + 0o133) + chr(1316 - 1267) + chr(51) + chr(0b100001 + 0o17), 12572 - 12564), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(0b1000 + 0o147) + chr(0b100 + 0o55) + '\x32' + chr(1044 - 989), ord("\x08")), ehT0Px3KOsy9(chr(700 - 652) + chr(6100 - 5989) + '\x31' + chr(50) + chr(0b110101), 51787 - 51779), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1101111) + chr(50) + chr(0b110010) + chr(1855 - 1806), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(111) + chr(50) + chr(0b110110) + chr(0b110000), 40606 - 40598), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(0b110100) + chr(499 - 450), 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(7579 - 7468) + '\061' + chr(1444 - 1396) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(97 - 45) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(9281 - 9170) + '\x31' + chr(0b1111 + 0o50) + chr(0b110101), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x36' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(1597 - 1549) + chr(0b11 + 0o154) + chr(51) + chr(0b110 + 0o53) + chr(0b101100 + 0o7), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b110011) + chr(0b110101 + 0o1), ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + chr(344 - 294) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\067' + chr(2171 - 2116), ord("\x08")), ehT0Px3KOsy9(chr(2050 - 2002) + '\157' + '\x34' + '\061', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101101 + 0o4) + chr(55) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(946 - 898) + '\x6f' + chr(51) + chr(0b11100 + 0o26) + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + '\060' + chr(2552 - 2499), 0o10), ehT0Px3KOsy9('\060' + chr(11514 - 11403) + '\x31' + '\062' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(147 - 98) + chr(0b110110) + chr(2483 - 2431), 0b1000), ehT0Px3KOsy9('\x30' + chr(8610 - 8499) + chr(49) + chr(1797 - 1749) + chr(0b100111 + 0o11), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\x32' + '\065', 8), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(0b110100) + chr(2064 - 2015), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010111 + 0o30) + chr(0b10001 + 0o40) + chr(0b100 + 0o54) + chr(1991 - 1939), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100001 + 0o116) + chr(0b110110) + chr(175 - 122), 0b1000), ehT0Px3KOsy9(chr(723 - 675) + '\157' + chr(49) + chr(0b101 + 0o60) + '\x37', 43225 - 43217), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(572 - 523) + '\064' + chr(0b110100), 39864 - 39856), ehT0Px3KOsy9(chr(1465 - 1417) + chr(2149 - 2038) + chr(50) + '\x34' + chr(474 - 422), ord("\x08")), ehT0Px3KOsy9(chr(927 - 879) + chr(0b1001101 + 0o42) + chr(0b101001 + 0o12) + chr(54) + chr(0b101010 + 0o12), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + '\x30' + '\064', 8), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(50) + '\065' + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(111) + chr(49) + chr(0b100000 + 0o25) + '\066', 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b110010) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + '\063' + chr(0b110110) + chr(1337 - 1288), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1408 - 1359) + chr(54) + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + chr(0b110110) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(2065 - 2017) + '\x6f' + chr(0b1110 + 0o44) + chr(49) + '\065', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\157' + chr(0b110001 + 0o4) + chr(0b11100 + 0o24), 63848 - 63840)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x01'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(5158 - 5041) + chr(0b111011 + 0o71) + chr(0b1001110 + 0o30) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def MkcqzDT3iB5h(oVre8I6UXc3b): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'd1oc\xfe\xf3\x98\x10\x85\x1aZ\x9e'), chr(0b1100100) + chr(0b1011010 + 0o13) + chr(99) + chr(111) + chr(4691 - 4591) + chr(0b1101 + 0o130))(chr(0b101011 + 0o112) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000 + 0o0))): return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|0\r8\xd4\xfb\xc7\x13\x88<y\x91'), chr(0b1011110 + 0o6) + chr(101) + chr(99) + '\x6f' + '\x64' + '\145')(chr(0b1010010 + 0o43) + chr(0b1010010 + 0o42) + chr(0b1100110) + chr(0b101101) + chr(0b111000))) oVre8I6UXc3b.Ki86oC9WfglU = ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101 + 0o142) + chr(49), ord("\x08")) if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'L:0a\xeb\x88\xf9(\xa6NO\xaa'), '\144' + '\x65' + '\x63' + chr(0b10011 + 0o134) + chr(0b1100100) + '\x65')(chr(4310 - 4193) + chr(0b111101 + 0o67) + chr(0b1010 + 0o134) + chr(0b101101) + chr(0b101000 + 0o20))): xafqLlk3kkUe(oVre8I6UXc3b.logger, xafqLlk3kkUe(SXOLrMavuUCe(b'K=5 \xf6'), '\x64' + chr(101) + chr(0b1100011 + 0o0) + chr(0b1001110 + 0o41) + chr(0b1100100) + '\145')(chr(3256 - 3139) + chr(12036 - 11920) + chr(102) + chr(0b101100 + 0o1) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'A7w1\xf0\xc4\xc0g\x91\x18U\xae\xf7g\xdaE^'), chr(3713 - 3613) + chr(7447 - 7346) + chr(9130 - 9031) + chr(111) + '\144' + chr(0b11001 + 0o114))(chr(0b1110101) + chr(1143 - 1027) + chr(0b1100110) + '\055' + chr(56))) elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'I\x0e\x12\x01\xa8\xda\xf2 \xdbIS\xac'), '\x64' + '\145' + '\143' + '\x6f' + '\144' + '\x65')('\165' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000))) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b'\x7f\r\x05\x10\xce\xf1\xf2\x04\xaa4'), '\x64' + chr(2967 - 2866) + '\143' + '\x6f' + chr(6891 - 6791) + chr(4777 - 4676))(chr(117) + '\164' + chr(1854 - 1752) + '\055' + chr(1901 - 1845))): oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'J64:\xf5\xd9\xcf '), chr(0b10001 + 0o123) + chr(1194 - 1093) + chr(0b1100011) + '\157' + '\144' + chr(8710 - 8609))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(56)): xafqLlk3kkUe(SXOLrMavuUCe(b'N+4<\xf8'), chr(2040 - 1940) + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(117) + chr(116) + '\146' + '\x2d' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'L793\xf8\xd4\xc4)\x80\x18'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1010010 + 0o42) + '\146' + chr(0b101010 + 0o3) + '\x38'): 1.0, xafqLlk3kkUe(SXOLrMavuUCe(b'C992\xe4\xd1\xc6"'), '\x64' + '\x65' + chr(99) + chr(111) + chr(0b11111 + 0o105) + chr(0b1100101))(chr(0b1001100 + 0o51) + '\164' + chr(0b1100110) + '\055' + chr(1263 - 1207)): xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b1100100) + chr(0b1001111 + 0o26) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(2713 - 2596) + chr(0b1110100) + '\146' + chr(45) + chr(0b1000 + 0o60))} elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'I\x0e\x12\x01\xa8\xda\xf2 \xdbIS\xac'), chr(0b10101 + 0o117) + '\x65' + chr(99) + chr(7537 - 7426) + chr(0b1011110 + 0o6) + '\x65')('\165' + '\x74' + chr(0b0 + 0o146) + chr(45) + chr(1910 - 1854))) == xafqLlk3kkUe(w1VftphJANkW, xafqLlk3kkUe(SXOLrMavuUCe(b'g\x11\x10\x1d\xce\xf2\xf8\x13\xa6'), chr(740 - 640) + chr(0b111101 + 0o50) + chr(0b1100011) + chr(12041 - 11930) + chr(0b1110 + 0o126) + '\x65')(chr(9590 - 9473) + '\164' + '\x66' + '\x2d' + chr(0b111000))): fhAk2Diko_zJ = None vSyPJSgdQ3Wr = 0.0 M_W0TUp5cnDg = None for YGABugtwSK3V in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'i6>\x00\xdd\xd3\xc27\x8d\x1f`\xfd'), chr(0b1100000 + 0o4) + '\145' + '\143' + '\x6f' + chr(0b11010 + 0o112) + '\x65')(chr(0b1100101 + 0o20) + chr(538 - 422) + '\x66' + chr(0b101101) + chr(0b111000))): if not YGABugtwSK3V: continue fhAk2Diko_zJ = YGABugtwSK3V.get_confidence() if fhAk2Diko_zJ > vSyPJSgdQ3Wr: vSyPJSgdQ3Wr = fhAk2Diko_zJ M_W0TUp5cnDg = YGABugtwSK3V if M_W0TUp5cnDg and vSyPJSgdQ3Wr > xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'b\x11\x19\x1c\xdc\xe5\xec\x18\xb75d\x8e\xcdY\xf0m;'), chr(100) + chr(101) + '\x63' + '\157' + chr(0b1000110 + 0o36) + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + '\x38')): KLMI72NOomp4 = M_W0TUp5cnDg.charset_name akT1E6QfYtfX = M_W0TUp5cnDg.charset_name.lower() IGc_qm7pp85x = M_W0TUp5cnDg.get_confidence() if xafqLlk3kkUe(akT1E6QfYtfX, xafqLlk3kkUe(SXOLrMavuUCe(b"\\,6'\xe5\xc3\xd6.\x97\x15"), chr(0b1100000 + 0o4) + chr(0b10001 + 0o124) + chr(5778 - 5679) + '\157' + '\144' + '\x65')('\165' + '\x74' + '\x66' + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'F+8x\xa9\x88\x94~'), '\144' + chr(101) + chr(0b1100011) + chr(0b100111 + 0o110) + chr(2073 - 1973) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b10101 + 0o30) + chr(0b101110 + 0o12))): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'ul"`\xde\xe3\xd5\x17\xa22b\xf2'), '\144' + '\145' + chr(0b101110 + 0o65) + chr(3305 - 3194) + chr(0b1100100) + chr(2025 - 1924))('\165' + chr(11662 - 11546) + chr(102) + '\055' + chr(0b11 + 0o65))): KLMI72NOomp4 = oVre8I6UXc3b.ISO_WIN_MAP.get(akT1E6QfYtfX, KLMI72NOomp4) oVre8I6UXc3b.ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'J64:\xf5\xd9\xcf '), '\x64' + '\x65' + chr(5757 - 5658) + chr(0b100110 + 0o111) + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(4163 - 4061) + chr(0b101101) + chr(0b1110 + 0o52)): KLMI72NOomp4, xafqLlk3kkUe(SXOLrMavuUCe(b'L793\xf8\xd4\xc4)\x80\x18'), '\x64' + '\145' + chr(0b1100011) + chr(7346 - 7235) + '\144' + '\x65')(chr(0b110 + 0o157) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)): IGc_qm7pp85x, xafqLlk3kkUe(SXOLrMavuUCe(b'C992\xe4\xd1\xc6"'), chr(0b1010000 + 0o24) + '\x65' + chr(0b1001011 + 0o30) + chr(0b1101111) + chr(911 - 811) + '\x65')('\x75' + chr(0b100000 + 0o124) + chr(0b1100110) + chr(0b101101) + chr(0b110101 + 0o3)): M_W0TUp5cnDg.language} if xafqLlk3kkUe(oVre8I6UXc3b.logger, xafqLlk3kkUe(SXOLrMavuUCe(b'H=#\x10\xf7\xd6\xc4$\x97\x14@\xae\xd2t\xc9D\x13'), chr(0b1100100) + chr(4139 - 4038) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b11 + 0o142))('\165' + chr(5115 - 4999) + '\146' + '\055' + chr(3104 - 3048)))() == xafqLlk3kkUe(UeotCCWOPSQS, xafqLlk3kkUe(SXOLrMavuUCe(b'k\x1d\x15\x00\xd6'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(867 - 767) + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56))): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|0\r8\xd4\xfb\xc7\x13\x88<y\x91'), '\144' + '\x65' + chr(0b1001011 + 0o30) + '\157' + chr(100) + chr(9012 - 8911))(chr(9606 - 9489) + chr(8569 - 8453) + '\x66' + chr(45) + chr(300 - 244)))[xafqLlk3kkUe(SXOLrMavuUCe(b'J64:\xf5\xd9\xcf '), chr(100) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b1010001 + 0o25) + '\x2d' + '\x38')] is None: xafqLlk3kkUe(oVre8I6UXc3b.logger, xafqLlk3kkUe(SXOLrMavuUCe(b'K=5 \xf6'), '\x64' + chr(0b1100101) + chr(252 - 153) + chr(0b1010110 + 0o31) + chr(0b1111 + 0o125) + '\145')(chr(0b1010110 + 0o37) + chr(0b1110100) + '\x66' + '\055' + chr(0b100011 + 0o25)))(xafqLlk3kkUe(SXOLrMavuUCe(b'A7w%\xe3\xdf\xc3"\x91\x0e\x16\xa3\xf7e\x9fL\x16\xbb\xec9\x01-u\x95,G\ni\x0c\xcb\x98o'), chr(0b1100100) + '\145' + chr(2935 - 2836) + chr(0b1101111) + chr(0b10010 + 0o122) + chr(101))(chr(7529 - 7412) + chr(0b1110100) + '\x66' + chr(589 - 544) + chr(0b111000 + 0o0))) for e2CjeUPUxc4_ in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'i6>\x00\xdd\xd3\xc27\x8d\x1f`\xfd'), chr(0b1100000 + 0o4) + chr(0b1010110 + 0o17) + chr(5794 - 5695) + '\157' + chr(7991 - 7891) + chr(0b110000 + 0o65))(chr(117) + '\164' + chr(102) + chr(649 - 604) + chr(56))): if not e2CjeUPUxc4_: continue if PlSM16l2KDPD(e2CjeUPUxc4_, ZxuQXrh4kRMG): for YGABugtwSK3V in xafqLlk3kkUe(e2CjeUPUxc4_, xafqLlk3kkUe(SXOLrMavuUCe(b'_*87\xf4\xc2\xd2'), '\144' + chr(0b1011010 + 0o13) + chr(99) + chr(111) + '\144' + chr(0b101101 + 0o70))(chr(0b1110101) + '\164' + chr(9528 - 9426) + '\055' + chr(0b111000))): xafqLlk3kkUe(oVre8I6UXc3b.logger, xafqLlk3kkUe(SXOLrMavuUCe(b'K=5 \xf6'), '\144' + chr(101) + '\143' + chr(111) + '\144' + chr(7312 - 7211))('\165' + '\x74' + chr(0b101 + 0o141) + '\x2d' + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\n+wp\xe2\x90\xc2(\x8d\x1b_\xaf\xfb\x7f\xdcD_\xe8\xa5q\x07'), '\x64' + chr(0b1100101) + chr(2741 - 2642) + chr(0b110010 + 0o75) + '\144' + '\145')('\x75' + '\x74' + chr(548 - 446) + chr(1097 - 1052) + chr(3077 - 3021)), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b"L06'\xe2\xd5\xd5\x18\x8d\x1c[\xae"), '\x64' + chr(0b1001110 + 0o27) + '\143' + chr(11001 - 10890) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b111011 + 0o53) + chr(45) + '\070')), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'C992\xe4\xd1\xc6"'), chr(100) + chr(101) + chr(0b110011 + 0o60) + chr(0b1101111) + '\x64' + chr(101))(chr(1678 - 1561) + chr(116) + chr(0b1100110) + chr(45) + chr(0b10110 + 0o42))), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'H=#\n\xf2\xdf\xcf!\x8a\x19S\xa5\xfdt'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(7564 - 7448) + chr(0b10000 + 0o126) + '\055' + '\070'))()) else: xafqLlk3kkUe(oVre8I6UXc3b.logger, xafqLlk3kkUe(SXOLrMavuUCe(b'K=5 \xf6'), '\x64' + '\x65' + '\x63' + '\x6f' + '\144' + chr(9823 - 9722))(chr(0b1110101) + chr(5695 - 5579) + chr(6965 - 6863) + chr(738 - 693) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\n+wp\xe2\x90\xc2(\x8d\x1b_\xaf\xfb\x7f\xdcD_\xe8\xa5q\x07'), '\144' + chr(2137 - 2036) + chr(99) + '\157' + chr(0b1001111 + 0o25) + chr(0b1100101))(chr(11329 - 11212) + chr(116) + '\146' + chr(0b101101) + chr(56)), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b"L06'\xe2\xd5\xd5\x18\x8d\x1c[\xae"), chr(100) + chr(8112 - 8011) + chr(0b10010 + 0o121) + chr(111) + '\144' + chr(0b1000 + 0o135))('\165' + '\x74' + chr(102) + chr(0b11100 + 0o21) + '\x38')), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'C992\xe4\xd1\xc6"'), '\x64' + chr(101) + chr(6680 - 6581) + chr(8940 - 8829) + chr(4232 - 4132) + chr(0b100000 + 0o105))(chr(0b1110101) + chr(0b1110100) + chr(1456 - 1354) + '\x2d' + chr(0b0 + 0o70))), xafqLlk3kkUe(YGABugtwSK3V, xafqLlk3kkUe(SXOLrMavuUCe(b'H=#\n\xf2\xdf\xcf!\x8a\x19S\xa5\xfdt'), chr(0b111001 + 0o53) + chr(4440 - 4339) + chr(1371 - 1272) + chr(0b100001 + 0o116) + chr(634 - 534) + chr(0b1100101))('\165' + chr(116) + chr(7665 - 7563) + chr(1455 - 1410) + '\x38'))()) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|0\r8\xd4\xfb\xc7\x13\x88<y\x91'), chr(0b11010 + 0o112) + chr(101) + chr(6256 - 6157) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110000 + 0o5) + chr(0b1010111 + 0o35) + chr(0b1011111 + 0o7) + chr(45) + chr(400 - 344)))
pypa/pipenv
pipenv/vendor/pexpect/replwrap.py
bash
def bash(command="bash"): """Start a bash shell and return a :class:`REPLWrapper` object.""" bashrc = os.path.join(os.path.dirname(__file__), 'bashrc.sh') child = pexpect.spawn(command, ['--rcfile', bashrc], echo=False, encoding='utf-8') # If the user runs 'env', the value of PS1 will be in the output. To avoid # replwrap seeing that as the next prompt, we'll embed the marker characters # for invisible characters in the prompt; these show up when inspecting the # environment variable, but not when bash displays the prompt. ps1 = PEXPECT_PROMPT[:5] + u'\\[\\]' + PEXPECT_PROMPT[5:] ps2 = PEXPECT_CONTINUATION_PROMPT[:5] + u'\\[\\]' + PEXPECT_CONTINUATION_PROMPT[5:] prompt_change = u"PS1='{0}' PS2='{1}' PROMPT_COMMAND=''".format(ps1, ps2) return REPLWrapper(child, u'\\$', prompt_change, extra_init_cmd="export PAGER=cat")
python
def bash(command="bash"): """Start a bash shell and return a :class:`REPLWrapper` object.""" bashrc = os.path.join(os.path.dirname(__file__), 'bashrc.sh') child = pexpect.spawn(command, ['--rcfile', bashrc], echo=False, encoding='utf-8') # If the user runs 'env', the value of PS1 will be in the output. To avoid # replwrap seeing that as the next prompt, we'll embed the marker characters # for invisible characters in the prompt; these show up when inspecting the # environment variable, but not when bash displays the prompt. ps1 = PEXPECT_PROMPT[:5] + u'\\[\\]' + PEXPECT_PROMPT[5:] ps2 = PEXPECT_CONTINUATION_PROMPT[:5] + u'\\[\\]' + PEXPECT_CONTINUATION_PROMPT[5:] prompt_change = u"PS1='{0}' PS2='{1}' PROMPT_COMMAND=''".format(ps1, ps2) return REPLWrapper(child, u'\\$', prompt_change, extra_init_cmd="export PAGER=cat")
[ "def", "bash", "(", "command", "=", "\"bash\"", ")", ":", "bashrc", "=", "os", ".", "path", ".", "join", "(", "os", ".", "path", ".", "dirname", "(", "__file__", ")", ",", "'bashrc.sh'", ")", "child", "=", "pexpect", ".", "spawn", "(", "command", ",", "[", "'--rcfile'", ",", "bashrc", "]", ",", "echo", "=", "False", ",", "encoding", "=", "'utf-8'", ")", "# If the user runs 'env', the value of PS1 will be in the output. To avoid", "# replwrap seeing that as the next prompt, we'll embed the marker characters", "# for invisible characters in the prompt; these show up when inspecting the", "# environment variable, but not when bash displays the prompt.", "ps1", "=", "PEXPECT_PROMPT", "[", ":", "5", "]", "+", "u'\\\\[\\\\]'", "+", "PEXPECT_PROMPT", "[", "5", ":", "]", "ps2", "=", "PEXPECT_CONTINUATION_PROMPT", "[", ":", "5", "]", "+", "u'\\\\[\\\\]'", "+", "PEXPECT_CONTINUATION_PROMPT", "[", "5", ":", "]", "prompt_change", "=", "u\"PS1='{0}' PS2='{1}' PROMPT_COMMAND=''\"", ".", "format", "(", "ps1", ",", "ps2", ")", "return", "REPLWrapper", "(", "child", ",", "u'\\\\$'", ",", "prompt_change", ",", "extra_init_cmd", "=", "\"export PAGER=cat\"", ")" ]
Start a bash shell and return a :class:`REPLWrapper` object.
[ "Start", "a", "bash", "shell", "and", "return", "a", ":", "class", ":", "REPLWrapper", "object", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/pexpect/replwrap.py#L107-L122
train
Start a bash shell and return a REPLWrapper object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ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spL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110011) + '\066', 4819 - 4811), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100001 + 0o22) + chr(0b110000) + '\067', 0b1000), ehT0Px3KOsy9(chr(1098 - 1050) + '\157' + '\066' + '\061', 0b1000), ehT0Px3KOsy9(chr(1710 - 1662) + '\157' + '\x32' + '\060' + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(0b110001) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1011101 + 0o22) + chr(0b11000 + 0o31) + '\062' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4435 - 4324) + chr(0b1111 + 0o50) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b100010 + 0o24) + chr(665 - 615), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + '\061' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(111) + '\062' + '\067' + chr(1455 - 1401), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\064' + chr(1289 - 1234), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(1513 - 1462) + '\x30' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + chr(49) + chr(0b110011) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(7311 - 7200) + chr(1731 - 1682) + chr(237 - 185) + chr(0b110111), 43708 - 43700), ehT0Px3KOsy9(chr(740 - 692) + chr(957 - 846) + chr(2220 - 2171) + '\x32' + chr(637 - 582), 34569 - 34561), ehT0Px3KOsy9(chr(48) + chr(3299 - 3188) + chr(49) + chr(0b110001) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(874 - 826) + chr(0b1100100 + 0o13) + chr(0b1100 + 0o47) + '\065' + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + chr(0b110010 + 0o75) + chr(1162 - 1112) + chr(1457 - 1404) + chr(53), 533 - 525), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1101111) + chr(1480 - 1430) + chr(0b100101 + 0o16) + chr(0b110000), 48194 - 48186), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(55), 0o10), ehT0Px3KOsy9(chr(317 - 269) + '\x6f' + '\x31' + '\061' + '\060', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100011 + 0o14) + chr(0b110011) + '\063' + chr(0b110001 + 0o6), 4560 - 4552), ehT0Px3KOsy9(chr(48) + chr(7867 - 7756) + '\067' + chr(744 - 694), 8), ehT0Px3KOsy9('\x30' + chr(2244 - 2133) + '\x32' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b1101 + 0o47) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11011 + 0o27) + chr(0b101011 + 0o14) + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\x6f' + chr(51) + chr(0b110011) + chr(0b110000), 46050 - 46042), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(335 - 285) + '\x32' + '\x33', 62425 - 62417), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b10111 + 0o34) + chr(215 - 167) + chr(53), 8), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(111) + chr(49) + '\x37', 34304 - 34296), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1110 + 0o43) + chr(59 - 4) + '\x37', 61724 - 61716), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(884 - 833) + chr(2299 - 2249) + chr(172 - 119), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011111 + 0o20) + chr(0b110011) + '\x30' + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(0b100010 + 0o21) + chr(0b110011), 8), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + chr(716 - 667) + chr(0b110001) + chr(0b110000), 8), ehT0Px3KOsy9(chr(1034 - 986) + chr(0b1101101 + 0o2) + '\x32' + chr(54) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4240 - 4129) + chr(0b110010) + chr(0b101011 + 0o13) + chr(250 - 202), 0o10), ehT0Px3KOsy9(chr(1420 - 1372) + '\x6f' + chr(2336 - 2287) + chr(55) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(4078 - 3967) + '\063' + '\067' + chr(53), 40549 - 40541)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(111) + '\065' + chr(0b110000), 6218 - 6210)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'p'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(9176 - 9076) + chr(0b1100101))(chr(0b1100 + 0o151) + '\164' + chr(102) + '\x2d' + chr(471 - 415)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _UM7skpoyVHT(CVh_Z3xeqjku=xafqLlk3kkUe(SXOLrMavuUCe(b'<\xa6B\xef'), chr(0b1100100) + chr(0b11010 + 0o113) + '\x63' + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(1998 - 1882) + chr(102) + '\055' + '\x38')): oTJSpeRs2hkQ = oqhJDdMJfuwx.path._oWXztVNnqHF(oqhJDdMJfuwx.path.dirname(tmzuw0hjv33u), xafqLlk3kkUe(SXOLrMavuUCe(b"<\xa6B\xef92\x14\x81'"), chr(0b1100100) + chr(0b1011111 + 0o6) + '\x63' + chr(0b1011110 + 0o21) + chr(100) + '\145')(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(0b111000))) X_w6uktosk4i = VQaJedvf3qtj.spawn(CVh_Z3xeqjku, [xafqLlk3kkUe(SXOLrMavuUCe(b's\xeaC\xe4-8V\x97'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + '\x65')('\165' + '\x74' + chr(0b1100110) + '\x2d' + chr(0b100110 + 0o22)), oTJSpeRs2hkQ], echo=ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(111) + '\060', 0b1000), encoding=xafqLlk3kkUe(SXOLrMavuUCe(b'+\xb3W\xaas'), chr(0b101101 + 0o67) + chr(0b1100101) + '\143' + chr(7907 - 7796) + '\144' + '\145')('\x75' + chr(116) + chr(102) + chr(0b101101) + chr(56))) Yg_VPTf60Bq1 = QRRf5nIgFPFr[:ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b11100 + 0o31), 0b1000)] + xafqLlk3kkUe(SXOLrMavuUCe(b'\x02\x9cm\xda'), chr(0b1100100) + '\145' + chr(0b10011 + 0o120) + '\x6f' + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) + QRRf5nIgFPFr[ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + '\x35', 8):] z3rTIXRcTjLb = R6FmMVE9uIL6[:ehT0Px3KOsy9('\060' + chr(11258 - 11147) + chr(0b1110 + 0o47), 8)] + xafqLlk3kkUe(SXOLrMavuUCe(b'\x02\x9cm\xda'), chr(100) + chr(0b0 + 0o145) + chr(3689 - 3590) + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b111100 + 0o70) + chr(102) + chr(0b11011 + 0o22) + chr(0b111000)) + R6FmMVE9uIL6[ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + '\x35', 8):] AP4dL9UeDpZW = xafqLlk3kkUe(SXOLrMavuUCe(b'\x0e\x94\x00\xbal*\n\x8fh\x9e\xb7\x96iZp5\xd9\xd0\xbf7\x18\x8du_\xb5\xe9D\x9b\xdc\x88B>\x9b\x87fo\x95'), chr(0b110110 + 0o56) + chr(0b1100101) + chr(99) + chr(11873 - 11762) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(116) + chr(0b1001 + 0o135) + '\055' + chr(0b111000)).V4roHaS3Ppej(Yg_VPTf60Bq1, z3rTIXRcTjLb) return M1IFqYGdxmQ3(X_w6uktosk4i, xafqLlk3kkUe(SXOLrMavuUCe(b'\x02\xe3'), chr(100) + chr(985 - 884) + chr(3647 - 3548) + chr(6631 - 6520) + '\144' + chr(0b1100101))(chr(0b100000 + 0o125) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)), AP4dL9UeDpZW, extra_init_cmd=xafqLlk3kkUe(SXOLrMavuUCe(b';\xbfA\xe89%\x1a\xa2\x0e\xf9\xa2\x97f\x046:'), chr(100) + chr(0b1010010 + 0o23) + chr(0b1100011) + '\157' + '\x64' + chr(7339 - 7238))(chr(0b1110101) + chr(116) + chr(0b1010000 + 0o26) + chr(0b101101) + '\070'))
pypa/pipenv
pipenv/vendor/pexpect/replwrap.py
REPLWrapper.run_command
def run_command(self, command, timeout=-1): """Send a command to the REPL, wait for and return output. :param str command: The command to send. Trailing newlines are not needed. This should be a complete block of input that will trigger execution; if a continuation prompt is found after sending input, :exc:`ValueError` will be raised. :param int timeout: How long to wait for the next prompt. -1 means the default from the :class:`pexpect.spawn` object (default 30 seconds). None means to wait indefinitely. """ # Split up multiline commands and feed them in bit-by-bit cmdlines = command.splitlines() # splitlines ignores trailing newlines - add it back in manually if command.endswith('\n'): cmdlines.append('') if not cmdlines: raise ValueError("No command was given") res = [] self.child.sendline(cmdlines[0]) for line in cmdlines[1:]: self._expect_prompt(timeout=timeout) res.append(self.child.before) self.child.sendline(line) # Command was fully submitted, now wait for the next prompt if self._expect_prompt(timeout=timeout) == 1: # We got the continuation prompt - command was incomplete self.child.kill(signal.SIGINT) self._expect_prompt(timeout=1) raise ValueError("Continuation prompt found - input was incomplete:\n" + command) return u''.join(res + [self.child.before])
python
def run_command(self, command, timeout=-1): """Send a command to the REPL, wait for and return output. :param str command: The command to send. Trailing newlines are not needed. This should be a complete block of input that will trigger execution; if a continuation prompt is found after sending input, :exc:`ValueError` will be raised. :param int timeout: How long to wait for the next prompt. -1 means the default from the :class:`pexpect.spawn` object (default 30 seconds). None means to wait indefinitely. """ # Split up multiline commands and feed them in bit-by-bit cmdlines = command.splitlines() # splitlines ignores trailing newlines - add it back in manually if command.endswith('\n'): cmdlines.append('') if not cmdlines: raise ValueError("No command was given") res = [] self.child.sendline(cmdlines[0]) for line in cmdlines[1:]: self._expect_prompt(timeout=timeout) res.append(self.child.before) self.child.sendline(line) # Command was fully submitted, now wait for the next prompt if self._expect_prompt(timeout=timeout) == 1: # We got the continuation prompt - command was incomplete self.child.kill(signal.SIGINT) self._expect_prompt(timeout=1) raise ValueError("Continuation prompt found - input was incomplete:\n" + command) return u''.join(res + [self.child.before])
[ "def", "run_command", "(", "self", ",", "command", ",", "timeout", "=", "-", "1", ")", ":", "# Split up multiline commands and feed them in bit-by-bit", "cmdlines", "=", "command", ".", "splitlines", "(", ")", "# splitlines ignores trailing newlines - add it back in manually", "if", "command", ".", "endswith", "(", "'\\n'", ")", ":", "cmdlines", ".", "append", "(", "''", ")", "if", "not", "cmdlines", ":", "raise", "ValueError", "(", "\"No command was given\"", ")", "res", "=", "[", "]", "self", ".", "child", ".", "sendline", "(", "cmdlines", "[", "0", "]", ")", "for", "line", "in", "cmdlines", "[", "1", ":", "]", ":", "self", ".", "_expect_prompt", "(", "timeout", "=", "timeout", ")", "res", ".", "append", "(", "self", ".", "child", ".", "before", ")", "self", ".", "child", ".", "sendline", "(", "line", ")", "# Command was fully submitted, now wait for the next prompt", "if", "self", ".", "_expect_prompt", "(", "timeout", "=", "timeout", ")", "==", "1", ":", "# We got the continuation prompt - command was incomplete", "self", ".", "child", ".", "kill", "(", "signal", ".", "SIGINT", ")", "self", ".", "_expect_prompt", "(", "timeout", "=", "1", ")", "raise", "ValueError", "(", "\"Continuation prompt found - input was incomplete:\\n\"", "+", "command", ")", "return", "u''", ".", "join", "(", "res", "+", "[", "self", ".", "child", ".", "before", "]", ")" ]
Send a command to the REPL, wait for and return output. :param str command: The command to send. Trailing newlines are not needed. This should be a complete block of input that will trigger execution; if a continuation prompt is found after sending input, :exc:`ValueError` will be raised. :param int timeout: How long to wait for the next prompt. -1 means the default from the :class:`pexpect.spawn` object (default 30 seconds). None means to wait indefinitely.
[ "Send", "a", "command", "to", "the", "REPL", "wait", "for", "and", "return", "output", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/pexpect/replwrap.py#L68-L101
train
Send a command to the REPL wait for and return the output.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV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Q77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(0b110011) + '\066' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\x30' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(2211 - 2163) + chr(0b111 + 0o150) + chr(0b110010) + chr(1479 - 1430) + chr(0b100011 + 0o24), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b101100 + 0o103) + chr(1636 - 1586) + chr(1569 - 1521) + chr(1925 - 1875), 8), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(7731 - 7620) + '\x31' + chr(1252 - 1202) + chr(1747 - 1697), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(53) + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(0b100010 + 0o21), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101 + 0o142) + chr(50) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\157' + chr(0b110001 + 0o0) + chr(2169 - 2119) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + '\066' + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(7484 - 7373) + chr(0b110011) + '\x31' + '\x36', 40276 - 40268), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(194 - 145) + chr(0b110101) + '\066', 0o10), ehT0Px3KOsy9(chr(2076 - 2028) + chr(0b1101111) + chr(50) + '\066' + '\x35', 446 - 438), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(286 - 236) + chr(53) + chr(0b110000), 40351 - 40343), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\064' + chr(53), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\157' + chr(0b101101 + 0o6) + chr(0b101010 + 0o13) + '\066', 8), ehT0Px3KOsy9(chr(0b110000) + chr(6405 - 6294) + chr(2194 - 2145) + '\x31' + chr(1143 - 1088), 40808 - 40800), ehT0Px3KOsy9('\060' + chr(2767 - 2656) + chr(0b110100) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(111) + '\063' + chr(0b100000 + 0o23) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b100100 + 0o15) + chr(2120 - 2071), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(53) + chr(0b101011 + 0o5), 12877 - 12869), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + '\x31', 0b1000), ehT0Px3KOsy9(chr(663 - 615) + '\157' + '\x36' + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(49) + chr(1313 - 1261) + chr(76 - 24), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010101 + 0o32) + '\x37' + chr(49), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(62 - 14) + chr(50), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2075 - 2022) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(4490 - 4379) + chr(51) + chr(0b11110 + 0o31) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(2181 - 2133) + '\157' + '\x32' + '\x36' + '\x30', 0b1000), ehT0Px3KOsy9(chr(1035 - 987) + '\157' + chr(0b100001 + 0o21) + '\061' + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1416 - 1365) + '\066' + chr(50), 18054 - 18046), ehT0Px3KOsy9(chr(1640 - 1592) + chr(7755 - 7644) + '\061' + chr(0b100101 + 0o14) + chr(0b11 + 0o55), 0o10), ehT0Px3KOsy9('\060' + chr(0b100 + 0o153) + chr(959 - 910) + '\x37' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\x30' + chr(1071 - 960) + '\x31' + '\x30' + '\x34', 37957 - 37949), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1007 - 957) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(1389 - 1341) + chr(0b1101111) + chr(50) + '\x33' + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1461 - 1410) + chr(0b10 + 0o64) + chr(0b110000), 8), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\157' + chr(0b101100 + 0o6) + chr(53), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + chr(50) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(1669 - 1619) + '\x37' + chr(0b110011 + 0o1), 44785 - 44777)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(111) + chr(404 - 351) + chr(48), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xde'), chr(0b1011000 + 0o14) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + chr(0b100001 + 0o14) + chr(0b100100 + 0o24)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def P7USupEMynDR(oVre8I6UXc3b, CVh_Z3xeqjku, FaIjqlnzCXev=-ehT0Px3KOsy9(chr(48) + chr(256 - 145) + '\061', 27235 - 27227)): hhMiUyYpSzXX = CVh_Z3xeqjku.splitlines() if xafqLlk3kkUe(CVh_Z3xeqjku, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\xec\xeb\xf1%\x87ox'), chr(100) + chr(5125 - 5024) + chr(9213 - 9114) + '\x6f' + '\x64' + chr(9491 - 9390))(chr(0b1 + 0o164) + chr(8962 - 8846) + chr(5756 - 5654) + chr(45) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfa'), '\144' + chr(101) + '\143' + chr(4897 - 4786) + '\144' + chr(0b11010 + 0o113))(chr(7307 - 7190) + chr(12787 - 12671) + chr(0b1100110) + chr(1222 - 1177) + chr(0b111000))): xafqLlk3kkUe(hhMiUyYpSzXX, xafqLlk3kkUe(SXOLrMavuUCe(b'\x91\xf2\xff\xe7<\x8a'), chr(9098 - 8998) + '\145' + chr(4034 - 3935) + chr(9613 - 9502) + '\x64' + chr(101))(chr(0b110101 + 0o100) + chr(2200 - 2084) + chr(0b1100110) + chr(724 - 679) + chr(1026 - 970)))(xafqLlk3kkUe(SXOLrMavuUCe(b''), '\144' + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(0b1010001 + 0o43) + chr(0b1100110) + chr(45) + chr(0b111000))) if not hhMiUyYpSzXX: raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xed\xaf\xe1=\x83vq:\x91\xee\x19\xd4\xdb\x05\x89&R\xbe\xe7'), chr(100) + chr(7441 - 7340) + chr(99) + '\157' + chr(0b1010000 + 0o24) + '\145')(chr(3930 - 3813) + chr(12940 - 12824) + '\x66' + '\x2d' + chr(0b10001 + 0o47))) MsbwfslwLjRO = [] xafqLlk3kkUe(oVre8I6UXc3b.child, xafqLlk3kkUe(SXOLrMavuUCe(b'\x83\xe7\xe1\xe6>\x87uu'), chr(2871 - 2771) + '\145' + '\143' + chr(0b1101111) + '\x64' + chr(101))(chr(0b1010101 + 0o40) + chr(0b1110100) + '\x66' + chr(45) + '\070'))(hhMiUyYpSzXX[ehT0Px3KOsy9('\060' + '\157' + '\060', 0o10)]) for LycYkDpyelF6 in hhMiUyYpSzXX[ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31', 8):]: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf\xe7\xf7\xf27\x8doO$\x87\xa1\x03\xc5\xdc'), chr(0b1100100) + chr(5467 - 5366) + '\143' + '\x6f' + chr(7954 - 7854) + chr(8023 - 7922))(chr(0b1010110 + 0o37) + chr(116) + chr(0b1100110) + chr(1032 - 987) + '\070'))(timeout=FaIjqlnzCXev) xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x91\xf2\xff\xe7<\x8a'), chr(0b1100100) + chr(8102 - 8001) + chr(2413 - 2314) + chr(0b111000 + 0o67) + chr(3622 - 3522) + chr(5284 - 5183))(chr(117) + chr(0b1110010 + 0o2) + '\x66' + '\055' + chr(56)))(xafqLlk3kkUe(oVre8I6UXc3b.child, xafqLlk3kkUe(SXOLrMavuUCe(b'\x92\xe7\xe9\xed \x8b'), chr(0b1000 + 0o134) + chr(2315 - 2214) + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(11763 - 11646) + chr(0b100010 + 0o122) + chr(102) + chr(45) + chr(210 - 154)))) xafqLlk3kkUe(oVre8I6UXc3b.child, xafqLlk3kkUe(SXOLrMavuUCe(b'\x83\xe7\xe1\xe6>\x87uu'), chr(0b100001 + 0o103) + chr(0b0 + 0o145) + '\143' + chr(0b1101111) + chr(100) + chr(0b1010101 + 0o20))(chr(10739 - 10622) + chr(0b1110010 + 0o2) + chr(0b1100110) + chr(45) + '\x38'))(LycYkDpyelF6) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf\xe7\xf7\xf27\x8doO$\x87\xa1\x03\xc5\xdc'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b111000 + 0o74) + chr(0b1010010 + 0o24) + chr(1039 - 994) + '\070'))(timeout=FaIjqlnzCXev) == ehT0Px3KOsy9(chr(615 - 567) + chr(11965 - 11854) + '\061', 8): xafqLlk3kkUe(oVre8I6UXc3b.child, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b\xeb\xe3\xee'), chr(3859 - 3759) + '\145' + '\143' + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(0b111010 + 0o72) + chr(0b100001 + 0o105) + chr(45) + '\x38'))(xafqLlk3kkUe(ZDvW02DvHNUc, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa3\xcb\xc8\xcb\x1c\xba'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + '\070'))) xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf\xe7\xf7\xf27\x8doO$\x87\xa1\x03\xc5\xdc'), '\144' + chr(2531 - 2430) + chr(0b1010100 + 0o17) + chr(9159 - 9048) + chr(0b11111 + 0o105) + chr(0b1001001 + 0o34))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(0b1100 + 0o54)))(timeout=ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(111) + chr(49), 8)) raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\xed\xe1\xf6;\x80nq \x9c\xa1\x00\x95\xd8W\x81"T\xaf\xa9NfB\n]b\x03\xdc\xd9\xe4\x82=\tdb\xfb\x835\xba\xd2\x93\xed\xe2\xf2>\x8boun\xff'), chr(100) + chr(3773 - 3672) + chr(0b1000110 + 0o35) + chr(111) + '\144' + '\145')('\x75' + chr(0b1001010 + 0o52) + '\x66' + chr(45) + '\070') + CVh_Z3xeqjku) return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b11 + 0o141) + chr(610 - 509) + chr(99) + chr(0b1101111) + chr(100) + chr(7746 - 7645))(chr(0b1110101) + chr(0b110010 + 0o102) + chr(0b1100110) + '\x2d' + chr(0b0 + 0o70)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf\xed\xd8\xda(\x9aM^:\x84\x86('), '\x64' + '\145' + chr(0b100001 + 0o102) + chr(0b10010 + 0o135) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(56)))(MsbwfslwLjRO + [xafqLlk3kkUe(oVre8I6UXc3b.child, xafqLlk3kkUe(SXOLrMavuUCe(b'\x92\xe7\xe9\xed \x8b'), chr(6903 - 6803) + '\x65' + chr(99) + chr(0b10011 + 0o134) + '\x64' + chr(0b1100101))('\165' + chr(0b100111 + 0o115) + chr(102) + chr(901 - 856) + '\x38'))])
pypa/pipenv
pipenv/vendor/requirementslib/models/requirements.py
Line.parse_hashes
def parse_hashes(self): # type: () -> None """ Parse hashes from *self.line* and set them on the current object. :returns: Nothing :rtype: None """ line, hashes = self.split_hashes(self.line) self.hashes = hashes self.line = line
python
def parse_hashes(self): # type: () -> None """ Parse hashes from *self.line* and set them on the current object. :returns: Nothing :rtype: None """ line, hashes = self.split_hashes(self.line) self.hashes = hashes self.line = line
[ "def", "parse_hashes", "(", "self", ")", ":", "# type: () -> None", "line", ",", "hashes", "=", "self", ".", "split_hashes", "(", "self", ".", "line", ")", "self", ".", "hashes", "=", "hashes", "self", ".", "line", "=", "line" ]
Parse hashes from *self.line* and set them on the current object. :returns: Nothing :rtype: None
[ "Parse", "hashes", "from", "*", "self", ".", "line", "*", "and", "set", "them", "on", "the", "current", "object", ".", ":", "returns", ":", "Nothing", ":", "rtype", ":", "None" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/models/requirements.py#L483-L493
train
Parse hashes from self. line and set them on the current object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5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,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(10235 - 10124) + '\063' + '\x30' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(4423 - 4312) + chr(496 - 446) + chr(49) + '\x36', 12234 - 12226), ehT0Px3KOsy9(chr(634 - 586) + chr(0b1101111) + chr(50) + chr(1783 - 1733) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(4859 - 4748) + '\x33' + '\x35', 9082 - 9074), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + '\x34' + chr(53), 64247 - 64239), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1000000 + 0o57) + '\x31' + chr(54) + chr(0b100100 + 0o15), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(0b110001) + chr(0b101011 + 0o10) + chr(0b10 + 0o63), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(55) + chr(1254 - 1201), ord("\x08")), ehT0Px3KOsy9(chr(1586 - 1538) + '\x6f' + chr(50) + chr(0b110111) + chr(50), 21184 - 21176), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + '\063' + chr(2591 - 2537), 55245 - 55237), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(2463 - 2408) + chr(0b101010 + 0o10), 8), ehT0Px3KOsy9('\x30' + chr(6785 - 6674) + chr(0b10010 + 0o37) + chr(0b110101) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101100 + 0o3) + chr(49) + '\063' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(379 - 331) + '\x6f' + chr(1625 - 1575) + '\063' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1101111) + chr(50) + chr(2648 - 2593) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\x6f' + chr(0b110001) + chr(881 - 832) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1011 + 0o50) + '\x32' + chr(0b10011 + 0o43), 57394 - 57386), ehT0Px3KOsy9(chr(48) + chr(10762 - 10651) + chr(49) + '\064' + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(922 - 871) + '\x37' + chr(0b11110 + 0o24), 45113 - 45105), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(448 - 396) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(11602 - 11491) + chr(0b110011) + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11111 + 0o22) + chr(0b110111) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\x6f' + chr(51) + chr(55) + '\x32', 8), ehT0Px3KOsy9('\060' + chr(0b0 + 0o157) + '\x33' + chr(52) + chr(53), 0o10), ehT0Px3KOsy9(chr(1690 - 1642) + chr(111) + chr(0b110001) + chr(1495 - 1444) + chr(52), 50758 - 50750), ehT0Px3KOsy9(chr(304 - 256) + chr(0b1101111) + chr(0b1 + 0o61) + chr(1213 - 1165) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(2474 - 2424) + '\063' + chr(52), 18743 - 18735), ehT0Px3KOsy9(chr(1147 - 1099) + chr(212 - 101) + '\062' + chr(0b1100 + 0o44) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\067', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(0b110011) + chr(50), 34092 - 34084), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2271 - 2220) + chr(0b110100) + chr(0b10 + 0o60), 59993 - 59985), ehT0Px3KOsy9(chr(0b110000) + chr(6419 - 6308) + '\063' + '\061' + '\x31', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(0b110110) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(111) + chr(49) + chr(53) + chr(0b11 + 0o62), 8), ehT0Px3KOsy9(chr(48) + chr(6800 - 6689) + '\x32' + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100001 + 0o16) + '\061' + chr(0b0 + 0o60) + chr(0b101000 + 0o13), 51385 - 51377), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1111 + 0o44) + chr(0b110110) + chr(2166 - 2118), 8), ehT0Px3KOsy9(chr(459 - 411) + '\x6f' + '\x31' + chr(583 - 529) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1000 + 0o147) + chr(49) + chr(53) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\x6f' + chr(0b110011) + chr(0b100 + 0o55) + chr(0b10110 + 0o32), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b11011 + 0o124) + chr(53) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xee'), chr(126 - 26) + chr(2701 - 2600) + '\x63' + chr(111) + chr(0b1100100) + chr(0b100 + 0o141))(chr(0b1000101 + 0o60) + '\x74' + '\146' + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def B7VOcBWGd0U9(oVre8I6UXc3b): (LycYkDpyelF6, fjYvY4sXBcdo) = oVre8I6UXc3b.split_hashes(oVre8I6UXc3b.LycYkDpyelF6) oVre8I6UXc3b.fjYvY4sXBcdo = fjYvY4sXBcdo oVre8I6UXc3b.LycYkDpyelF6 = LycYkDpyelF6
pypa/pipenv
pipenv/vendor/requirementslib/models/requirements.py
Line.parse_extras
def parse_extras(self): # type: () -> None """ Parse extras from *self.line* and set them on the current object :returns: Nothing :rtype: None """ extras = None if "@" in self.line or self.is_vcs or self.is_url: line = "{0}".format(self.line) uri = URI.parse(line) name = uri.name if name: self._name = name if uri.host and uri.path and uri.scheme: self.line = uri.to_string( escape_password=False, direct=False, strip_ssh=uri.is_implicit_ssh ) else: self.line, extras = pip_shims.shims._strip_extras(self.line) else: self.line, extras = pip_shims.shims._strip_extras(self.line) extras_set = set() # type: Set[STRING_TYPE] if extras is not None: extras_set = set(parse_extras(extras)) if self._name: self._name, name_extras = pip_shims.shims._strip_extras(self._name) if name_extras: name_extras = set(parse_extras(name_extras)) extras_set |= name_extras if extras_set is not None: self.extras = tuple(sorted(extras_set))
python
def parse_extras(self): # type: () -> None """ Parse extras from *self.line* and set them on the current object :returns: Nothing :rtype: None """ extras = None if "@" in self.line or self.is_vcs or self.is_url: line = "{0}".format(self.line) uri = URI.parse(line) name = uri.name if name: self._name = name if uri.host and uri.path and uri.scheme: self.line = uri.to_string( escape_password=False, direct=False, strip_ssh=uri.is_implicit_ssh ) else: self.line, extras = pip_shims.shims._strip_extras(self.line) else: self.line, extras = pip_shims.shims._strip_extras(self.line) extras_set = set() # type: Set[STRING_TYPE] if extras is not None: extras_set = set(parse_extras(extras)) if self._name: self._name, name_extras = pip_shims.shims._strip_extras(self._name) if name_extras: name_extras = set(parse_extras(name_extras)) extras_set |= name_extras if extras_set is not None: self.extras = tuple(sorted(extras_set))
[ "def", "parse_extras", "(", "self", ")", ":", "# type: () -> None", "extras", "=", "None", "if", "\"@\"", "in", "self", ".", "line", "or", "self", ".", "is_vcs", "or", "self", ".", "is_url", ":", "line", "=", "\"{0}\"", ".", "format", "(", "self", ".", "line", ")", "uri", "=", "URI", ".", "parse", "(", "line", ")", "name", "=", "uri", ".", "name", "if", "name", ":", "self", ".", "_name", "=", "name", "if", "uri", ".", "host", "and", "uri", ".", "path", "and", "uri", ".", "scheme", ":", "self", ".", "line", "=", "uri", ".", "to_string", "(", "escape_password", "=", "False", ",", "direct", "=", "False", ",", "strip_ssh", "=", "uri", ".", "is_implicit_ssh", ")", "else", ":", "self", ".", "line", ",", "extras", "=", "pip_shims", ".", "shims", ".", "_strip_extras", "(", "self", ".", "line", ")", "else", ":", "self", ".", "line", ",", "extras", "=", "pip_shims", ".", "shims", ".", "_strip_extras", "(", "self", ".", "line", ")", "extras_set", "=", "set", "(", ")", "# type: Set[STRING_TYPE]", "if", "extras", "is", "not", "None", ":", "extras_set", "=", "set", "(", "parse_extras", "(", "extras", ")", ")", "if", "self", ".", "_name", ":", "self", ".", "_name", ",", "name_extras", "=", "pip_shims", ".", "shims", ".", "_strip_extras", "(", "self", ".", "_name", ")", "if", "name_extras", ":", "name_extras", "=", "set", "(", "parse_extras", "(", "name_extras", ")", ")", "extras_set", "|=", "name_extras", "if", "extras_set", "is", "not", "None", ":", "self", ".", "extras", "=", "tuple", "(", "sorted", "(", "extras_set", ")", ")" ]
Parse extras from *self.line* and set them on the current object :returns: Nothing :rtype: None
[ "Parse", "extras", "from", "*", "self", ".", "line", "*", "and", "set", "them", "on", "the", "current", "object", ":", "returns", ":", "Nothing", ":", "rtype", ":", "None" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/models/requirements.py#L495-L527
train
Parses ext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hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1000111 + 0o50) + chr(1702 - 1652) + chr(2013 - 1963) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\067' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100000 + 0o17) + '\063' + chr(225 - 177) + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101111 + 0o3) + chr(0b110101) + chr(54), 0b1000), ehT0Px3KOsy9(chr(456 - 408) + '\157' + chr(875 - 826) + chr(0b110111) + chr(0b1010 + 0o46), 58663 - 58655), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\x35' + '\x37', 62089 - 62081), ehT0Px3KOsy9(chr(0b110000) + chr(0b100101 + 0o112) + chr(0b1100 + 0o45) + chr(0b110100) + chr(114 - 64), 0o10), ehT0Px3KOsy9(chr(263 - 215) + chr(111) + chr(50) + chr(0b110110) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(1328 - 1275), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(6783 - 6672) + chr(0b110000 + 0o2) + chr(0b110011) + chr(0b110010), 16110 - 16102), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010 + 0o0) + chr(505 - 456) + chr(53), 0b1000), ehT0Px3KOsy9(chr(603 - 555) + chr(3692 - 3581) + '\x31' + '\x37' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\x6f' + chr(50) + '\x32' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1917 - 1867) + chr(49) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1100101 + 0o12) + chr(0b110011) + chr(0b110001), 41011 - 41003), ehT0Px3KOsy9('\060' + chr(0b1100111 + 0o10) + '\061' + chr(0b110000) + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + chr(1913 - 1802) + chr(1925 - 1876) + chr(49) + '\061', 15726 - 15718), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(49) + '\064', 30655 - 30647), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100001 + 0o22) + '\065' + '\x31', 29339 - 29331), ehT0Px3KOsy9(chr(2181 - 2133) + chr(5741 - 5630) + '\x33' + chr(2532 - 2481), 0b1000), ehT0Px3KOsy9('\060' + chr(0b101111 + 0o100) + chr(0b10110 + 0o35) + chr(0b1101 + 0o51) + chr(54), 0b1000), ehT0Px3KOsy9(chr(514 - 466) + chr(0b100010 + 0o115) + '\x32' + chr(0b110110) + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001000 + 0o47) + chr(51) + chr(671 - 623) + chr(1174 - 1125), 0o10), ehT0Px3KOsy9('\060' + chr(0b11011 + 0o124) + '\066' + chr(53), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\064' + '\x32', 8), ehT0Px3KOsy9(chr(312 - 264) + chr(0b101000 + 0o107) + chr(2519 - 2465) + chr(1245 - 1195), 17022 - 17014), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(7778 - 7667) + '\x31' + '\x30' + chr(48), 56092 - 56084), ehT0Px3KOsy9(chr(48) + chr(0b11001 + 0o126) + '\x31' + chr(0b1101 + 0o50) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(252 - 201) + chr(0b110000) + chr(0b110 + 0o52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(1207 - 1096) + '\063' + chr(0b110011) + '\064', 19293 - 19285), ehT0Px3KOsy9(chr(48) + chr(3933 - 3822) + chr(0b110001) + '\x35' + chr(0b110100 + 0o3), 8), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b10010 + 0o135) + chr(0b111 + 0o52) + '\x34' + chr(0b110010 + 0o0), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\066' + chr(0b11101 + 0o24), 0b1000), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + '\x32' + '\x32' + chr(254 - 204), 0b1000), ehT0Px3KOsy9(chr(1948 - 1900) + '\157' + '\063' + chr(55) + '\065', 20344 - 20336), ehT0Px3KOsy9('\060' + chr(11405 - 11294) + '\x30', 11329 - 11321), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b100101 + 0o13) + chr(0b110010), 23438 - 23430), ehT0Px3KOsy9(chr(355 - 307) + chr(0b1101111) + chr(0b100100 + 0o15) + chr(0b101000 + 0o13) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1203 - 1154) + chr(49) + '\x34', 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\157' + chr(0b10110 + 0o37) + chr(0b101000 + 0o10), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf'), chr(4362 - 4262) + chr(8932 - 8831) + chr(0b100111 + 0o74) + '\x6f' + chr(9190 - 9090) + chr(0b1100010 + 0o3))(chr(117) + chr(0b1000011 + 0o61) + '\146' + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def GXPOBKQHoPG_(oVre8I6UXc3b): HD5jUt7dcR5R = None if xafqLlk3kkUe(SXOLrMavuUCe(b'\xd1'), chr(0b0 + 0o144) + chr(0b11000 + 0o115) + '\143' + chr(0b10000 + 0o137) + '\144' + '\x65')(chr(0b1110101) + chr(1434 - 1318) + chr(5969 - 5867) + '\055' + chr(1866 - 1810)) in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdd\xc0\xa0\xf7\x13+\x12\xcdp\xf6\xcbI'), chr(0b1100100) + chr(0b1000101 + 0o40) + '\143' + chr(0b101000 + 0o107) + chr(100) + '\x65')(chr(0b1110101) + chr(0b110010 + 0o102) + chr(0b1100110) + '\x2d' + chr(0b110110 + 0o2))) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xca\x9c\xd8\x1b\x1c'), chr(100) + chr(7933 - 7832) + '\143' + '\157' + chr(4667 - 4567) + chr(2914 - 2813))(chr(12228 - 12111) + chr(10737 - 10621) + chr(0b1100110) + chr(45) + chr(623 - 567))) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xca\x9c\xdb\n\x03'), '\x64' + chr(0b1100101) + '\x63' + chr(4125 - 4014) + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(45) + '\x38')): LycYkDpyelF6 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xea\x89\xbe'), chr(100) + chr(3313 - 3212) + '\x63' + '\157' + chr(0b1100100) + '\x65')(chr(8893 - 8776) + chr(116) + chr(1211 - 1109) + chr(0b11101 + 0o20) + '\070').V4roHaS3Ppej(oVre8I6UXc3b.LycYkDpyelF6) jFJCWjIi12ys = zujDvIONw2MG.parse(LycYkDpyelF6) AIvJRzLdDfgF = jFJCWjIi12ys.AIvJRzLdDfgF if AIvJRzLdDfgF: oVre8I6UXc3b.IVhD9AyJgRmz = AIvJRzLdDfgF if xafqLlk3kkUe(jFJCWjIi12ys, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\xd6\xb0\xda'), '\144' + chr(8543 - 8442) + chr(0b1011010 + 0o11) + chr(3563 - 3452) + chr(0b1100100) + chr(101))('\x75' + chr(11338 - 11222) + chr(102) + chr(45) + chr(2888 - 2832))) and xafqLlk3kkUe(jFJCWjIi12ys, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4\xd8\x80\xc4\x01\x078\xc4a\xc9\xe8\r'), chr(0b111110 + 0o46) + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(5729 - 5613) + chr(0b1100110) + chr(45) + '\070')) and xafqLlk3kkUe(jFJCWjIi12ys, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\xda\xab\xcb\x15\n'), chr(100) + '\145' + chr(0b111000 + 0o53) + chr(0b100100 + 0o113) + '\x64' + chr(101))(chr(0b1110101) + chr(8580 - 8464) + chr(0b1010101 + 0o21) + '\x2d' + '\x38')): oVre8I6UXc3b.LycYkDpyelF6 = jFJCWjIi12ys.to_string(escape_password=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(48), 8), direct=ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11110 + 0o22), 8), strip_ssh=jFJCWjIi12ys.is_implicit_ssh) else: (oVre8I6UXc3b.LycYkDpyelF6, HD5jUt7dcR5R) = cfJjhQ7KAJKh.shims._strip_extras(oVre8I6UXc3b.LycYkDpyelF6) else: (oVre8I6UXc3b.LycYkDpyelF6, HD5jUt7dcR5R) = cfJjhQ7KAJKh.shims._strip_extras(oVre8I6UXc3b.LycYkDpyelF6) yC1wQs_1oWWU = MVEN8G6CxlvR() if HD5jUt7dcR5R is not None: yC1wQs_1oWWU = MVEN8G6CxlvR(GXPOBKQHoPG_(HD5jUt7dcR5R)) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\xef\xab\xeaA.\x1b\xfer\xc8\xe0\x05'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + chr(1912 - 1812) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070')): (oVre8I6UXc3b.IVhD9AyJgRmz, dAmI697rwi_7) = cfJjhQ7KAJKh.shims._strip_extras(oVre8I6UXc3b.IVhD9AyJgRmz) if dAmI697rwi_7: dAmI697rwi_7 = MVEN8G6CxlvR(GXPOBKQHoPG_(dAmI697rwi_7)) yC1wQs_1oWWU |= dAmI697rwi_7 if yC1wQs_1oWWU is not None: oVre8I6UXc3b.HD5jUt7dcR5R = KNyTy8rYcwji(vUlqIvNSaRMa(yC1wQs_1oWWU))
pypa/pipenv
pipenv/vendor/requirementslib/models/requirements.py
Line.get_url
def get_url(self): # type: () -> STRING_TYPE """Sets ``self.name`` if given a **PEP-508** style URL""" line = self.line try: parsed = URI.parse(line) line = parsed.to_string(escape_password=False, direct=False, strip_ref=True) except ValueError: pass else: self._parsed_url = parsed return line if self.vcs is not None and self.line.startswith("{0}+".format(self.vcs)): _, _, _parseable = self.line.partition("+") parsed = urllib_parse.urlparse(add_ssh_scheme_to_git_uri(_parseable)) line, _ = split_ref_from_uri(line) else: parsed = urllib_parse.urlparse(add_ssh_scheme_to_git_uri(line)) if "@" in self.line and parsed.scheme == "": name, _, url = self.line.partition("@") if self._name is None: url = url.strip() self._name = name.strip() if is_valid_url(url): self.is_direct_url = True line = url.strip() parsed = urllib_parse.urlparse(line) url_path = parsed.path if "@" in url_path: url_path, _, _ = url_path.rpartition("@") parsed = parsed._replace(path=url_path) self._parsed_url = parsed return line
python
def get_url(self): # type: () -> STRING_TYPE """Sets ``self.name`` if given a **PEP-508** style URL""" line = self.line try: parsed = URI.parse(line) line = parsed.to_string(escape_password=False, direct=False, strip_ref=True) except ValueError: pass else: self._parsed_url = parsed return line if self.vcs is not None and self.line.startswith("{0}+".format(self.vcs)): _, _, _parseable = self.line.partition("+") parsed = urllib_parse.urlparse(add_ssh_scheme_to_git_uri(_parseable)) line, _ = split_ref_from_uri(line) else: parsed = urllib_parse.urlparse(add_ssh_scheme_to_git_uri(line)) if "@" in self.line and parsed.scheme == "": name, _, url = self.line.partition("@") if self._name is None: url = url.strip() self._name = name.strip() if is_valid_url(url): self.is_direct_url = True line = url.strip() parsed = urllib_parse.urlparse(line) url_path = parsed.path if "@" in url_path: url_path, _, _ = url_path.rpartition("@") parsed = parsed._replace(path=url_path) self._parsed_url = parsed return line
[ "def", "get_url", "(", "self", ")", ":", "# type: () -> STRING_TYPE", "line", "=", "self", ".", "line", "try", ":", "parsed", "=", "URI", ".", "parse", "(", "line", ")", "line", "=", "parsed", ".", "to_string", "(", "escape_password", "=", "False", ",", "direct", "=", "False", ",", "strip_ref", "=", "True", ")", "except", "ValueError", ":", "pass", "else", ":", "self", ".", "_parsed_url", "=", "parsed", "return", "line", "if", "self", ".", "vcs", "is", "not", "None", "and", "self", ".", "line", ".", "startswith", "(", "\"{0}+\"", ".", "format", "(", "self", ".", "vcs", ")", ")", ":", "_", ",", "_", ",", "_parseable", "=", "self", ".", "line", ".", "partition", "(", "\"+\"", ")", "parsed", "=", "urllib_parse", ".", "urlparse", "(", "add_ssh_scheme_to_git_uri", "(", "_parseable", ")", ")", "line", ",", "_", "=", "split_ref_from_uri", "(", "line", ")", "else", ":", "parsed", "=", "urllib_parse", ".", "urlparse", "(", "add_ssh_scheme_to_git_uri", "(", "line", ")", ")", "if", "\"@\"", "in", "self", ".", "line", "and", "parsed", ".", "scheme", "==", "\"\"", ":", "name", ",", "_", ",", "url", "=", "self", ".", "line", ".", "partition", "(", "\"@\"", ")", "if", "self", ".", "_name", "is", "None", ":", "url", "=", "url", ".", "strip", "(", ")", "self", ".", "_name", "=", "name", ".", "strip", "(", ")", "if", "is_valid_url", "(", "url", ")", ":", "self", ".", "is_direct_url", "=", "True", "line", "=", "url", ".", "strip", "(", ")", "parsed", "=", "urllib_parse", ".", "urlparse", "(", "line", ")", "url_path", "=", "parsed", ".", "path", "if", "\"@\"", "in", "url_path", ":", "url_path", ",", "_", ",", "_", "=", "url_path", ".", "rpartition", "(", "\"@\"", ")", "parsed", "=", "parsed", ".", "_replace", "(", "path", "=", "url_path", ")", "self", ".", "_parsed_url", "=", "parsed", "return", "line" ]
Sets ``self.name`` if given a **PEP-508** style URL
[ "Sets", "self", ".", "name", "if", "given", "a", "**", "PEP", "-", "508", "**", "style", "URL" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/models/requirements.py#L529-L562
train
Sets self. is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,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(2370 - 2321), 24363 - 24355), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + '\x31' + '\x37', 45427 - 45419), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b11111 + 0o23) + '\060' + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(844 - 793) + chr(727 - 679) + chr(517 - 468), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110111) + '\x33', 0b1000), ehT0Px3KOsy9(chr(246 - 198) + chr(111) + '\x33' + '\x33' + chr(0b101101 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(49) + chr(1722 - 1669), ord("\x08")), ehT0Px3KOsy9(chr(1888 - 1840) + '\x6f' + '\066' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(111) + chr(0b110011) + '\066' + '\x34', 0b1000), ehT0Px3KOsy9(chr(1194 - 1146) + chr(0b1101111) + chr(0b110011) + chr(0b110100) + chr(1699 - 1646), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(55) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(2512 - 2458) + chr(1521 - 1471), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + '\065' + '\064', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(320 - 269) + chr(0b110011) + '\064', 0b1000), ehT0Px3KOsy9(chr(2066 - 2018) + chr(0b1101101 + 0o2) + chr(0b110110) + chr(52), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\x32' + chr(191 - 139) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3246 - 3135) + '\065' + chr(0b10 + 0o57), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(1501 - 1450) + chr(54) + chr(52), 8), ehT0Px3KOsy9(chr(48) + chr(5297 - 5186) + '\x31' + chr(2031 - 1980) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(3857 - 3746) + '\x35' + chr(834 - 781), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + '\061' + chr(235 - 183), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000011 + 0o54) + chr(2115 - 2065) + chr(0b110100) + chr(0b1111 + 0o42), 50787 - 50779), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + '\x32' + '\x32', 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + chr(51) + '\061', 53067 - 53059), ehT0Px3KOsy9(chr(130 - 82) + chr(0b100 + 0o153) + '\062' + '\x30' + chr(1811 - 1758), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b10 + 0o62) + chr(0b11111 + 0o23), ord("\x08")), ehT0Px3KOsy9(chr(365 - 317) + chr(8464 - 8353) + chr(0b11111 + 0o23) + chr(51) + '\063', 0o10), ehT0Px3KOsy9(chr(1006 - 958) + chr(111) + chr(538 - 488) + '\066' + chr(0b101001 + 0o15), 0b1000), ehT0Px3KOsy9(chr(1102 - 1054) + chr(11604 - 11493) + chr(0b110011) + chr(0b110100) + '\064', 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1000001 + 0o56) + chr(599 - 550) + chr(0b110101) + chr(670 - 620), 25209 - 25201), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(53) + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b110000) + chr(6275 - 6164) + chr(0b110111) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101 + 0o55) + chr(0b110000) + chr(0b11100 + 0o27), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(0b11011 + 0o26) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(0b10110 + 0o131) + chr(0b101110 + 0o4) + chr(0b110010) + chr(0b11101 + 0o31), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b1 + 0o66) + chr(55), 35799 - 35791), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(10532 - 10421) + '\063' + '\067' + '\062', 0b1000), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(54) + '\067', 0o10), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(0b110011), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1086 - 1038) + chr(0b1101111) + chr(2255 - 2202) + '\060', 37461 - 37453)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b"'"), chr(0b1100100) + chr(0b1100100 + 0o1) + chr(0b1101 + 0o126) + '\157' + chr(7372 - 7272) + chr(0b1100101))(chr(117) + '\x74' + '\146' + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def s2MBVnsWlzgs(oVre8I6UXc3b): LycYkDpyelF6 = oVre8I6UXc3b.LycYkDpyelF6 try: QIe124s5EFAg = zujDvIONw2MG.parse(LycYkDpyelF6) LycYkDpyelF6 = QIe124s5EFAg.to_string(escape_password=ehT0Px3KOsy9(chr(0b110000) + chr(0b11110 + 0o121) + '\060', 0o10), direct=ehT0Px3KOsy9('\060' + chr(6149 - 6038) + chr(0b110000), 8), strip_ref=ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49), ord("\x08"))) except q1QCh3W88sgk: pass else: oVre8I6UXc3b.pGOXIus1IdS4 = QIe124s5EFAg return LycYkDpyelF6 if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x7f\xac\xf2'), chr(0b100010 + 0o102) + chr(0b1000100 + 0o41) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(7383 - 7266) + chr(10682 - 10566) + chr(1758 - 1656) + '\x2d' + chr(2142 - 2086))) is not None and xafqLlk3kkUe(oVre8I6UXc3b.line, xafqLlk3kkUe(SXOLrMavuUCe(b'z\xbb\xe0\xb3O\xa8\xfaZ\x80\x8d'), '\x64' + chr(9243 - 9142) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(117) + '\164' + '\x66' + chr(0b11000 + 0o25) + '\x38'))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'r\xff\xfc\xea'), chr(0b101010 + 0o72) + chr(9722 - 9621) + chr(3291 - 3192) + chr(10107 - 9996) + chr(6794 - 6694) + '\x65')('\165' + '\164' + chr(0b10011 + 0o123) + '\x2d' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'_\xfb\xf3\xaes\xba\xde\x00\xa4\x95XX'), chr(0b1000101 + 0o37) + chr(101) + chr(99) + '\x6f' + '\x64' + chr(7964 - 7863))('\165' + '\164' + chr(0b1100110) + '\x2d' + '\x38'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x7f\xac\xf2'), chr(9696 - 9596) + chr(101) + chr(0b110111 + 0o54) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b11001 + 0o134) + chr(116) + chr(102) + chr(0b101 + 0o50) + chr(56))))): (VNGQdHSFPrso, VNGQdHSFPrso, T6RaZX8jGlRh) = oVre8I6UXc3b.line.partition(xafqLlk3kkUe(SXOLrMavuUCe(b'"'), chr(0b1100001 + 0o3) + '\145' + '\x63' + '\x6f' + chr(1007 - 907) + chr(6243 - 6142))(chr(0b1110101) + '\164' + chr(116 - 14) + chr(45) + chr(2704 - 2648))) QIe124s5EFAg = mt98J_h8_2jo.urlparse(i08IIWCtgsa0(T6RaZX8jGlRh)) (LycYkDpyelF6, VNGQdHSFPrso) = KfVBgemw0lr6(LycYkDpyelF6) else: QIe124s5EFAg = mt98J_h8_2jo.urlparse(i08IIWCtgsa0(LycYkDpyelF6)) if xafqLlk3kkUe(SXOLrMavuUCe(b'I'), chr(6792 - 6692) + '\145' + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(2478 - 2361) + chr(5777 - 5661) + '\x66' + '\x2d' + chr(56)) in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'E\xb6\xe2\x98P\x9f\xfdJ\x91\x89{\x04'), '\x64' + chr(101) + chr(0b1100011) + '\x6f' + '\144' + chr(2390 - 2289))(chr(10004 - 9887) + '\x74' + chr(8583 - 8481) + chr(45) + chr(1336 - 1280))) and xafqLlk3kkUe(QIe124s5EFAg, xafqLlk3kkUe(SXOLrMavuUCe(b'z\xac\xe9\xa4V\xbe'), '\x64' + '\x65' + '\x63' + chr(0b10100 + 0o133) + chr(3710 - 3610) + '\x65')(chr(9169 - 9052) + '\x74' + '\146' + chr(0b100001 + 0o14) + chr(56))) == xafqLlk3kkUe(SXOLrMavuUCe(b''), '\x64' + chr(101) + '\x63' + '\157' + chr(100) + chr(0b101010 + 0o73))(chr(117) + chr(116) + chr(102) + chr(0b101101) + '\070'): (AIvJRzLdDfgF, VNGQdHSFPrso, CYCr3xzMHl4K) = oVre8I6UXc3b.line.partition(xafqLlk3kkUe(SXOLrMavuUCe(b'I'), chr(0b1100100) + chr(0b100100 + 0o101) + '\143' + chr(0b1100000 + 0o17) + chr(100) + chr(7931 - 7830))(chr(117) + chr(0b1010111 + 0o35) + chr(102) + chr(0b101000 + 0o5) + '\x38')) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'@\x99\xe9\x85\x02\x9a\xf4y\x93\xb7PH'), '\x64' + '\x65' + chr(99) + '\157' + chr(100) + chr(0b1100101))('\165' + chr(0b1010100 + 0o40) + chr(8134 - 8032) + '\055' + chr(0b101100 + 0o14))) is None: CYCr3xzMHl4K = CYCr3xzMHl4K.VmIJF6Fy6LrX() oVre8I6UXc3b.IVhD9AyJgRmz = AIvJRzLdDfgF.VmIJF6Fy6LrX() if pmeeQkNrw7DC(CYCr3xzMHl4K): oVre8I6UXc3b.ODOa9TsIRjuf = ehT0Px3KOsy9(chr(1011 - 963) + chr(0b11010 + 0o125) + chr(0b110001), 8) LycYkDpyelF6 = CYCr3xzMHl4K.VmIJF6Fy6LrX() QIe124s5EFAg = mt98J_h8_2jo.urlparse(LycYkDpyelF6) v8RBOLFWbSog = QIe124s5EFAg.EaCjyhZptSer if xafqLlk3kkUe(SXOLrMavuUCe(b'I'), chr(0b1000110 + 0o36) + chr(0b1100101) + '\143' + chr(10381 - 10270) + '\144' + chr(3178 - 3077))('\165' + chr(5334 - 5218) + chr(0b11010 + 0o114) + chr(0b101101) + chr(2841 - 2785)) in v8RBOLFWbSog: (v8RBOLFWbSog, VNGQdHSFPrso, VNGQdHSFPrso) = v8RBOLFWbSog.rpartition(xafqLlk3kkUe(SXOLrMavuUCe(b'I'), '\x64' + chr(8263 - 8162) + '\143' + chr(0b11 + 0o154) + chr(2386 - 2286) + '\x65')(chr(6227 - 6110) + chr(0b1110100) + chr(3278 - 3176) + '\x2d' + chr(56))) QIe124s5EFAg = QIe124s5EFAg._replace(path=v8RBOLFWbSog) oVre8I6UXc3b.pGOXIus1IdS4 = QIe124s5EFAg return LycYkDpyelF6
pypa/pipenv
pipenv/vendor/requirementslib/models/requirements.py
Line.requirement_info
def requirement_info(self): # type: () -> Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]] """ Generates a 3-tuple of the requisite *name*, *extras* and *url* to generate a :class:`~packaging.requirements.Requirement` out of. :return: A Tuple of an optional name, a Tuple of extras, and an optional URL. :rtype: Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]] """ # Direct URLs can be converted to packaging requirements directly, but # only if they are `file://` (with only two slashes) name = None # type: Optional[S] extras = () # type: Tuple[Optional[S], ...] url = None # type: Optional[STRING_TYPE] # if self.is_direct_url: if self._name: name = canonicalize_name(self._name) if self.is_file or self.is_url or self.is_path or self.is_file_url or self.is_vcs: url = "" if self.is_vcs: url = self.url if self.url else self.uri if self.is_direct_url: url = self.link.url_without_fragment else: if self.link: url = self.link.url_without_fragment elif self.url: url = self.url if self.ref: url = "{0}@{1}".format(url, self.ref) else: url = self.uri if self.link and name is None: self._name = self.link.egg_fragment if self._name: name = canonicalize_name(self._name) return name, extras, url
python
def requirement_info(self): # type: () -> Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]] """ Generates a 3-tuple of the requisite *name*, *extras* and *url* to generate a :class:`~packaging.requirements.Requirement` out of. :return: A Tuple of an optional name, a Tuple of extras, and an optional URL. :rtype: Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]] """ # Direct URLs can be converted to packaging requirements directly, but # only if they are `file://` (with only two slashes) name = None # type: Optional[S] extras = () # type: Tuple[Optional[S], ...] url = None # type: Optional[STRING_TYPE] # if self.is_direct_url: if self._name: name = canonicalize_name(self._name) if self.is_file or self.is_url or self.is_path or self.is_file_url or self.is_vcs: url = "" if self.is_vcs: url = self.url if self.url else self.uri if self.is_direct_url: url = self.link.url_without_fragment else: if self.link: url = self.link.url_without_fragment elif self.url: url = self.url if self.ref: url = "{0}@{1}".format(url, self.ref) else: url = self.uri if self.link and name is None: self._name = self.link.egg_fragment if self._name: name = canonicalize_name(self._name) return name, extras, url
[ "def", "requirement_info", "(", "self", ")", ":", "# type: () -> Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]]", "# Direct URLs can be converted to packaging requirements directly, but", "# only if they are `file://` (with only two slashes)", "name", "=", "None", "# type: Optional[S]", "extras", "=", "(", ")", "# type: Tuple[Optional[S], ...]", "url", "=", "None", "# type: Optional[STRING_TYPE]", "# if self.is_direct_url:", "if", "self", ".", "_name", ":", "name", "=", "canonicalize_name", "(", "self", ".", "_name", ")", "if", "self", ".", "is_file", "or", "self", ".", "is_url", "or", "self", ".", "is_path", "or", "self", ".", "is_file_url", "or", "self", ".", "is_vcs", ":", "url", "=", "\"\"", "if", "self", ".", "is_vcs", ":", "url", "=", "self", ".", "url", "if", "self", ".", "url", "else", "self", ".", "uri", "if", "self", ".", "is_direct_url", ":", "url", "=", "self", ".", "link", ".", "url_without_fragment", "else", ":", "if", "self", ".", "link", ":", "url", "=", "self", ".", "link", ".", "url_without_fragment", "elif", "self", ".", "url", ":", "url", "=", "self", ".", "url", "if", "self", ".", "ref", ":", "url", "=", "\"{0}@{1}\"", ".", "format", "(", "url", ",", "self", ".", "ref", ")", "else", ":", "url", "=", "self", ".", "uri", "if", "self", ".", "link", "and", "name", "is", "None", ":", "self", ".", "_name", "=", "self", ".", "link", ".", "egg_fragment", "if", "self", ".", "_name", ":", "name", "=", "canonicalize_name", "(", "self", ".", "_name", ")", "return", "name", ",", "extras", ",", "url" ]
Generates a 3-tuple of the requisite *name*, *extras* and *url* to generate a :class:`~packaging.requirements.Requirement` out of. :return: A Tuple of an optional name, a Tuple of extras, and an optional URL. :rtype: Tuple[Optional[S], Tuple[Optional[S], ...], Optional[S]]
[ "Generates", "a", "3", "-", "tuple", "of", "the", "requisite", "*", "name", "*", "*", "extras", "*", "and", "*", "url", "*", "to", "generate", "a", ":", "class", ":", "~packaging", ".", "requirements", ".", "Requirement", "out", "of", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/models/requirements.py#L1044-L1081
train
Returns a 3 - tuple of the requisite name extras and URL.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvs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Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + chr(50) + chr(0b1111 + 0o50) + chr(0b110010), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b110000 + 0o3) + chr(0b10110 + 0o33), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + '\065' + chr(51), 11676 - 11668), ehT0Px3KOsy9(chr(0b110000) + chr(10075 - 9964) + chr(0b110110) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(0b100 + 0o57) + chr(0b101 + 0o56), 53583 - 53575), ehT0Px3KOsy9(chr(1644 - 1596) + chr(3023 - 2912) + chr(50) + chr(0b11001 + 0o35) + chr(0b10011 + 0o36), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + '\061' + chr(0b110101) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b110110 + 0o71) + '\x33' + '\x37' + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b110010 + 0o75) + chr(215 - 164) + '\064' + chr(0b110001 + 0o0), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1111 + 0o50), 21665 - 21657), ehT0Px3KOsy9(chr(915 - 867) + chr(111) + chr(1986 - 1935) + chr(1640 - 1587) + chr(0b100001 + 0o20), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b110101) + chr(0b101 + 0o53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10101 + 0o132) + chr(0b110001) + chr(50) + chr(0b0 + 0o67), 63563 - 63555), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + chr(50) + chr(55), 8), ehT0Px3KOsy9('\x30' + chr(0b1010100 + 0o33) + chr(49) + '\066' + '\061', 0o10), ehT0Px3KOsy9(chr(1773 - 1725) + '\157' + chr(2284 - 2233) + '\066' + chr(210 - 161), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + chr(173 - 124) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101 + 0o56) + chr(2140 - 2089) + chr(0b100111 + 0o12), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\x31' + '\066', 17077 - 17069), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(5800 - 5689) + chr(50) + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010 + 0o145) + chr(49) + chr(55), 24744 - 24736), ehT0Px3KOsy9(chr(0b110000) + chr(0b11 + 0o154) + chr(0b110011) + chr(2148 - 2096) + chr(0b110000), 25889 - 25881), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001011 + 0o44) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + '\066' + chr(2393 - 2340), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b100001 + 0o21) + chr(1016 - 961) + chr(0b110010), 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(0b101101 + 0o11), 0o10), ehT0Px3KOsy9(chr(2092 - 2044) + '\157' + chr(278 - 228) + chr(52) + '\065', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(0b11 + 0o60) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(111) + chr(0b110011) + '\066' + chr(0b100100 + 0o23), 44962 - 44954), ehT0Px3KOsy9('\x30' + chr(9656 - 9545) + chr(1266 - 1217) + '\x37' + chr(50), 59011 - 59003), ehT0Px3KOsy9('\x30' + chr(111) + '\x33' + '\066' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + chr(1888 - 1839) + chr(50) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\157' + chr(0b110010) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(1148 - 1100) + chr(0b101000 + 0o107) + chr(0b110001) + chr(1843 - 1789) + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b110110) + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(48), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100 + 0o55) + '\x33' + chr(1297 - 1245), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + chr(0b1011 + 0o46) + '\x32' + chr(2290 - 2240), 0b1000), ehT0Px3KOsy9(chr(1425 - 1377) + chr(0b1001 + 0o146) + '\x37' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b111011 + 0o64) + '\x32' + chr(0b10010 + 0o36) + '\x36', 58959 - 58951)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b1101100 + 0o3) + '\065' + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x94'), '\x64' + chr(390 - 289) + chr(99) + chr(111) + chr(100) + chr(0b1100101))(chr(0b110011 + 0o102) + chr(0b1100010 + 0o22) + '\146' + chr(0b101101) + chr(850 - 794)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def wuTUgsN_LNiS(oVre8I6UXc3b): AIvJRzLdDfgF = None HD5jUt7dcR5R = () CYCr3xzMHl4K = None if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\x0f\xc3wb\xf0\x16\xb1\x86U\x84\xd2'), chr(0b1100100) + chr(101) + chr(0b110110 + 0o55) + chr(11822 - 11711) + chr(0b1100100) + chr(1124 - 1023))(chr(8566 - 8449) + chr(0b1110100) + chr(102) + chr(0b1 + 0o54) + chr(0b111000))): AIvJRzLdDfgF = b_5TrtxayUo8(oVre8I6UXc3b.IVhD9AyJgRmz) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4U2\xdd\n'), chr(0b1001111 + 0o25) + chr(1543 - 1442) + '\143' + chr(0b1101111) + chr(5867 - 5767) + chr(0b111011 + 0o52))(chr(1386 - 1269) + '\x74' + chr(0b11001 + 0o115) + '\x2d' + chr(0b111000))) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4F)\xdd'), chr(0b1000 + 0o134) + chr(101) + '\x63' + '\157' + chr(100) + chr(1429 - 1328))(chr(7158 - 7041) + '\x74' + '\x66' + chr(45) + chr(0b111000))) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4C:\xc5\x07'), chr(0b1010011 + 0o21) + '\145' + chr(0b1100011) + chr(7999 - 7888) + '\144' + chr(101))('\x75' + chr(0b111010 + 0o72) + chr(430 - 328) + chr(0b1000 + 0o45) + chr(984 - 928))) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4U2\xdd\n\xa4\x94u\x85'), '\x64' + chr(0b1100101) + chr(0b1010001 + 0o22) + chr(111) + '\x64' + chr(101))(chr(0b101011 + 0o112) + chr(0b1011111 + 0o25) + chr(8900 - 8798) + chr(1987 - 1942) + '\x38')) or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4E8\xc2'), chr(100) + chr(2112 - 2011) + '\x63' + '\x6f' + chr(100) + '\145')(chr(117) + chr(116) + chr(102) + chr(0b11100 + 0o21) + chr(0b111000))): CYCr3xzMHl4K = xafqLlk3kkUe(SXOLrMavuUCe(b''), '\144' + chr(7211 - 7110) + chr(4908 - 4809) + '\157' + chr(0b1011 + 0o131) + chr(101))('\165' + chr(116) + chr(0b1100110) + '\x2d' + '\070') if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3*\xf4E8\xc2'), chr(100) + chr(5624 - 5523) + chr(4243 - 4144) + chr(10375 - 10264) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(5480 - 5378) + chr(0b11010 + 0o23) + chr(1686 - 1630))): CYCr3xzMHl4K = oVre8I6UXc3b.CYCr3xzMHl4K if oVre8I6UXc3b.CYCr3xzMHl4K else oVre8I6UXc3b.uri if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf5\x1d\xe4Rb\xe5\x1c\xb2\xb3m\x9c\xce'), chr(100) + chr(0b1100101) + chr(7225 - 7126) + '\157' + '\144' + '\x65')(chr(0b10110 + 0o137) + '\164' + chr(0b100000 + 0o106) + chr(45) + chr(0b111000))): CYCr3xzMHl4K = oVre8I6UXc3b.link.url_without_fragment elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2\x12\xf3R"\xee\x17\xc8\x91]\x82\x9d'), chr(6969 - 6869) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38')): CYCr3xzMHl4K = oVre8I6UXc3b.link.url_without_fragment elif xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\x00\xe8Ah\xc9\x15\xb6\xa9k\xdd\xe3'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + chr(6217 - 6117) + chr(0b1100101))(chr(0b1110101) + chr(7947 - 7831) + '\x66' + '\x2d' + '\x38')): CYCr3xzMHl4K = oVre8I6UXc3b.CYCr3xzMHl4K if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc8<\xcd'), '\144' + chr(0b1100101) + chr(99) + '\157' + '\x64' + chr(10071 - 9970))('\165' + chr(8606 - 8490) + chr(0b1100110) + chr(0b101101) + chr(1190 - 1134))): CYCr3xzMHl4K = xafqLlk3kkUe(SXOLrMavuUCe(b'\xc1i\xd6s \x80\x12'), '\144' + '\x65' + '\143' + chr(0b10111 + 0o130) + chr(0b1011001 + 0o13) + '\x65')(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\070').V4roHaS3Ppej(CYCr3xzMHl4K, oVre8I6UXc3b.ref) else: CYCr3xzMHl4K = oVre8I6UXc3b.uri if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2\x12\xf3R"\xee\x17\xc8\x91]\x82\x9d'), chr(0b1100100) + '\x65' + '\143' + '\157' + '\x64' + '\x65')(chr(117) + chr(0b1000110 + 0o56) + '\x66' + chr(0b101001 + 0o4) + chr(56))) and AIvJRzLdDfgF is None: oVre8I6UXc3b.IVhD9AyJgRmz = oVre8I6UXc3b.link.egg_fragment if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\x0f\xc3wb\xf0\x16\xb1\x86U\x84\xd2'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(0b101011 + 0o71) + chr(101))(chr(0b111110 + 0o67) + chr(0b101100 + 0o110) + '\146' + chr(1135 - 1090) + chr(0b111000))): AIvJRzLdDfgF = b_5TrtxayUo8(oVre8I6UXc3b.IVhD9AyJgRmz) return (AIvJRzLdDfgF, HD5jUt7dcR5R, CYCr3xzMHl4K)
pypa/pipenv
pipenv/vendor/requirementslib/models/requirements.py
Line.line_is_installable
def line_is_installable(self): # type: () -> bool """ This is a safeguard against decoy requirements when a user installs a package whose name coincides with the name of a folder in the cwd, e.g. install *alembic* when there is a folder called *alembic* in the working directory. In this case we first need to check that the given requirement is a valid URL, VCS requirement, or installable filesystem path before deciding to treat it as a file requirement over a named requirement. """ line = self.line if is_file_url(line): link = create_link(line) line = link.url_without_fragment line, _ = split_ref_from_uri(line) if ( is_vcs(line) or ( is_valid_url(line) and (not is_file_url(line) or is_installable_file(line)) ) or is_installable_file(line) ): return True return False
python
def line_is_installable(self): # type: () -> bool """ This is a safeguard against decoy requirements when a user installs a package whose name coincides with the name of a folder in the cwd, e.g. install *alembic* when there is a folder called *alembic* in the working directory. In this case we first need to check that the given requirement is a valid URL, VCS requirement, or installable filesystem path before deciding to treat it as a file requirement over a named requirement. """ line = self.line if is_file_url(line): link = create_link(line) line = link.url_without_fragment line, _ = split_ref_from_uri(line) if ( is_vcs(line) or ( is_valid_url(line) and (not is_file_url(line) or is_installable_file(line)) ) or is_installable_file(line) ): return True return False
[ "def", "line_is_installable", "(", "self", ")", ":", "# type: () -> bool", "line", "=", "self", ".", "line", "if", "is_file_url", "(", "line", ")", ":", "link", "=", "create_link", "(", "line", ")", "line", "=", "link", ".", "url_without_fragment", "line", ",", "_", "=", "split_ref_from_uri", "(", "line", ")", "if", "(", "is_vcs", "(", "line", ")", "or", "(", "is_valid_url", "(", "line", ")", "and", "(", "not", "is_file_url", "(", "line", ")", "or", "is_installable_file", "(", "line", ")", ")", ")", "or", "is_installable_file", "(", "line", ")", ")", ":", "return", "True", "return", "False" ]
This is a safeguard against decoy requirements when a user installs a package whose name coincides with the name of a folder in the cwd, e.g. install *alembic* when there is a folder called *alembic* in the working directory. In this case we first need to check that the given requirement is a valid URL, VCS requirement, or installable filesystem path before deciding to treat it as a file requirement over a named requirement.
[ "This", "is", "a", "safeguard", "against", "decoy", "requirements", "when", "a", "user", "installs", "a", "package", "whose", "name", "coincides", "with", "the", "name", "of", "a", "folder", "in", "the", "cwd", "e", ".", "g", ".", "install", "*", "alembic", "*", "when", "there", "is", "a", "folder", "called", "*", "alembic", "*", "in", "the", "working", "directory", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/requirementslib/models/requirements.py#L1084-L1109
train
Checks if the given line is installable.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DX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Llk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100 + 0o54) + '\x6f' + chr(50) + '\x31' + chr(0b11111 + 0o21), 53110 - 53102), ehT0Px3KOsy9(chr(1194 - 1146) + chr(0b1101111) + chr(790 - 739) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + chr(0b110111) + chr(0b101110 + 0o10), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b100111 + 0o12) + chr(1241 - 1193), 0b1000), ehT0Px3KOsy9(chr(1913 - 1865) + '\x6f' + '\x35' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + '\x36' + chr(52), 2674 - 2666), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1064 - 1014) + chr(209 - 158) + chr(854 - 799), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\064' + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(1193 - 1145) + chr(0b1000 + 0o147) + chr(0b100 + 0o60) + '\x32', 46419 - 46411), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + chr(0b110010) + chr(576 - 527), 29361 - 29353), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1223 - 1173) + chr(640 - 587) + chr(0b11100 + 0o24), 41072 - 41064), ehT0Px3KOsy9(chr(1056 - 1008) + chr(0b1011001 + 0o26) + chr(0b100110 + 0o13) + '\x33' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(10824 - 10713) + chr(2678 - 2626) + chr(0b110111), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b110100 + 0o0) + chr(0b1001 + 0o55), 14546 - 14538), ehT0Px3KOsy9(chr(1350 - 1302) + chr(2755 - 2644) + '\x32' + chr(1790 - 1738) + chr(0b11001 + 0o33), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + chr(2027 - 1973) + chr(0b1 + 0o66), 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + chr(0b110011) + chr(0b110111 + 0o0) + chr(1143 - 1095), 0b1000), ehT0Px3KOsy9(chr(1072 - 1024) + chr(0b111001 + 0o66) + '\x31' + '\x30' + '\x31', 2686 - 2678), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1842 - 1793) + chr(0b110001) + chr(644 - 593), 0o10), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b110010) + chr(53) + '\067', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b11 + 0o154) + chr(49) + '\x31' + chr(51), 8), ehT0Px3KOsy9('\060' + chr(0b1001100 + 0o43) + chr(0b110010) + chr(1672 - 1623) + chr(0b100011 + 0o22), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(0b110101 + 0o1) + '\x34', 10354 - 10346), ehT0Px3KOsy9(chr(158 - 110) + chr(0b1101111) + chr(2336 - 2286) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1039 - 928) + '\x32' + chr(281 - 230), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000010 + 0o55) + '\x32', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + '\x32' + chr(50), 0o10), ehT0Px3KOsy9(chr(48) + chr(8325 - 8214) + '\x32' + chr(1254 - 1205) + '\065', 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100 + 0o55) + chr(54) + '\064', 8), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b1000011 + 0o54) + chr(49) + chr(50) + chr(0b110010 + 0o2), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + '\061' + chr(52), 15580 - 15572), ehT0Px3KOsy9(chr(1260 - 1212) + '\x6f' + chr(1177 - 1127) + chr(2066 - 2016) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(114 - 61) + chr(2598 - 2547), 61645 - 61637), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10111 + 0o32) + chr(50) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001 + 0o5) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10797 - 10686) + '\x36' + chr(0b111 + 0o54), 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(8606 - 8495) + '\063' + chr(0b100010 + 0o22), 16751 - 16743), ehT0Px3KOsy9('\x30' + chr(0b111000 + 0o67) + '\x31', 0o10), ehT0Px3KOsy9(chr(1470 - 1422) + chr(0b1101111) + chr(0b10100 + 0o35) + chr(2606 - 2552) + '\x37', 8), ehT0Px3KOsy9(chr(1829 - 1781) + '\157' + '\x32' + chr(2457 - 2406) + chr(0b110010), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101011 + 0o12) + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6'), '\x64' + '\145' + '\x63' + chr(111) + chr(2250 - 2150) + chr(2930 - 2829))('\165' + chr(116) + chr(5541 - 5439) + chr(172 - 127) + chr(2913 - 2857)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def oMf7cCVqaQES(oVre8I6UXc3b): LycYkDpyelF6 = oVre8I6UXc3b.LycYkDpyelF6 if IeZUZopHAAfM(LycYkDpyelF6): HKXay_x3pZk5 = b3RGlZYDgVyw(LycYkDpyelF6) LycYkDpyelF6 = HKXay_x3pZk5.url_without_fragment (LycYkDpyelF6, VNGQdHSFPrso) = KfVBgemw0lr6(LycYkDpyelF6) if DuGaOAHbtwnC(LycYkDpyelF6) or (pmeeQkNrw7DC(LycYkDpyelF6) and (not IeZUZopHAAfM(LycYkDpyelF6) or n5VaR3Bdf2Ms(LycYkDpyelF6))) or n5VaR3Bdf2Ms(LycYkDpyelF6): return ehT0Px3KOsy9(chr(48) + chr(111) + chr(49), 8) return ehT0Px3KOsy9(chr(48) + chr(0b1100010 + 0o15) + '\x30', ord("\x08"))
pypa/pipenv
pipenv/vendor/ptyprocess/_fork_pty.py
fork_pty
def fork_pty(): '''This implements a substitute for the forkpty system call. This should be more portable than the pty.fork() function. Specifically, this should work on Solaris. Modified 10.06.05 by Geoff Marshall: Implemented __fork_pty() method to resolve the issue with Python's pty.fork() not supporting Solaris, particularly ssh. Based on patch to posixmodule.c authored by Noah Spurrier:: http://mail.python.org/pipermail/python-dev/2003-May/035281.html ''' parent_fd, child_fd = os.openpty() if parent_fd < 0 or child_fd < 0: raise OSError("os.openpty() failed") pid = os.fork() if pid == CHILD: # Child. os.close(parent_fd) pty_make_controlling_tty(child_fd) os.dup2(child_fd, STDIN_FILENO) os.dup2(child_fd, STDOUT_FILENO) os.dup2(child_fd, STDERR_FILENO) else: # Parent. os.close(child_fd) return pid, parent_fd
python
def fork_pty(): '''This implements a substitute for the forkpty system call. This should be more portable than the pty.fork() function. Specifically, this should work on Solaris. Modified 10.06.05 by Geoff Marshall: Implemented __fork_pty() method to resolve the issue with Python's pty.fork() not supporting Solaris, particularly ssh. Based on patch to posixmodule.c authored by Noah Spurrier:: http://mail.python.org/pipermail/python-dev/2003-May/035281.html ''' parent_fd, child_fd = os.openpty() if parent_fd < 0 or child_fd < 0: raise OSError("os.openpty() failed") pid = os.fork() if pid == CHILD: # Child. os.close(parent_fd) pty_make_controlling_tty(child_fd) os.dup2(child_fd, STDIN_FILENO) os.dup2(child_fd, STDOUT_FILENO) os.dup2(child_fd, STDERR_FILENO) else: # Parent. os.close(child_fd) return pid, parent_fd
[ "def", "fork_pty", "(", ")", ":", "parent_fd", ",", "child_fd", "=", "os", ".", "openpty", "(", ")", "if", "parent_fd", "<", "0", "or", "child_fd", "<", "0", ":", "raise", "OSError", "(", "\"os.openpty() failed\"", ")", "pid", "=", "os", ".", "fork", "(", ")", "if", "pid", "==", "CHILD", ":", "# Child.", "os", ".", "close", "(", "parent_fd", ")", "pty_make_controlling_tty", "(", "child_fd", ")", "os", ".", "dup2", "(", "child_fd", ",", "STDIN_FILENO", ")", "os", ".", "dup2", "(", "child_fd", ",", "STDOUT_FILENO", ")", "os", ".", "dup2", "(", "child_fd", ",", "STDERR_FILENO", ")", "else", ":", "# Parent.", "os", ".", "close", "(", "child_fd", ")", "return", "pid", ",", "parent_fd" ]
This implements a substitute for the forkpty system call. This should be more portable than the pty.fork() function. Specifically, this should work on Solaris. Modified 10.06.05 by Geoff Marshall: Implemented __fork_pty() method to resolve the issue with Python's pty.fork() not supporting Solaris, particularly ssh. Based on patch to posixmodule.c authored by Noah Spurrier:: http://mail.python.org/pipermail/python-dev/2003-May/035281.html
[ "This", "implements", "a", "substitute", "for", "the", "forkpty", "system", "call", ".", "This", "should", "be", "more", "portable", "than", "the", "pty", ".", "fork", "()", "function", ".", "Specifically", "this", "should", "work", "on", "Solaris", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/ptyprocess/_fork_pty.py#L9-L41
train
This method implements a substitute for the forkpty system call.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ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g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + '\061' + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(875 - 764) + '\x31' + '\x35' + chr(0b11111 + 0o23), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x31' + chr(1518 - 1469), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + chr(55) + chr(49), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + chr(0b1 + 0o60) + chr(0b110101), 50004 - 49996), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(111) + chr(0b100010 + 0o22) + '\x33', 0o10), ehT0Px3KOsy9(chr(765 - 717) + chr(111) + chr(0b100110 + 0o14) + '\x33' + chr(2222 - 2171), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(984 - 935) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(2041 - 1993) + '\x6f' + '\063' + '\064' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(52) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\157' + '\x32' + '\061' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + '\x37' + chr(49), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b110010 + 0o75) + '\062' + chr(51) + chr(0b110000), 55581 - 55573), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(0b111 + 0o52) + chr(2788 - 2735), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11853 - 11742) + chr(0b110001) + '\x33' + chr(0b110111), 10510 - 10502), ehT0Px3KOsy9('\060' + chr(10677 - 10566) + chr(1429 - 1380) + chr(0b110000) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(52) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + chr(2968 - 2913) + chr(1183 - 1134), ord("\x08")), ehT0Px3KOsy9(chr(826 - 778) + '\x6f' + chr(0b1001 + 0o51) + chr(1098 - 1049), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(657 - 607) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(587 - 539) + chr(111) + '\063' + chr(53) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + '\062' + chr(671 - 622), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5450 - 5339) + chr(1016 - 967) + chr(55) + chr(0b11011 + 0o34), 33187 - 33179), ehT0Px3KOsy9(chr(0b110000) + chr(5321 - 5210) + chr(0b110111) + chr(0b1001 + 0o53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + '\x33' + chr(0b110111) + '\064', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1010011 + 0o34) + '\x36' + '\061', 27592 - 27584), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1 + 0o60) + '\x36' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\064' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + chr(1888 - 1835) + chr(0b110010), 30648 - 30640), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1111 + 0o140) + chr(0b100000 + 0o22) + '\x36' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(111) + chr(1927 - 1877) + '\067' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(825 - 777) + chr(111) + chr(0b110001) + chr(0b100101 + 0o21) + chr(967 - 917), 48684 - 48676), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + '\x31' + '\065', 15640 - 15632), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + '\x31' + chr(485 - 433), 33708 - 33700), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(53) + '\067', 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(1968 - 1913) + chr(0b1010 + 0o53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3422 - 3311) + chr(2326 - 2275) + '\x33' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(2023 - 1975) + '\157' + chr(53) + '\x35', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(1478 - 1367) + '\x35' + chr(48), 30049 - 30041)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5'), chr(0b1100100) + '\145' + chr(1613 - 1514) + '\x6f' + '\144' + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(0b11100 + 0o21) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def O82hTCKxd9vu(): (HWUQRgVscyPg, DrCheGE060dH) = oqhJDdMJfuwx.openpty() if HWUQRgVscyPg < ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110000), 0b1000) or DrCheGE060dH < ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(6907 - 6796) + chr(48), 8): raise KlPSljPzIJ_u(xafqLlk3kkUe(SXOLrMavuUCe(b"\xe4\x19'\xd6\xbdF\xf5~\x92\xda\xa0\x90\xb8+>)H\\u"), chr(100) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b11001 + 0o114))(chr(117) + chr(1302 - 1186) + chr(0b1100110) + '\x2d' + chr(239 - 183))) pdFjuIGjrFb4 = oqhJDdMJfuwx.fork() if pdFjuIGjrFb4 == CJ3dtnP1Y_ye: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\x06f\xca\xa8'), '\x64' + '\x65' + chr(0b1100011) + '\157' + chr(3141 - 3041) + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(0b10111 + 0o26) + '\x38'))(HWUQRgVscyPg) AnmnlvHiou1S(DrCheGE060dH) xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xef\x1fy\x8b'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(7540 - 7429) + chr(0b1100100) + chr(0b1100101))(chr(11762 - 11645) + '\x74' + chr(1064 - 962) + '\055' + chr(56)))(DrCheGE060dH, LPwUr6z53qV2) xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xef\x1fy\x8b'), '\x64' + '\145' + chr(0b1010101 + 0o16) + chr(0b111011 + 0o64) + '\144' + chr(0b1100101))('\165' + '\164' + chr(0b1100110) + chr(45) + '\x38'))(DrCheGE060dH, H_Rug1QJnl9D) xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xef\x1fy\x8b'), '\x64' + '\x65' + chr(99) + chr(0b101000 + 0o107) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(102) + chr(45) + '\x38'))(DrCheGE060dH, ee0EeJgUflVv) else: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\x06f\xca\xa8'), chr(0b1000100 + 0o40) + chr(0b100010 + 0o103) + chr(0b10110 + 0o115) + chr(3093 - 2982) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + chr(0b10000 + 0o50)))(DrCheGE060dH) return (pdFjuIGjrFb4, HWUQRgVscyPg)
pypa/pipenv
pipenv/vendor/click/utils.py
safecall
def safecall(func): """Wraps a function so that it swallows exceptions.""" def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception: pass return wrapper
python
def safecall(func): """Wraps a function so that it swallows exceptions.""" def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception: pass return wrapper
[ "def", "safecall", "(", "func", ")", ":", "def", "wrapper", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "try", ":", "return", "func", "(", "*", "args", ",", "*", "*", "kwargs", ")", "except", "Exception", ":", "pass", "return", "wrapper" ]
Wraps a function so that it swallows exceptions.
[ "Wraps", "a", "function", "so", "that", "it", "swallows", "exceptions", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L25-L32
train
Wraps a function so that it swallows exceptions.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljP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XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10010 + 0o43) + chr(1660 - 1608), 33474 - 33466), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(3031 - 2920) + '\x34' + '\x32', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101011 + 0o4) + '\061' + chr(49) + chr(0b101 + 0o57), 21741 - 21733), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\x33' + chr(0b110101 + 0o0), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11111 + 0o22) + chr(1486 - 1434) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1110 + 0o47) + chr(52), 8), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\x6f' + chr(0b110110) + chr(0b100001 + 0o20), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1388 - 1335) + chr(49), 61618 - 61610), ehT0Px3KOsy9(chr(48) + chr(8001 - 7890) + chr(0b110010) + '\063' + '\x30', 26165 - 26157), ehT0Px3KOsy9('\060' + '\x6f' + chr(2531 - 2476) + chr(0b10110 + 0o37), 0b1000), ehT0Px3KOsy9(chr(373 - 325) + chr(6425 - 6314) + chr(1218 - 1169) + chr(0b110011) + chr(0b100011 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\157' + chr(50) + chr(0b101111 + 0o1) + chr(1400 - 1352), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001111 + 0o40) + chr(2456 - 2405) + '\060' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\066', 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1100111 + 0o10) + '\x33' + chr(0b1 + 0o61) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b1 + 0o57) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(1435 - 1387) + chr(7194 - 7083) + chr(1816 - 1765) + chr(55) + chr(0b1 + 0o64), 51445 - 51437), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\065' + chr(48), 0o10), ehT0Px3KOsy9(chr(48) + chr(2328 - 2217) + '\x33' + '\066' + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(10237 - 10126) + chr(0b11000 + 0o32) + chr(0b110111) + chr(1145 - 1095), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(225 - 175) + chr(0b10011 + 0o35) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(48) + '\063', 36619 - 36611), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(48) + chr(0b101000 + 0o17), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(53) + chr(0b110111), 56920 - 56912), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b110001) + '\x36', 47228 - 47220), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + chr(50) + chr(51) + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b110011 + 0o74) + '\x33' + chr(812 - 762) + chr(0b100110 + 0o15), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(714 - 663) + chr(2213 - 2163) + chr(2201 - 2149), 0o10), ehT0Px3KOsy9(chr(1567 - 1519) + chr(0b1101111) + chr(0b110001) + '\060' + '\x31', 25311 - 25303), ehT0Px3KOsy9('\060' + chr(285 - 174) + chr(0b110010) + '\x36' + chr(2003 - 1951), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001010 + 0o45) + '\063' + '\x34' + chr(0b11110 + 0o31), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\x37' + '\063', 45022 - 45014), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + '\063' + chr(252 - 202), 0o10), ehT0Px3KOsy9(chr(442 - 394) + chr(0b1101111) + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(0b1100 + 0o44) + chr(471 - 423), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(982 - 871) + '\x33' + '\064' + chr(0b101111 + 0o7), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(4956 - 4845) + chr(0b110011) + chr(0b1001 + 0o54) + chr(2228 - 2173), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10617 - 10506) + '\061' + chr(406 - 355) + chr(50), 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + '\062' + chr(581 - 533), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(51) + chr(0b110101), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110100 + 0o1) + chr(0b110000), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x02'), chr(4751 - 4651) + chr(0b1011101 + 0o10) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110 + 0o147) + '\164' + chr(0b1100110) + chr(0b10 + 0o53) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def MZXM1G1kTKEm(EzOtJ3kbK5x4): def WW5T3xxdlUaG(*kJDRfRhcZHjS, **M8EIoTs2GJXE): try: return EzOtJ3kbK5x4(*kJDRfRhcZHjS, **M8EIoTs2GJXE) except jLmadlzMdunT: pass return WW5T3xxdlUaG
pypa/pipenv
pipenv/vendor/click/utils.py
make_str
def make_str(value): """Converts a value into a valid string.""" if isinstance(value, bytes): try: return value.decode(get_filesystem_encoding()) except UnicodeError: return value.decode('utf-8', 'replace') return text_type(value)
python
def make_str(value): """Converts a value into a valid string.""" if isinstance(value, bytes): try: return value.decode(get_filesystem_encoding()) except UnicodeError: return value.decode('utf-8', 'replace') return text_type(value)
[ "def", "make_str", "(", "value", ")", ":", "if", "isinstance", "(", "value", ",", "bytes", ")", ":", "try", ":", "return", "value", ".", "decode", "(", "get_filesystem_encoding", "(", ")", ")", "except", "UnicodeError", ":", "return", "value", ".", "decode", "(", "'utf-8'", ",", "'replace'", ")", "return", "text_type", "(", "value", ")" ]
Converts a value into a valid string.
[ "Converts", "a", "value", "into", "a", "valid", "string", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L35-L42
train
Converts a value into a valid string.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGF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jMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100000 + 0o23) + '\066' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(7127 - 7016) + chr(0b110001) + chr(1341 - 1293) + '\x32', 45366 - 45358), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\x37' + '\062', 0o10), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\x6f' + chr(1367 - 1317) + chr(764 - 716) + chr(0b1101 + 0o47), 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + '\066' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(2039 - 1989) + '\x30' + '\x30', 6340 - 6332), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(2531 - 2476) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110000 + 0o4) + chr(53), 49528 - 49520), ehT0Px3KOsy9(chr(1252 - 1204) + '\x6f' + chr(0b1010 + 0o51) + chr(53) + chr(2298 - 2250), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b110010) + chr(1635 - 1587), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + chr(51) + '\x30' + chr(0b100011 + 0o16), 27291 - 27283), ehT0Px3KOsy9('\060' + chr(9455 - 9344) + '\x37', 59932 - 59924), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b10 + 0o61) + chr(1637 - 1585) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101 + 0o142) + chr(0b110001) + chr(269 - 219) + chr(2636 - 2582), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\x33' + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(495 - 445) + chr(49) + '\065', 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\x6f' + chr(51) + chr(51) + '\x35', 45142 - 45134), ehT0Px3KOsy9('\060' + chr(111) + '\061' + '\060' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(721 - 671) + chr(461 - 408) + '\x30', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\060' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(0b10100 + 0o37) + chr(0b110101) + chr(1539 - 1488), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b10101 + 0o132) + chr(0b110011) + chr(0b110001) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101100 + 0o7) + '\067' + chr(2063 - 2010), ord("\x08")), ehT0Px3KOsy9(chr(2272 - 2224) + chr(111) + '\x33' + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10010 + 0o37) + chr(504 - 454) + chr(1931 - 1880), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\x35' + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110111) + chr(0b10000 + 0o41), 40271 - 40263), ehT0Px3KOsy9(chr(1480 - 1432) + chr(0b1101111) + chr(0b101010 + 0o7) + '\066' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(48) + chr(0b11000 + 0o30), 34508 - 34500), ehT0Px3KOsy9(chr(930 - 882) + '\x6f' + '\x36' + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(0b11111 + 0o27), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\060' + '\062', 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(468 - 414) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001010 + 0o45) + chr(260 - 211) + chr(1912 - 1863) + chr(0b101011 + 0o7), 1499 - 1491), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(7713 - 7602) + chr(0b101 + 0o55) + '\066' + chr(0b100110 + 0o12), 0b1000), ehT0Px3KOsy9(chr(283 - 235) + chr(11661 - 11550) + chr(49) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + chr(0b110100) + chr(0b110100), 48846 - 48838), ehT0Px3KOsy9(chr(143 - 95) + '\157' + chr(0b11001 + 0o32) + '\x36' + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b100101 + 0o17) + '\063', 0o10), ehT0Px3KOsy9(chr(770 - 722) + '\157' + '\062' + chr(2799 - 2745) + chr(2405 - 2355), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1100001 + 0o16) + chr(0b110101) + chr(0b110000), 64718 - 64710)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc'), '\144' + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100) + chr(824 - 723))('\x75' + chr(116) + chr(0b1100000 + 0o6) + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WL0oPF4jxIqe(QmmgWUB13VCJ): if PlSM16l2KDPD(QmmgWUB13VCJ, QOfmzcVJsrp8): try: return xafqLlk3kkUe(QmmgWUB13VCJ, chr(154 - 54) + chr(101) + chr(1974 - 1875) + chr(0b1 + 0o156) + chr(0b1100100) + '\x65')(d5sndc3jb2BJ()) except NE1Yam2HHroQ: return xafqLlk3kkUe(QmmgWUB13VCJ, chr(1679 - 1579) + '\x65' + chr(6974 - 6875) + '\157' + chr(0b101110 + 0o66) + chr(5752 - 5651))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x876\x9c\xa9\x0b'), chr(0b101011 + 0o71) + chr(101) + chr(0b100 + 0o137) + chr(7750 - 7639) + '\x64' + '\145')('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b"\x80'\x8a\xe8R\xe3\x1d"), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(5511 - 5395) + chr(102) + chr(0b1101 + 0o40) + chr(1028 - 972))) return q1MiJcALIjIZ(QmmgWUB13VCJ)
pypa/pipenv
pipenv/vendor/click/utils.py
make_default_short_help
def make_default_short_help(help, max_length=45): """Return a condensed version of help string.""" words = help.split() total_length = 0 result = [] done = False for word in words: if word[-1:] == '.': done = True new_length = result and 1 + len(word) or len(word) if total_length + new_length > max_length: result.append('...') done = True else: if result: result.append(' ') result.append(word) if done: break total_length += new_length return ''.join(result)
python
def make_default_short_help(help, max_length=45): """Return a condensed version of help string.""" words = help.split() total_length = 0 result = [] done = False for word in words: if word[-1:] == '.': done = True new_length = result and 1 + len(word) or len(word) if total_length + new_length > max_length: result.append('...') done = True else: if result: result.append(' ') result.append(word) if done: break total_length += new_length return ''.join(result)
[ "def", "make_default_short_help", "(", "help", ",", "max_length", "=", "45", ")", ":", "words", "=", "help", ".", "split", "(", ")", "total_length", "=", "0", "result", "=", "[", "]", "done", "=", "False", "for", "word", "in", "words", ":", "if", "word", "[", "-", "1", ":", "]", "==", "'.'", ":", "done", "=", "True", "new_length", "=", "result", "and", "1", "+", "len", "(", "word", ")", "or", "len", "(", "word", ")", "if", "total_length", "+", "new_length", ">", "max_length", ":", "result", ".", "append", "(", "'...'", ")", "done", "=", "True", "else", ":", "if", "result", ":", "result", ".", "append", "(", "' '", ")", "result", ".", "append", "(", "word", ")", "if", "done", ":", "break", "total_length", "+=", "new_length", "return", "''", ".", "join", "(", "result", ")" ]
Return a condensed version of help string.
[ "Return", "a", "condensed", "version", "of", "help", "string", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L45-L67
train
Return a condensed version of help string.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJ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yh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b10111 + 0o130) + chr(0b101010 + 0o7) + chr(0b110111) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(11569 - 11458) + '\x33' + chr(48) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10010 + 0o135) + chr(0b100100 + 0o17) + '\062' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + chr(55) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100 + 0o143) + chr(51) + chr(54) + '\060', 14800 - 14792), ehT0Px3KOsy9(chr(1871 - 1823) + chr(0b1101111) + chr(0b100000 + 0o22) + chr(1324 - 1269) + chr(0b1 + 0o60), 19401 - 19393), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + chr(388 - 339) + '\x37' + chr(0b10 + 0o60), 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101111) + '\x35' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1596 - 1547) + chr(85 - 33) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1110 + 0o141) + '\066' + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + chr(0b110101) + chr(55), 0o10), ehT0Px3KOsy9(chr(48) + chr(2976 - 2865) + chr(51) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1001000 + 0o47) + chr(51) + '\x32' + '\x36', 53647 - 53639), ehT0Px3KOsy9(chr(668 - 620) + chr(111) + chr(0b110001) + '\x34' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(11907 - 11796) + '\x31' + '\064' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011010 + 0o25) + chr(0b1111 + 0o42) + chr(50) + chr(0b110111), 28689 - 28681), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(394 - 344) + '\x30' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(1207 - 1159) + chr(111) + chr(0b10 + 0o61) + '\x33' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1205 - 1155) + chr(2263 - 2213) + chr(0b110110), 9700 - 9692), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(0b1111 + 0o47) + chr(1470 - 1419), 0o10), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b11011 + 0o124) + '\062' + '\064' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b101 + 0o53) + '\x32', 8), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + chr(0b1010 + 0o50) + chr(0b100000 + 0o21), 43543 - 43535), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(0b100000 + 0o23) + chr(1119 - 1067) + chr(49), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\x32' + chr(0b110011) + chr(0b100111 + 0o20), 0b1000), ehT0Px3KOsy9(chr(2237 - 2189) + '\x6f' + '\x36' + '\x32', 0b1000), ehT0Px3KOsy9(chr(1916 - 1868) + chr(111) + chr(0b10000 + 0o41) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(2024 - 1973) + chr(0b110000 + 0o1) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(2268 - 2220) + chr(2176 - 2065) + '\x33' + '\061' + chr(1185 - 1132), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + chr(49), 0o10), ehT0Px3KOsy9(chr(1137 - 1089) + chr(0b1101111) + chr(1938 - 1889) + chr(1540 - 1485) + chr(51), 0o10), ehT0Px3KOsy9(chr(1609 - 1561) + chr(11406 - 11295) + chr(51) + chr(0b1010 + 0o51) + chr(0b110001 + 0o4), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(6079 - 5968) + '\x33' + '\x31' + '\062', 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(5117 - 5006) + chr(1283 - 1233) + chr(0b110011) + chr(55), 8), ehT0Px3KOsy9(chr(362 - 314) + chr(0b1101111) + chr(49) + '\x36' + chr(55), 51969 - 51961), ehT0Px3KOsy9('\060' + chr(4549 - 4438) + chr(51) + chr(0b100111 + 0o14) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(73 - 19) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(409 - 361) + chr(0b1100111 + 0o10) + chr(49) + chr(51) + chr(2653 - 2600), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(1181 - 1133) + chr(52), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + chr(53) + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'Q'), '\144' + chr(6233 - 6132) + chr(183 - 84) + chr(0b1101111) + chr(0b1100100) + chr(923 - 822))(chr(117) + chr(12163 - 12047) + chr(0b11001 + 0o115) + chr(1477 - 1432) + chr(3053 - 2997)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def m9yo233vxIAZ(HcyiPkCViZiX, _o7pVXAdOCRy=ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + chr(0b11111 + 0o26) + '\x35', 8)): o34DiSJcu6N2 = HcyiPkCViZiX.split() xMBqHHGk9U_P = ehT0Px3KOsy9('\060' + '\157' + chr(2002 - 1954), 28559 - 28551) ShZmEKfTkAOZ = [] Ki86oC9WfglU = ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\060', 8) for CWnx52wJLqEN in o34DiSJcu6N2: if CWnx52wJLqEN[-ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10001 + 0o40), 8):] == xafqLlk3kkUe(SXOLrMavuUCe(b'Q'), chr(3499 - 3399) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b11001 + 0o114))(chr(0b1110101) + '\x74' + chr(9277 - 9175) + chr(0b101101) + '\x38'): Ki86oC9WfglU = ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061', 8) pP1pO24DS8Hy = ShZmEKfTkAOZ and ehT0Px3KOsy9(chr(0b101000 + 0o10) + '\x6f' + chr(49), 8) + c2A0yzQpDQB3(CWnx52wJLqEN) or c2A0yzQpDQB3(CWnx52wJLqEN) if xMBqHHGk9U_P + pP1pO24DS8Hy > _o7pVXAdOCRy: xafqLlk3kkUe(ShZmEKfTkAOZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1e\xb0\xa5\x19\x9e\xdd'), '\144' + chr(0b1010110 + 0o17) + '\x63' + '\x6f' + chr(100) + chr(207 - 106))(chr(2100 - 1983) + chr(0b10001 + 0o143) + chr(102) + chr(825 - 780) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'Q\xee\xfb'), chr(100) + chr(9018 - 8917) + chr(7759 - 7660) + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(116) + chr(0b1100110) + '\055' + '\070')) Ki86oC9WfglU = ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001), 8) else: if ShZmEKfTkAOZ: xafqLlk3kkUe(ShZmEKfTkAOZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1e\xb0\xa5\x19\x9e\xdd'), chr(7379 - 7279) + chr(5876 - 5775) + chr(0b1100011) + chr(0b1101111) + chr(0b11101 + 0o107) + '\x65')(chr(0b1110101) + '\x74' + chr(102) + chr(0b10011 + 0o32) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'_'), '\144' + chr(101) + chr(0b1010111 + 0o14) + '\157' + chr(6705 - 6605) + chr(1209 - 1108))(chr(117) + chr(0b1111 + 0o145) + chr(0b100000 + 0o106) + '\x2d' + '\x38')) xafqLlk3kkUe(ShZmEKfTkAOZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1e\xb0\xa5\x19\x9e\xdd'), '\144' + chr(0b100010 + 0o103) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1011011 + 0o13) + chr(0b101101) + '\070'))(CWnx52wJLqEN) if Ki86oC9WfglU: break xMBqHHGk9U_P += pP1pO24DS8Hy return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b''), '\144' + chr(7266 - 7165) + chr(0b1000010 + 0o41) + chr(111) + '\144' + chr(101))(chr(3118 - 3001) + chr(0b1110100) + chr(0b11011 + 0o113) + chr(0b101101) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b' \xaf\x82$\x8a\xcd,c\x0cGg]'), chr(100) + chr(101) + chr(0b101 + 0o136) + chr(111) + chr(9214 - 9114) + chr(0b1100101))(chr(11851 - 11734) + chr(4470 - 4354) + chr(0b1100110) + chr(0b101101) + chr(2236 - 2180)))(ShZmEKfTkAOZ)
pypa/pipenv
pipenv/vendor/click/utils.py
get_binary_stream
def get_binary_stream(name): """Returns a system stream for byte processing. This essentially returns the stream from the sys module with the given name but it solves some compatibility issues between different Python versions. Primarily this function is necessary for getting binary streams on Python 3. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` """ opener = binary_streams.get(name) if opener is None: raise TypeError('Unknown standard stream %r' % name) return opener()
python
def get_binary_stream(name): """Returns a system stream for byte processing. This essentially returns the stream from the sys module with the given name but it solves some compatibility issues between different Python versions. Primarily this function is necessary for getting binary streams on Python 3. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` """ opener = binary_streams.get(name) if opener is None: raise TypeError('Unknown standard stream %r' % name) return opener()
[ "def", "get_binary_stream", "(", "name", ")", ":", "opener", "=", "binary_streams", ".", "get", "(", "name", ")", "if", "opener", "is", "None", ":", "raise", "TypeError", "(", "'Unknown standard stream %r'", "%", "name", ")", "return", "opener", "(", ")" ]
Returns a system stream for byte processing. This essentially returns the stream from the sys module with the given name but it solves some compatibility issues between different Python versions. Primarily this function is necessary for getting binary streams on Python 3. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'``
[ "Returns", "a", "system", "stream", "for", "byte", "processing", ".", "This", "essentially", "returns", "the", "stream", "from", "the", "sys", "module", "with", "the", "given", "name", "but", "it", "solves", "some", "compatibility", "issues", "between", "different", "Python", "versions", ".", "Primarily", "this", "function", "is", "necessary", "for", "getting", "binary", "streams", "on", "Python", "3", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L264-L277
train
Returns a system stream for byte processing.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qL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t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(870 - 822) + chr(0b111111 + 0o60) + '\061' + chr(1228 - 1174) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2254 - 2204) + chr(500 - 446), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + '\061' + chr(0b100100 + 0o20), 52357 - 52349), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(53) + '\x32', 1733 - 1725), ehT0Px3KOsy9(chr(48) + chr(0b101 + 0o152) + '\067' + chr(744 - 690), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1011110 + 0o21) + chr(0b110011) + '\x36' + chr(226 - 176), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(1890 - 1840) + chr(1564 - 1516), 0o10), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b1101111) + chr(49) + '\x37' + chr(1395 - 1343), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4931 - 4820) + chr(51) + '\061' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\x6f' + chr(0b110011) + chr(1725 - 1673) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + chr(0b110110), 8), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(111) + chr(0b100111 + 0o13) + '\065' + '\063', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(458 - 405), 15315 - 15307), ehT0Px3KOsy9(chr(48) + chr(0b1000110 + 0o51) + '\061' + chr(0b11100 + 0o32) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(243 - 195) + chr(0b110111), 34592 - 34584), ehT0Px3KOsy9(chr(132 - 84) + chr(0b111011 + 0o64) + chr(0b110010) + chr(2370 - 2317) + '\063', 8), ehT0Px3KOsy9(chr(2047 - 1999) + chr(0b1000000 + 0o57) + chr(54) + '\x32', 55437 - 55429), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(207 - 157) + chr(0b110001 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(1436 - 1388) + chr(111) + chr(0b11001 + 0o32) + chr(1169 - 1119) + '\065', 0o10), ehT0Px3KOsy9(chr(1670 - 1622) + '\x6f' + chr(0b101111 + 0o3) + chr(0b110111) + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(321 - 270) + '\x33' + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(3612 - 3501) + chr(50) + chr(94 - 46) + chr(54), 56317 - 56309), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(0b1000 + 0o52) + chr(0b100010 + 0o24), 48892 - 48884), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + chr(0b11000 + 0o35), 45550 - 45542), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + chr(0b110001) + chr(2386 - 2335), 41534 - 41526), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1101111) + '\x31' + '\066' + chr(0b110110), 8), ehT0Px3KOsy9(chr(1258 - 1210) + chr(0b1000100 + 0o53) + chr(604 - 556), 0b1000), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + chr(51) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b110001) + '\065' + chr(265 - 213), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + '\x31' + chr(2140 - 2091), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8866 - 8755) + chr(0b11011 + 0o26) + '\x31' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(7692 - 7581) + '\x33' + chr(1271 - 1222) + '\063', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(0b110010) + '\x31', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(0b10100 + 0o43) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1165 - 1116) + chr(0b110010) + chr(0b110001), 55937 - 55929), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(0b100 + 0o56) + chr(49), 8), ehT0Px3KOsy9(chr(1986 - 1938) + chr(111) + '\x32' + '\062' + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + '\x30' + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + chr(0b11101 + 0o24) + '\x34' + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(0b110 + 0o56) + chr(50), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + '\065' + '\x30', 53017 - 53009)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'_'), chr(0b1100100) + '\x65' + chr(4907 - 4808) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b100001 + 0o123) + chr(0b1110 + 0o130) + chr(0b11100 + 0o21) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def DAxdRu03RsST(AIvJRzLdDfgF): CuFtTZs77QON = tyBF0IVfXJdd.get(AIvJRzLdDfgF) if CuFtTZs77QON is None: raise sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'$x\xe7\xc4Q\x85>\\\xbc\x90w\xc5i\x17\xb5\xcf\x12d\xa1\xcd\xbe\xe7;%.\x04'), chr(0b10000 + 0o124) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(101))(chr(117) + chr(116) + chr(9927 - 9825) + '\055' + chr(752 - 696)) % AIvJRzLdDfgF) return CuFtTZs77QON()
pypa/pipenv
pipenv/vendor/click/utils.py
get_text_stream
def get_text_stream(name, encoding=None, errors='strict'): """Returns a system stream for text processing. This usually returns a wrapped stream around a binary stream returned from :func:`get_binary_stream` but it also can take shortcuts on Python 3 for already correctly configured streams. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` :param encoding: overrides the detected default encoding. :param errors: overrides the default error mode. """ opener = text_streams.get(name) if opener is None: raise TypeError('Unknown standard stream %r' % name) return opener(encoding, errors)
python
def get_text_stream(name, encoding=None, errors='strict'): """Returns a system stream for text processing. This usually returns a wrapped stream around a binary stream returned from :func:`get_binary_stream` but it also can take shortcuts on Python 3 for already correctly configured streams. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` :param encoding: overrides the detected default encoding. :param errors: overrides the default error mode. """ opener = text_streams.get(name) if opener is None: raise TypeError('Unknown standard stream %r' % name) return opener(encoding, errors)
[ "def", "get_text_stream", "(", "name", ",", "encoding", "=", "None", ",", "errors", "=", "'strict'", ")", ":", "opener", "=", "text_streams", ".", "get", "(", "name", ")", "if", "opener", "is", "None", ":", "raise", "TypeError", "(", "'Unknown standard stream %r'", "%", "name", ")", "return", "opener", "(", "encoding", ",", "errors", ")" ]
Returns a system stream for text processing. This usually returns a wrapped stream around a binary stream returned from :func:`get_binary_stream` but it also can take shortcuts on Python 3 for already correctly configured streams. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` :param encoding: overrides the detected default encoding. :param errors: overrides the default error mode.
[ "Returns", "a", "system", "stream", "for", "text", "processing", ".", "This", "usually", "returns", "a", "wrapped", "stream", "around", "a", "binary", "stream", "returned", "from", ":", "func", ":", "get_binary_stream", "but", "it", "also", "can", "take", "shortcuts", "on", "Python", "3", "for", "already", "correctly", "configured", "streams", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L280-L294
train
Returns a system stream for text processing.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3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V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1000010 + 0o55) + chr(0b110010) + chr(0b100011 + 0o24) + chr(55), 0b1000), ehT0Px3KOsy9(chr(939 - 891) + '\x6f' + '\063' + chr(1710 - 1659) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(2351 - 2300) + chr(1873 - 1825), 8), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + chr(1506 - 1455) + '\061' + chr(0b110001 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(111) + chr(0b101101 + 0o6) + chr(0b110110) + chr(1462 - 1407), 1281 - 1273), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + '\x32' + '\x32' + chr(0b11111 + 0o22), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33', 8597 - 8589), ehT0Px3KOsy9(chr(1273 - 1225) + '\x6f' + '\062' + chr(1231 - 1179) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b100100 + 0o113) + '\x32' + chr(0b100010 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x31' + '\062' + chr(895 - 842), ord("\x08")), ehT0Px3KOsy9(chr(871 - 823) + '\157' + chr(1105 - 1054) + '\x30' + chr(51), 61066 - 61058), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100001 + 0o22) + chr(0b110100) + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b11101 + 0o122) + chr(0b110011) + chr(0b110111) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1559 - 1509) + chr(0b110101) + chr(1592 - 1543), 51149 - 51141), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b110110) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + '\x30' + chr(972 - 924), 57215 - 57207), ehT0Px3KOsy9(chr(2298 - 2250) + chr(0b100100 + 0o113) + chr(50) + chr(0b110100) + chr(0b1000 + 0o56), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b110011 + 0o74) + chr(0b111 + 0o52) + chr(49) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\157' + chr(0b10101 + 0o34) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\061' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\060' + chr(1002 - 891) + chr(0b101110 + 0o7) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + '\067' + chr(72 - 21), 0o10), ehT0Px3KOsy9(chr(1970 - 1922) + chr(111) + '\x30', 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b11110 + 0o22) + chr(1700 - 1650), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b11000 + 0o127) + chr(52) + chr(55), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1934 - 1884) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011 + 0o144) + chr(1387 - 1338) + '\x32' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2322 - 2211) + '\x33' + '\067' + chr(0b110011), 36243 - 36235), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(727 - 672) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1011 + 0o47) + chr(0b110000) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(1418 - 1366) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1081 - 1031) + '\060' + chr(0b110011 + 0o3), 21371 - 21363), ehT0Px3KOsy9('\x30' + chr(0b11000 + 0o127) + chr(0b110011 + 0o1) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2191 - 2141) + chr(0b110011) + chr(2266 - 2216), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\x30' + chr(1722 - 1670), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(0b110010) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b11001 + 0o31) + '\063' + chr(1371 - 1318), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110110) + chr(2563 - 2512), 0o10), ehT0Px3KOsy9(chr(1324 - 1276) + chr(111) + chr(339 - 288) + chr(0b1110 + 0o45) + chr(1383 - 1333), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(182 - 71) + chr(0b110101) + chr(0b11111 + 0o21), 64747 - 64739)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x91'), chr(0b1100100) + chr(101) + chr(5009 - 4910) + '\157' + chr(4586 - 4486) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(1003 - 958) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def XNInZEOIcNkC(AIvJRzLdDfgF, _pPd9lb_XZ4K=None, vrC59GzZXTIL=xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xac\xaa\xa7\x94\xe5'), chr(0b1100100) + '\145' + '\x63' + chr(0b1110 + 0o141) + chr(100) + chr(0b100010 + 0o103))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(1027 - 971))): CuFtTZs77QON = Hbu_8aBGTg1U.get(AIvJRzLdDfgF) if CuFtTZs77QON is None: raise sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'\xea\xb6\xb3\xa0\x98\xe6m\x87a!\xa2\x88\x9da\xdb\x91\xa0\xd59}*O\xd6 \xe7U'), '\144' + chr(0b1100101) + chr(0b1010001 + 0o22) + chr(8992 - 8881) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(5532 - 5430) + '\055' + chr(0b111000)) % AIvJRzLdDfgF) return CuFtTZs77QON(_pPd9lb_XZ4K, vrC59GzZXTIL)
pypa/pipenv
pipenv/vendor/click/utils.py
open_file
def open_file(filename, mode='r', encoding=None, errors='strict', lazy=False, atomic=False): """This is similar to how the :class:`File` works but for manual usage. Files are opened non lazy by default. This can open regular files as well as stdin/stdout if ``'-'`` is passed. If stdin/stdout is returned the stream is wrapped so that the context manager will not close the stream accidentally. This makes it possible to always use the function like this without having to worry to accidentally close a standard stream:: with open_file(filename) as f: ... .. versionadded:: 3.0 :param filename: the name of the file to open (or ``'-'`` for stdin/stdout). :param mode: the mode in which to open the file. :param encoding: the encoding to use. :param errors: the error handling for this file. :param lazy: can be flipped to true to open the file lazily. :param atomic: in atomic mode writes go into a temporary file and it's moved on close. """ if lazy: return LazyFile(filename, mode, encoding, errors, atomic=atomic) f, should_close = open_stream(filename, mode, encoding, errors, atomic=atomic) if not should_close: f = KeepOpenFile(f) return f
python
def open_file(filename, mode='r', encoding=None, errors='strict', lazy=False, atomic=False): """This is similar to how the :class:`File` works but for manual usage. Files are opened non lazy by default. This can open regular files as well as stdin/stdout if ``'-'`` is passed. If stdin/stdout is returned the stream is wrapped so that the context manager will not close the stream accidentally. This makes it possible to always use the function like this without having to worry to accidentally close a standard stream:: with open_file(filename) as f: ... .. versionadded:: 3.0 :param filename: the name of the file to open (or ``'-'`` for stdin/stdout). :param mode: the mode in which to open the file. :param encoding: the encoding to use. :param errors: the error handling for this file. :param lazy: can be flipped to true to open the file lazily. :param atomic: in atomic mode writes go into a temporary file and it's moved on close. """ if lazy: return LazyFile(filename, mode, encoding, errors, atomic=atomic) f, should_close = open_stream(filename, mode, encoding, errors, atomic=atomic) if not should_close: f = KeepOpenFile(f) return f
[ "def", "open_file", "(", "filename", ",", "mode", "=", "'r'", ",", "encoding", "=", "None", ",", "errors", "=", "'strict'", ",", "lazy", "=", "False", ",", "atomic", "=", "False", ")", ":", "if", "lazy", ":", "return", "LazyFile", "(", "filename", ",", "mode", ",", "encoding", ",", "errors", ",", "atomic", "=", "atomic", ")", "f", ",", "should_close", "=", "open_stream", "(", "filename", ",", "mode", ",", "encoding", ",", "errors", ",", "atomic", "=", "atomic", ")", "if", "not", "should_close", ":", "f", "=", "KeepOpenFile", "(", "f", ")", "return", "f" ]
This is similar to how the :class:`File` works but for manual usage. Files are opened non lazy by default. This can open regular files as well as stdin/stdout if ``'-'`` is passed. If stdin/stdout is returned the stream is wrapped so that the context manager will not close the stream accidentally. This makes it possible to always use the function like this without having to worry to accidentally close a standard stream:: with open_file(filename) as f: ... .. versionadded:: 3.0 :param filename: the name of the file to open (or ``'-'`` for stdin/stdout). :param mode: the mode in which to open the file. :param encoding: the encoding to use. :param errors: the error handling for this file. :param lazy: can be flipped to true to open the file lazily. :param atomic: in atomic mode writes go into a temporary file and it's moved on close.
[ "This", "is", "similar", "to", "how", "the", ":", "class", ":", "File", "works", "but", "for", "manual", "usage", ".", "Files", "are", "opened", "non", "lazy", "by", "default", ".", "This", "can", "open", "regular", "files", "as", "well", "as", "stdin", "/", "stdout", "if", "-", "is", "passed", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L297-L327
train
Open a file and return a file object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT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QC9iu2kLpS8s,QOfmzcVJsrp8,tzcpInYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101111) + chr(0b110001) + chr(0b10011 + 0o41) + chr(0b110001), 34246 - 34238), ehT0Px3KOsy9(chr(0b110000) + chr(3872 - 3761) + chr(296 - 246) + '\x36' + chr(2196 - 2144), 46471 - 46463), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100110 + 0o15) + chr(48) + chr(406 - 353), 57983 - 57975), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110110) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + chr(0b110010) + chr(0b1 + 0o64) + chr(0b110001 + 0o0), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49) + chr(0b10000 + 0o43) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + chr(1107 - 996) + chr(0b110011) + chr(50) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(817 - 769) + chr(0b1101111) + chr(49) + chr(0b110101) + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(4756 - 4645) + chr(1859 - 1808) + chr(52) + chr(0b110011), 12179 - 12171), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + '\063', 0o10), ehT0Px3KOsy9(chr(679 - 631) + '\157' + chr(0b110010) + chr(0b11100 + 0o26) + '\x30', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(0b110010) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(111) + '\062' + '\061' + '\067', 2248 - 2240), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100011 + 0o14) + chr(0b11010 + 0o27) + '\x36' + chr(371 - 322), 0o10), ehT0Px3KOsy9(chr(1504 - 1456) + '\x6f' + chr(0b110011) + chr(0b10011 + 0o41) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(0b101110 + 0o5) + chr(2368 - 2319), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(513 - 459) + chr(0b11 + 0o61), 8), ehT0Px3KOsy9('\x30' + chr(0b1001 + 0o146) + chr(0b100 + 0o57) + chr(1683 - 1635) + chr(53), 8), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(7044 - 6933) + chr(55) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(7635 - 7524) + chr(803 - 753) + chr(2351 - 2298) + chr(0b110010), 59360 - 59352), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + chr(49) + '\061' + '\x37', 0o10), ehT0Px3KOsy9(chr(1952 - 1904) + chr(0b1101111) + '\x33' + chr(0b110010) + '\062', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(334 - 284) + '\062' + '\060', 8), ehT0Px3KOsy9('\x30' + chr(2531 - 2420) + chr(490 - 441) + chr(0b11000 + 0o30), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + chr(975 - 926) + chr(55) + chr(49), 10501 - 10493), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(1348 - 1300) + chr(10875 - 10764) + chr(349 - 299) + chr(51) + chr(1199 - 1148), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(9437 - 9326) + '\061' + chr(495 - 446) + chr(0b11011 + 0o33), 49215 - 49207), ehT0Px3KOsy9(chr(749 - 701) + chr(2159 - 2048) + chr(0b110001) + '\060', 8), ehT0Px3KOsy9('\x30' + chr(0b101100 + 0o103) + chr(0b110001) + chr(0b110101) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b110101 + 0o72) + chr(0b1000 + 0o52) + chr(0b110110) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(53), 9851 - 9843), ehT0Px3KOsy9(chr(1580 - 1532) + chr(0b1101111) + '\062' + chr(0b110011) + chr(50), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(451 - 402) + '\065' + chr(53 - 2), 8), ehT0Px3KOsy9(chr(1246 - 1198) + chr(0b101011 + 0o104) + chr(0b110010) + chr(0b110111) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1011011 + 0o24) + '\x31', 0o10), ehT0Px3KOsy9(chr(1890 - 1842) + chr(0b1101011 + 0o4) + chr(50) + chr(0b110000) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11011 + 0o30) + chr(0b101101 + 0o7) + '\060', 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1010000 + 0o37) + '\x32' + '\066', ord("\x08")), ehT0Px3KOsy9(chr(134 - 86) + '\157' + chr(0b0 + 0o63) + chr(0b110101) + chr(54), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(567 - 514) + '\060', 849 - 841)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'O'), chr(2103 - 2003) + chr(0b1100101) + chr(0b1001101 + 0o26) + chr(111) + chr(0b1100100) + chr(2051 - 1950))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def KRuylbtr89b_(xw4DsBfIJ22E, holLFgwB7vsP=xafqLlk3kkUe(SXOLrMavuUCe(b'\x13'), '\x64' + chr(0b10 + 0o143) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(101))(chr(117) + '\x74' + '\x66' + chr(45) + chr(0b10100 + 0o44)), _pPd9lb_XZ4K=None, vrC59GzZXTIL=xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\xc0\xb7Z\xca/'), chr(100) + chr(0b11110 + 0o107) + '\x63' + chr(6434 - 6323) + '\x64' + chr(101))('\x75' + '\164' + chr(1117 - 1015) + chr(45) + chr(56)), l7fBk51Hp1xn=ehT0Px3KOsy9(chr(2151 - 2103) + chr(0b1101111) + '\060', 0o10), vHD2Jyvvsbax=ehT0Px3KOsy9(chr(376 - 328) + '\x6f' + chr(611 - 563), 8)): if l7fBk51Hp1xn: return LvEKb47tXabN(xw4DsBfIJ22E, holLFgwB7vsP, _pPd9lb_XZ4K, vrC59GzZXTIL, atomic=vHD2Jyvvsbax) (EGyt1xfPT1P6, F5GYA2tqYVri) = o5AfKwOgZXlU(xw4DsBfIJ22E, holLFgwB7vsP, _pPd9lb_XZ4K, vrC59GzZXTIL, atomic=vHD2Jyvvsbax) if not F5GYA2tqYVri: EGyt1xfPT1P6 = AZfV1gyXK7zs(EGyt1xfPT1P6) return EGyt1xfPT1P6
pypa/pipenv
pipenv/vendor/click/utils.py
format_filename
def format_filename(filename, shorten=False): """Formats a filename for user display. The main purpose of this function is to ensure that the filename can be displayed at all. This will decode the filename to unicode if necessary in a way that it will not fail. Optionally, it can shorten the filename to not include the full path to the filename. :param filename: formats a filename for UI display. This will also convert the filename into unicode without failing. :param shorten: this optionally shortens the filename to strip of the path that leads up to it. """ if shorten: filename = os.path.basename(filename) return filename_to_ui(filename)
python
def format_filename(filename, shorten=False): """Formats a filename for user display. The main purpose of this function is to ensure that the filename can be displayed at all. This will decode the filename to unicode if necessary in a way that it will not fail. Optionally, it can shorten the filename to not include the full path to the filename. :param filename: formats a filename for UI display. This will also convert the filename into unicode without failing. :param shorten: this optionally shortens the filename to strip of the path that leads up to it. """ if shorten: filename = os.path.basename(filename) return filename_to_ui(filename)
[ "def", "format_filename", "(", "filename", ",", "shorten", "=", "False", ")", ":", "if", "shorten", ":", "filename", "=", "os", ".", "path", ".", "basename", "(", "filename", ")", "return", "filename_to_ui", "(", "filename", ")" ]
Formats a filename for user display. The main purpose of this function is to ensure that the filename can be displayed at all. This will decode the filename to unicode if necessary in a way that it will not fail. Optionally, it can shorten the filename to not include the full path to the filename. :param filename: formats a filename for UI display. This will also convert the filename into unicode without failing. :param shorten: this optionally shortens the filename to strip of the path that leads up to it.
[ "Formats", "a", "filename", "for", "user", "display", ".", "The", "main", "purpose", "of", "this", "function", "is", "to", "ensure", "that", "the", "filename", "can", "be", "displayed", "at", "all", ".", "This", "will", "decode", "the", "filename", "to", "unicode", "if", "necessary", "in", "a", "way", "that", "it", "will", "not", "fail", ".", "Optionally", "it", "can", "shorten", "the", "filename", "to", "not", "include", "the", "full", "path", "to", "the", "filename", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L351-L365
train
Formats a filename for user display.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAz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dDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(7947 - 7836) + '\061' + chr(381 - 332) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b10111 + 0o32) + '\x31' + chr(53), 0o10), ehT0Px3KOsy9('\x30' + chr(1138 - 1027) + chr(0b101110 + 0o5) + chr(0b110111) + chr(1329 - 1277), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6018 - 5907) + '\x32' + chr(0b110010), 463 - 455), ehT0Px3KOsy9(chr(1709 - 1661) + chr(5124 - 5013) + chr(0b110110) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\065' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101111) + chr(51) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101001 + 0o12) + '\x30', 64522 - 64514), ehT0Px3KOsy9(chr(48) + chr(2056 - 1945) + '\062' + chr(2057 - 2003) + chr(0b110000 + 0o4), ord("\x08")), ehT0Px3KOsy9(chr(1967 - 1919) + chr(0b1101111) + chr(0b110111) + chr(0b11 + 0o62), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011 + 0o144) + chr(1360 - 1310) + chr(496 - 443) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(1075 - 1027) + chr(0b1101000 + 0o7) + chr(0b101100 + 0o5) + chr(0b110010) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(886 - 832) + chr(0b1101 + 0o45), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + chr(1345 - 1291) + chr(1506 - 1458), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11110 + 0o25) + chr(48) + '\060', 29105 - 29097), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + chr(0b110010) + '\x36' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b110101) + '\063', 0b1000), ehT0Px3KOsy9(chr(105 - 57) + chr(0b1011001 + 0o26) + chr(1167 - 1118) + '\060' + '\064', 62862 - 62854), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + '\x31' + chr(352 - 304) + chr(0b11011 + 0o33), 25094 - 25086), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(0b110111) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101110 + 0o1) + '\062' + '\064' + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(9422 - 9311) + '\062' + chr(0b110100) + '\065', 64074 - 64066), ehT0Px3KOsy9('\x30' + chr(0b110111 + 0o70) + chr(0b110110) + '\064', 8), ehT0Px3KOsy9(chr(0b110000) + chr(9387 - 9276) + chr(50) + chr(0b110010), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + '\063' + chr(50), 6683 - 6675), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110001) + chr(0b110011) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1714 - 1666) + '\157' + chr(928 - 877) + chr(48) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b110001 + 0o3) + chr(49), 13785 - 13777), ehT0Px3KOsy9(chr(1032 - 984) + chr(0b1101111) + chr(0b110101) + '\x31', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(2181 - 2131) + chr(0b110111) + chr(0b0 + 0o61), 21226 - 21218), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + chr(1969 - 1918) + '\x34' + '\x37', 0b1000), ehT0Px3KOsy9(chr(2145 - 2097) + chr(5496 - 5385) + chr(0b110101) + '\x33', 0o10), ehT0Px3KOsy9(chr(1268 - 1220) + '\x6f' + chr(54) + '\x34', 8), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b110110) + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11001 + 0o126) + chr(0b110010) + chr(2627 - 2573) + '\x32', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1576 - 1525) + chr(52) + '\x31', 300 - 292), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(0b110011) + chr(2074 - 2021), ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b110001) + '\x31' + '\x32', 58338 - 58330), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10010 + 0o43) + chr(49), 8), ehT0Px3KOsy9('\060' + chr(8604 - 8493) + chr(49) + '\x35' + chr(1581 - 1530), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(0b100110 + 0o17) + chr(0b100011 + 0o15), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'e'), chr(0b101110 + 0o66) + chr(0b1100101) + '\143' + chr(3953 - 3842) + chr(100) + chr(101))(chr(3044 - 2927) + '\x74' + chr(0b1100110) + chr(168 - 123) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PGbSdAzZqCYN(xw4DsBfIJ22E, p1v8crSO1udA=ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(6847 - 6736) + chr(0b110000), 36517 - 36509)): if p1v8crSO1udA: xw4DsBfIJ22E = oqhJDdMJfuwx.path.g_1BfC8eoU5Q(xw4DsBfIJ22E) return e_WgPnC5Y2yx(xw4DsBfIJ22E)
pypa/pipenv
pipenv/vendor/click/utils.py
get_app_dir
def get_app_dir(app_name, roaming=True, force_posix=False): r"""Returns the config folder for the application. The default behavior is to return whatever is most appropriate for the operating system. To give you an idea, for an app called ``"Foo Bar"``, something like the following folders could be returned: Mac OS X: ``~/Library/Application Support/Foo Bar`` Mac OS X (POSIX): ``~/.foo-bar`` Unix: ``~/.config/foo-bar`` Unix (POSIX): ``~/.foo-bar`` Win XP (roaming): ``C:\Documents and Settings\<user>\Local Settings\Application Data\Foo Bar`` Win XP (not roaming): ``C:\Documents and Settings\<user>\Application Data\Foo Bar`` Win 7 (roaming): ``C:\Users\<user>\AppData\Roaming\Foo Bar`` Win 7 (not roaming): ``C:\Users\<user>\AppData\Local\Foo Bar`` .. versionadded:: 2.0 :param app_name: the application name. This should be properly capitalized and can contain whitespace. :param roaming: controls if the folder should be roaming or not on Windows. Has no affect otherwise. :param force_posix: if this is set to `True` then on any POSIX system the folder will be stored in the home folder with a leading dot instead of the XDG config home or darwin's application support folder. """ if WIN: key = roaming and 'APPDATA' or 'LOCALAPPDATA' folder = os.environ.get(key) if folder is None: folder = os.path.expanduser('~') return os.path.join(folder, app_name) if force_posix: return os.path.join(os.path.expanduser('~/.' + _posixify(app_name))) if sys.platform == 'darwin': return os.path.join(os.path.expanduser( '~/Library/Application Support'), app_name) return os.path.join( os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')), _posixify(app_name))
python
def get_app_dir(app_name, roaming=True, force_posix=False): r"""Returns the config folder for the application. The default behavior is to return whatever is most appropriate for the operating system. To give you an idea, for an app called ``"Foo Bar"``, something like the following folders could be returned: Mac OS X: ``~/Library/Application Support/Foo Bar`` Mac OS X (POSIX): ``~/.foo-bar`` Unix: ``~/.config/foo-bar`` Unix (POSIX): ``~/.foo-bar`` Win XP (roaming): ``C:\Documents and Settings\<user>\Local Settings\Application Data\Foo Bar`` Win XP (not roaming): ``C:\Documents and Settings\<user>\Application Data\Foo Bar`` Win 7 (roaming): ``C:\Users\<user>\AppData\Roaming\Foo Bar`` Win 7 (not roaming): ``C:\Users\<user>\AppData\Local\Foo Bar`` .. versionadded:: 2.0 :param app_name: the application name. This should be properly capitalized and can contain whitespace. :param roaming: controls if the folder should be roaming or not on Windows. Has no affect otherwise. :param force_posix: if this is set to `True` then on any POSIX system the folder will be stored in the home folder with a leading dot instead of the XDG config home or darwin's application support folder. """ if WIN: key = roaming and 'APPDATA' or 'LOCALAPPDATA' folder = os.environ.get(key) if folder is None: folder = os.path.expanduser('~') return os.path.join(folder, app_name) if force_posix: return os.path.join(os.path.expanduser('~/.' + _posixify(app_name))) if sys.platform == 'darwin': return os.path.join(os.path.expanduser( '~/Library/Application Support'), app_name) return os.path.join( os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')), _posixify(app_name))
[ "def", "get_app_dir", "(", "app_name", ",", "roaming", "=", "True", ",", "force_posix", "=", "False", ")", ":", "if", "WIN", ":", "key", "=", "roaming", "and", "'APPDATA'", "or", "'LOCALAPPDATA'", "folder", "=", "os", ".", "environ", ".", "get", "(", "key", ")", "if", "folder", "is", "None", ":", "folder", "=", "os", ".", "path", ".", "expanduser", "(", "'~'", ")", "return", "os", ".", "path", ".", "join", "(", "folder", ",", "app_name", ")", "if", "force_posix", ":", "return", "os", ".", "path", ".", "join", "(", "os", ".", "path", ".", "expanduser", "(", "'~/.'", "+", "_posixify", "(", "app_name", ")", ")", ")", "if", "sys", ".", "platform", "==", "'darwin'", ":", "return", "os", ".", "path", ".", "join", "(", "os", ".", "path", ".", "expanduser", "(", "'~/Library/Application Support'", ")", ",", "app_name", ")", "return", "os", ".", "path", ".", "join", "(", "os", ".", "environ", ".", "get", "(", "'XDG_CONFIG_HOME'", ",", "os", ".", "path", ".", "expanduser", "(", "'~/.config'", ")", ")", ",", "_posixify", "(", "app_name", ")", ")" ]
r"""Returns the config folder for the application. The default behavior is to return whatever is most appropriate for the operating system. To give you an idea, for an app called ``"Foo Bar"``, something like the following folders could be returned: Mac OS X: ``~/Library/Application Support/Foo Bar`` Mac OS X (POSIX): ``~/.foo-bar`` Unix: ``~/.config/foo-bar`` Unix (POSIX): ``~/.foo-bar`` Win XP (roaming): ``C:\Documents and Settings\<user>\Local Settings\Application Data\Foo Bar`` Win XP (not roaming): ``C:\Documents and Settings\<user>\Application Data\Foo Bar`` Win 7 (roaming): ``C:\Users\<user>\AppData\Roaming\Foo Bar`` Win 7 (not roaming): ``C:\Users\<user>\AppData\Local\Foo Bar`` .. versionadded:: 2.0 :param app_name: the application name. This should be properly capitalized and can contain whitespace. :param roaming: controls if the folder should be roaming or not on Windows. Has no affect otherwise. :param force_posix: if this is set to `True` then on any POSIX system the folder will be stored in the home folder with a leading dot instead of the XDG config home or darwin's application support folder.
[ "r", "Returns", "the", "config", "folder", "for", "the", "application", ".", "The", "default", "behavior", "is", "to", "return", "whatever", "is", "most", "appropriate", "for", "the", "operating", "system", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L368-L416
train
r Returns the config folder for the application.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc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ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1100101 + 0o12) + chr(0b110010) + chr(0b110000) + chr(1177 - 1122), 37364 - 37356), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(54) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1000110 + 0o51) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b1001 + 0o51) + chr(0b1100 + 0o51), 39274 - 39266), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(111) + '\061' + chr(48) + chr(51), 49315 - 49307), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + chr(2164 - 2114) + chr(60 - 9) + chr(51), 0o10), ehT0Px3KOsy9(chr(48) + chr(5487 - 5376) + chr(0b110010) + chr(51) + '\x34', 13167 - 13159), ehT0Px3KOsy9(chr(1192 - 1144) + chr(0b1010101 + 0o32) + '\063' + chr(0b110011) + '\x32', 0b1000), ehT0Px3KOsy9(chr(2286 - 2238) + chr(0b1101111) + '\061' + chr(0b110100), 8), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + chr(0b110011) + '\x33' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(212 - 164) + '\x6f' + chr(50) + '\x35' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5762 - 5651) + chr(50) + chr(51) + chr(52), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + '\x31' + '\060', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(165 - 113) + chr(0b1100 + 0o53), 29722 - 29714), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(1742 - 1693) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1010110 + 0o31) + chr(0b100100 + 0o22) + chr(1339 - 1288), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(0b110101) + chr(51), 3699 - 3691), ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\x6f' + '\062' + chr(52) + chr(0b110011), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + '\066' + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1189 - 1138) + chr(0b110110) + chr(0b0 + 0o62), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\065' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000010 + 0o55) + '\061' + chr(52) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(5467 - 5356) + chr(0b100100 + 0o15) + chr(348 - 300) + chr(51), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(51) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101111 + 0o100) + '\x31' + '\x32' + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11010 + 0o31) + chr(0b10000 + 0o43) + chr(254 - 205), 8), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\x6f' + '\062' + '\x35' + chr(51), 8), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b110010) + chr(49), 21293 - 21285), ehT0Px3KOsy9('\x30' + chr(111) + chr(514 - 465) + chr(55) + '\062', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + '\061' + chr(0b100100 + 0o14), 8), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + '\063', 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b11100 + 0o25) + '\062' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(229 - 181) + chr(0b1101111) + '\063' + chr(0b10001 + 0o42) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3267 - 3156) + chr(2227 - 2178) + chr(48) + chr(2252 - 2199), 0o10), ehT0Px3KOsy9(chr(1040 - 992) + chr(7694 - 7583) + chr(0b110100) + chr(0b110010 + 0o4), 13464 - 13456), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(6094 - 5983) + chr(2185 - 2135) + chr(0b110000) + '\067', 8), ehT0Px3KOsy9(chr(48) + chr(0b1010011 + 0o34) + chr(49) + chr(0b110111) + chr(0b101010 + 0o13), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(9769 - 9658) + chr(0b110010) + chr(0b1011 + 0o50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1681 - 1630) + chr(0b110011) + chr(0b110001), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1248 - 1200) + chr(2285 - 2174) + chr(53) + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9'), '\144' + chr(101) + '\x63' + chr(5972 - 5861) + chr(0b1100100) + '\x65')(chr(0b1010011 + 0o42) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b101001 + 0o17)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def IaM4cWvVijiR(CDifj_fT883p, KrQ5yJMliZNz=ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31', 0b1000), kSixtjyhynNu=ehT0Px3KOsy9(chr(0b110000) + chr(1446 - 1335) + chr(0b10101 + 0o33), 14569 - 14561)): if MJD6pUCwUPXQ: K3J4ZwSlE0sT = KrQ5yJMliZNz and xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\xa4S\xd1\x02X\xda'), '\144' + '\145' + chr(0b1100011) + chr(0b101111 + 0o100) + chr(100) + chr(0b101010 + 0o73))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)) or xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb\xbb@\xd4\x0fM\xcb\xcc\x9eM\x88\xef'), chr(0b1011011 + 0o11) + chr(0b1100011 + 0o2) + chr(9604 - 9505) + '\x6f' + '\144' + '\x65')('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(2026 - 1970)) CVmiUiclDQ_k = oqhJDdMJfuwx.environ.get(K3J4ZwSlE0sT) if CVmiUiclDQ_k is None: CVmiUiclDQ_k = oqhJDdMJfuwx.path.expanduser(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9'), chr(0b11010 + 0o112) + '\145' + chr(0b101010 + 0o71) + '\157' + chr(0b1001110 + 0o26) + chr(6335 - 6234))(chr(117) + chr(1792 - 1676) + chr(0b1100110) + chr(0b101100 + 0o1) + '\x38')) return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\x9bT\xcd9x\xcd\xd2\xb4}\x94\xe8'), chr(100) + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))('\x75' + '\x74' + chr(0b111101 + 0o51) + chr(0b11 + 0o52) + chr(1821 - 1765)))(CVmiUiclDQ_k, CDifj_fT883p) if kSixtjyhynNu: return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\x9bT\xcd9x\xcd\xd2\xb4}\x94\xe8'), '\144' + '\145' + chr(0b1110 + 0o125) + '\157' + chr(100) + '\145')(chr(117) + chr(10431 - 10315) + chr(0b1100110) + '\x2d' + chr(0b11100 + 0o34)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\x8cs\xf4-h\xee\xef\xbf~'), chr(0b1001110 + 0o26) + '\x65' + chr(8211 - 8112) + chr(0b110110 + 0o71) + chr(1887 - 1787) + chr(0b1100101))('\165' + '\x74' + chr(0b101111 + 0o67) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\xdb-'), '\x64' + chr(101) + chr(0b1100011) + chr(2369 - 2258) + '\144' + chr(9679 - 9578))('\x75' + chr(3201 - 3085) + chr(0b11101 + 0o111) + chr(0b10101 + 0o30) + chr(56)) + fXM_feH9XR_2(CDifj_fT883p))) if xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7\x98b\xe1%c\xe9\xf1'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56))) == xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3\x95q\xe2*b'), chr(2107 - 2007) + chr(101) + '\143' + '\157' + '\144' + '\145')(chr(9161 - 9044) + chr(0b100100 + 0o120) + '\146' + chr(0b101101) + chr(958 - 902)): return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\x9bT\xcd9x\xcd\xd2\xb4}\x94\xe8'), '\x64' + chr(7713 - 7612) + '\143' + '\157' + '\144' + chr(0b1100101))(chr(628 - 511) + chr(0b100100 + 0o120) + chr(0b1100110) + chr(893 - 848) + chr(0b111000)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\x8cs\xf4-h\xee\xef\xbf~'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(3388 - 3288) + chr(101))('\x75' + '\164' + chr(3460 - 3358) + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b"\xf9\xdbO\xfc!~\xfa\xee\xa3#\x9d\xde\xec$\xce\xabR\xdf\xca\x1a\x9c\xc856\xa9'\xb6\xd9\xa5"), '\x64' + chr(101) + chr(0b1100011) + chr(6410 - 6299) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(0b100100 + 0o11) + chr(1210 - 1154))), CDifj_fT883p) return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\x9bT\xcd9x\xcd\xd2\xb4}\x94\xe8'), chr(0b1100100) + chr(3131 - 3030) + chr(0b1100000 + 0o3) + chr(11071 - 10960) + chr(100) + '\x65')(chr(12279 - 12162) + chr(0b1110100) + chr(102) + '\x2d' + chr(902 - 846)))(xafqLlk3kkUe(oqhJDdMJfuwx.environ, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x91w'), '\144' + chr(262 - 161) + chr(99) + chr(1958 - 1847) + chr(1143 - 1043) + chr(0b101000 + 0o75))(chr(0b1010100 + 0o41) + '\x74' + chr(4225 - 4123) + '\x2d' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdf\xb0D\xca\x00C\xd5\xda\x93K\x83\xe6\xd3\x05\xe2'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + '\x64' + '\145')(chr(117) + '\x74' + chr(102) + '\x2d' + '\070'), xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\x8cs\xf4-h\xee\xef\xbf~'), '\144' + '\x65' + chr(0b11001 + 0o112) + '\x6f' + chr(0b1100100) + chr(101))(chr(4789 - 4672) + chr(6829 - 6713) + chr(0b1000110 + 0o40) + '\x2d' + chr(2501 - 2445)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\xdb-\xf6,b\xfd\xf5\xbd'), chr(100) + '\145' + chr(99) + chr(0b1 + 0o156) + chr(0b1100100) + chr(0b1100101))(chr(9163 - 9046) + chr(3146 - 3030) + chr(0b11111 + 0o107) + '\x2d' + chr(976 - 920)))), fXM_feH9XR_2(CDifj_fT883p))
pypa/pipenv
pipenv/vendor/click/utils.py
LazyFile.open
def open(self): """Opens the file if it's not yet open. This call might fail with a :exc:`FileError`. Not handling this error will produce an error that Click shows. """ if self._f is not None: return self._f try: rv, self.should_close = open_stream(self.name, self.mode, self.encoding, self.errors, atomic=self.atomic) except (IOError, OSError) as e: from .exceptions import FileError raise FileError(self.name, hint=get_streerror(e)) self._f = rv return rv
python
def open(self): """Opens the file if it's not yet open. This call might fail with a :exc:`FileError`. Not handling this error will produce an error that Click shows. """ if self._f is not None: return self._f try: rv, self.should_close = open_stream(self.name, self.mode, self.encoding, self.errors, atomic=self.atomic) except (IOError, OSError) as e: from .exceptions import FileError raise FileError(self.name, hint=get_streerror(e)) self._f = rv return rv
[ "def", "open", "(", "self", ")", ":", "if", "self", ".", "_f", "is", "not", "None", ":", "return", "self", ".", "_f", "try", ":", "rv", ",", "self", ".", "should_close", "=", "open_stream", "(", "self", ".", "name", ",", "self", ".", "mode", ",", "self", ".", "encoding", ",", "self", ".", "errors", ",", "atomic", "=", "self", ".", "atomic", ")", "except", "(", "IOError", ",", "OSError", ")", "as", "e", ":", "from", ".", "exceptions", "import", "FileError", "raise", "FileError", "(", "self", ".", "name", ",", "hint", "=", "get_streerror", "(", "e", ")", ")", "self", ".", "_f", "=", "rv", "return", "rv" ]
Opens the file if it's not yet open. This call might fail with a :exc:`FileError`. Not handling this error will produce an error that Click shows.
[ "Opens", "the", "file", "if", "it", "s", "not", "yet", "open", ".", "This", "call", "might", "fail", "with", "a", ":", "exc", ":", "FileError", ".", "Not", "handling", "this", "error", "will", "produce", "an", "error", "that", "Click", "shows", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/utils.py#L105-L121
train
Opens the file if it s not yet opened.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Y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7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(7879 - 7768) + chr(2197 - 2147) + '\066' + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1037 - 988) + chr(0b0 + 0o67) + '\x37', 65256 - 65248), ehT0Px3KOsy9(chr(48) + chr(111) + chr(151 - 102) + '\067' + chr(0b100010 + 0o20), 0o10), ehT0Px3KOsy9('\060' + chr(499 - 388) + chr(1074 - 1025) + '\061' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o2) + chr(0b110011) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(293 - 245) + chr(0b101001 + 0o106) + chr(0b100011 + 0o17) + chr(0b1000 + 0o51) + chr(52), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b11010 + 0o27) + chr(0b110010) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\157' + '\x32' + '\x35' + '\x31', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b0 + 0o157) + '\x33' + chr(2447 - 2393) + '\x36', 4459 - 4451), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(54) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(325 - 214) + '\061' + chr(0b1110 + 0o46) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\157' + chr(439 - 390) + chr(0b110000) + chr(0b11101 + 0o32), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + '\063' + chr(0b11010 + 0o33), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(0b100111 + 0o15) + chr(0b10100 + 0o41), 42840 - 42832), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(1490 - 1439), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(0b10000 + 0o47) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(10865 - 10754) + chr(0b110010) + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(2952 - 2841) + chr(0b1111 + 0o43) + chr(0b110011) + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1775 - 1725) + '\x33' + chr(0b101001 + 0o10), ord("\x08")), ehT0Px3KOsy9(chr(1463 - 1415) + chr(0b111000 + 0o67) + '\061' + chr(0b101001 + 0o10) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b100101 + 0o112) + '\x33' + chr(0b110101) + chr(53), 0o10), ehT0Px3KOsy9(chr(578 - 530) + chr(9120 - 9009) + '\061' + '\067' + '\x30', 54699 - 54691), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101111 + 0o3) + '\067' + chr(0b110011), 60120 - 60112), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100011 + 0o22) + '\x33', 62696 - 62688), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b110000 + 0o0) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\x35' + chr(0b110101), 25357 - 25349), ehT0Px3KOsy9(chr(48) + chr(3002 - 2891) + '\063' + chr(0b110010) + chr(1271 - 1223), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + '\064' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + chr(50) + chr(0b110000) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101000 + 0o7) + chr(0b110001) + '\061' + chr(1824 - 1769), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(55) + '\063', 63038 - 63030), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2166 - 2117) + chr(53) + chr(0b10101 + 0o37), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(1660 - 1611) + '\x34' + chr(1640 - 1587), 8), ehT0Px3KOsy9('\x30' + chr(10672 - 10561) + chr(0b110110) + '\x34', 58965 - 58957), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + chr(2948 - 2893) + chr(1166 - 1118), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + '\x36' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(1618 - 1570) + '\157' + chr(776 - 726) + chr(49) + chr(1323 - 1272), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + '\x33' + chr(0b110010), 21634 - 21626), ehT0Px3KOsy9('\x30' + chr(0b11100 + 0o123) + '\063' + chr(0b100101 + 0o13) + chr(0b110100), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(1172 - 1061) + chr(0b101100 + 0o11) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x98'), chr(0b1100010 + 0o2) + chr(2496 - 2395) + chr(0b110111 + 0o54) + chr(111) + chr(0b1100100) + chr(5357 - 5256))(chr(0b10100 + 0o141) + chr(0b1101001 + 0o13) + '\146' + chr(0b101101) + chr(1519 - 1463)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _fwkIVCGgtAN(oVre8I6UXc3b): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe9\x19'), chr(4109 - 4009) + chr(101) + '\x63' + chr(0b1101111) + chr(100) + chr(0b110111 + 0o56))('\x75' + chr(0b111110 + 0o66) + '\x66' + '\055' + '\x38')) is not None: return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe9\x19'), '\144' + chr(4448 - 4347) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(416 - 315))('\x75' + chr(116) + chr(0b10011 + 0o123) + '\x2d' + chr(0b111000))) try: (j_EUWcdMQUHr, oVre8I6UXc3b.F5GYA2tqYVri) = o5AfKwOgZXlU(oVre8I6UXc3b.AIvJRzLdDfgF, oVre8I6UXc3b.mode, oVre8I6UXc3b._pPd9lb_XZ4K, oVre8I6UXc3b.vrC59GzZXTIL, atomic=oVre8I6UXc3b.atomic) except (sR2sPcm7Zrfn, KlPSljPzIJ_u) as GlnVAPeT6CUe: (J2I69rA6GeJi,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3\x07\x19-\xe8\xf8<\xc6\x98\x81'), '\x64' + chr(2606 - 2505) + chr(0b111101 + 0o46) + chr(0b111001 + 0o66) + chr(0b1100100) + '\145')('\165' + chr(868 - 752) + '\x66' + '\x2d' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b"\xf0\x16\x16-\xdd\xfe'\xc6\x84"), '\x64' + '\x65' + chr(99) + chr(111) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(228 - 183) + chr(56))), xafqLlk3kkUe(SXOLrMavuUCe(b"\xf0\x16\x16-\xdd\xfe'\xc6\x84"), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b10 + 0o142) + chr(0b1100101))('\165' + chr(116) + chr(1469 - 1367) + chr(0b101001 + 0o4) + chr(56))),) raise J2I69rA6GeJi(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf76\x0c\x02\xca\xf6\x19\xcd\xb2\x94\x03\x01'), '\x64' + '\x65' + '\x63' + chr(111) + '\144' + '\x65')('\x75' + chr(116) + chr(102) + '\x2d' + chr(2962 - 2906))), hint=dFH3QP99QObJ(GlnVAPeT6CUe)) oVre8I6UXc3b.P4nZSsgZ0jW0 = j_EUWcdMQUHr return j_EUWcdMQUHr
pypa/pipenv
pipenv/vendor/click_completion/lib.py
split_args
def split_args(line): """Version of shlex.split that silently accept incomplete strings. Parameters ---------- line : str The string to split Returns ------- [str] The line split in separated arguments """ lex = shlex.shlex(line, posix=True) lex.whitespace_split = True lex.commenters = '' res = [] try: while True: res.append(next(lex)) except ValueError: # No closing quotation pass except StopIteration: # End of loop pass if lex.token: res.append(lex.token) return res
python
def split_args(line): """Version of shlex.split that silently accept incomplete strings. Parameters ---------- line : str The string to split Returns ------- [str] The line split in separated arguments """ lex = shlex.shlex(line, posix=True) lex.whitespace_split = True lex.commenters = '' res = [] try: while True: res.append(next(lex)) except ValueError: # No closing quotation pass except StopIteration: # End of loop pass if lex.token: res.append(lex.token) return res
[ "def", "split_args", "(", "line", ")", ":", "lex", "=", "shlex", ".", "shlex", "(", "line", ",", "posix", "=", "True", ")", "lex", ".", "whitespace_split", "=", "True", "lex", ".", "commenters", "=", "''", "res", "=", "[", "]", "try", ":", "while", "True", ":", "res", ".", "append", "(", "next", "(", "lex", ")", ")", "except", "ValueError", ":", "# No closing quotation", "pass", "except", "StopIteration", ":", "# End of loop", "pass", "if", "lex", ".", "token", ":", "res", ".", "append", "(", "lex", ".", "token", ")", "return", "res" ]
Version of shlex.split that silently accept incomplete strings. Parameters ---------- line : str The string to split Returns ------- [str] The line split in separated arguments
[ "Version", "of", "shlex", ".", "split", "that", "silently", "accept", "incomplete", "strings", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click_completion/lib.py#L94-L120
train
Version of shlex. split that silently accept incomplete strings.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MM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ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(1830 - 1719) + chr(0b110000 + 0o2) + chr(0b0 + 0o64) + chr(50), 4435 - 4427), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1001 + 0o50) + chr(0b101 + 0o60) + chr(0b110001 + 0o4), 34308 - 34300), ehT0Px3KOsy9(chr(2283 - 2235) + chr(111) + chr(0b110010) + chr(0b100011 + 0o24) + chr(50), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1737 - 1688) + chr(48) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11100 + 0o26) + chr(2372 - 2318) + chr(1545 - 1492), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b11010 + 0o30) + '\x31' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + '\x32' + chr(90 - 39) + '\x35', 0o10), ehT0Px3KOsy9(chr(1442 - 1394) + chr(0b1101111) + chr(0b10101 + 0o35) + chr(0b1111 + 0o50) + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1100111 + 0o10) + '\x31' + '\063' + chr(0b11111 + 0o30), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b110111 + 0o70) + '\x31' + chr(0b110000) + chr(0b101111 + 0o5), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1010 + 0o50) + chr(0b110000) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1180 - 1130) + '\x30' + chr(51), 24933 - 24925), ehT0Px3KOsy9(chr(1776 - 1728) + chr(2823 - 2712) + chr(0b100000 + 0o25) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(12051 - 11940) + chr(53) + chr(306 - 255), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1894 - 1841) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + chr(11895 - 11784) + chr(0b110001) + chr(1718 - 1663) + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + '\063' + chr(0b110000) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(670 - 620) + chr(51) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(407 - 359) + chr(111) + chr(0b110101) + chr(0b110110), 7970 - 7962), ehT0Px3KOsy9('\x30' + chr(9901 - 9790) + chr(1391 - 1342) + chr(2274 - 2220) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(625 - 574) + chr(53) + chr(1105 - 1056), 35234 - 35226), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\067' + chr(0b11001 + 0o30), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b110000 + 0o77) + '\062' + '\062' + chr(0b110101), 0o10), ehT0Px3KOsy9('\060' + chr(5165 - 5054) + chr(0b110010) + chr(2402 - 2352) + chr(1849 - 1801), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(4552 - 4441) + chr(51) + chr(508 - 454) + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(2364 - 2253) + '\x32' + chr(0b101 + 0o55) + chr(0b10110 + 0o37), 8), ehT0Px3KOsy9(chr(1493 - 1445) + '\x6f' + '\x31' + '\x34' + chr(0b1101 + 0o52), 5843 - 5835), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b10 + 0o155) + '\061' + '\067' + '\067', 0o10), ehT0Px3KOsy9(chr(602 - 554) + chr(0b101000 + 0o107) + '\x31' + chr(788 - 736) + chr(2425 - 2375), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b101000 + 0o107) + chr(52) + chr(0b10110 + 0o35), 0b1000), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b110001) + chr(53) + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(2118 - 2068) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(10351 - 10240) + chr(0b100 + 0o62) + '\065', 39529 - 39521), ehT0Px3KOsy9(chr(744 - 696) + chr(0b111111 + 0o60) + '\062' + chr(52) + chr(1251 - 1198), 49864 - 49856), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1515 - 1460) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b100100 + 0o22) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11101 + 0o26) + '\063' + chr(418 - 365), 216 - 208), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011011 + 0o24) + chr(0b111 + 0o54) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3549 - 3438) + '\x31' + chr(0b110011) + chr(0b11111 + 0o26), 13323 - 13315), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11011 + 0o26) + '\x32' + '\x31', 55436 - 55428)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(323 - 270) + '\x30', 55800 - 55792)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c'), '\144' + chr(0b1100101) + chr(0b1000011 + 0o40) + chr(111) + chr(0b1100100) + chr(1727 - 1626))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def qpDyCzq9PlrZ(LycYkDpyelF6): BGiGGjxSuYiP = w0v7VWB72j00.shlex(LycYkDpyelF6, posix=ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1101111) + chr(0b110001), 0b1000)) BGiGGjxSuYiP.WTl_TnWubBVs = ehT0Px3KOsy9(chr(1027 - 979) + chr(2744 - 2633) + '\061', 8) BGiGGjxSuYiP.XDrZJfySmtCK = xafqLlk3kkUe(SXOLrMavuUCe(b''), '\x64' + '\145' + chr(99) + '\x6f' + chr(0b111111 + 0o45) + '\x65')(chr(0b100101 + 0o120) + chr(8006 - 7890) + chr(4645 - 4543) + '\055' + chr(185 - 129)) MsbwfslwLjRO = [] try: while ehT0Px3KOsy9(chr(48) + chr(111) + '\061', 8): xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc3\x1d\xca#\xdb\xea'), chr(8914 - 8814) + chr(101) + chr(0b1010011 + 0o20) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(45) + chr(1035 - 979)))(nSwwHEeM4cxI(BGiGGjxSuYiP)) except q1QCh3W88sgk: pass except hr2QaoivbFQ2: pass if xafqLlk3kkUe(BGiGGjxSuYiP, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcf9\xc3u\xd3\xef\xfe\xe5\x1e5\xc8\xb6'), '\x64' + chr(0b1000101 + 0o40) + chr(0b1100011) + chr(10470 - 10359) + chr(0b1000011 + 0o41) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1101 + 0o131) + chr(0b11100 + 0o21) + '\070')): xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc3\x1d\xca#\xdb\xea'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(1656 - 1556) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(833 - 788) + chr(56)))(xafqLlk3kkUe(BGiGGjxSuYiP, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcf9\xc3u\xd3\xef\xfe\xe5\x1e5\xc8\xb6'), chr(5031 - 4931) + chr(0b1010011 + 0o22) + '\x63' + chr(111) + chr(2435 - 2335) + '\x65')(chr(117) + chr(11038 - 10922) + '\146' + chr(1257 - 1212) + chr(0b100010 + 0o26)))) return MsbwfslwLjRO
pypa/pipenv
pipenv/vendor/click/termui.py
confirm
def confirm(text, default=False, abort=False, prompt_suffix=': ', show_default=True, err=False): """Prompts for confirmation (yes/no question). If the user aborts the input by sending a interrupt signal this function will catch it and raise a :exc:`Abort` exception. .. versionadded:: 4.0 Added the `err` parameter. :param text: the question to ask. :param default: the default for the prompt. :param abort: if this is set to `True` a negative answer aborts the exception by raising :exc:`Abort`. :param prompt_suffix: a suffix that should be added to the prompt. :param show_default: shows or hides the default value in the prompt. :param err: if set to true the file defaults to ``stderr`` instead of ``stdout``, the same as with echo. """ prompt = _build_prompt(text, prompt_suffix, show_default, default and 'Y/n' or 'y/N') while 1: try: # Write the prompt separately so that we get nice # coloring through colorama on Windows echo(prompt, nl=False, err=err) value = visible_prompt_func('').lower().strip() except (KeyboardInterrupt, EOFError): raise Abort() if value in ('y', 'yes'): rv = True elif value in ('n', 'no'): rv = False elif value == '': rv = default else: echo('Error: invalid input', err=err) continue break if abort and not rv: raise Abort() return rv
python
def confirm(text, default=False, abort=False, prompt_suffix=': ', show_default=True, err=False): """Prompts for confirmation (yes/no question). If the user aborts the input by sending a interrupt signal this function will catch it and raise a :exc:`Abort` exception. .. versionadded:: 4.0 Added the `err` parameter. :param text: the question to ask. :param default: the default for the prompt. :param abort: if this is set to `True` a negative answer aborts the exception by raising :exc:`Abort`. :param prompt_suffix: a suffix that should be added to the prompt. :param show_default: shows or hides the default value in the prompt. :param err: if set to true the file defaults to ``stderr`` instead of ``stdout``, the same as with echo. """ prompt = _build_prompt(text, prompt_suffix, show_default, default and 'Y/n' or 'y/N') while 1: try: # Write the prompt separately so that we get nice # coloring through colorama on Windows echo(prompt, nl=False, err=err) value = visible_prompt_func('').lower().strip() except (KeyboardInterrupt, EOFError): raise Abort() if value in ('y', 'yes'): rv = True elif value in ('n', 'no'): rv = False elif value == '': rv = default else: echo('Error: invalid input', err=err) continue break if abort and not rv: raise Abort() return rv
[ "def", "confirm", "(", "text", ",", "default", "=", "False", ",", "abort", "=", "False", ",", "prompt_suffix", "=", "': '", ",", "show_default", "=", "True", ",", "err", "=", "False", ")", ":", "prompt", "=", "_build_prompt", "(", "text", ",", "prompt_suffix", ",", "show_default", ",", "default", "and", "'Y/n'", "or", "'y/N'", ")", "while", "1", ":", "try", ":", "# Write the prompt separately so that we get nice", "# coloring through colorama on Windows", "echo", "(", "prompt", ",", "nl", "=", "False", ",", "err", "=", "err", ")", "value", "=", "visible_prompt_func", "(", "''", ")", ".", "lower", "(", ")", ".", "strip", "(", ")", "except", "(", "KeyboardInterrupt", ",", "EOFError", ")", ":", "raise", "Abort", "(", ")", "if", "value", "in", "(", "'y'", ",", "'yes'", ")", ":", "rv", "=", "True", "elif", "value", "in", "(", "'n'", ",", "'no'", ")", ":", "rv", "=", "False", "elif", "value", "==", "''", ":", "rv", "=", "default", "else", ":", "echo", "(", "'Error: invalid input'", ",", "err", "=", "err", ")", "continue", "break", "if", "abort", "and", "not", "rv", ":", "raise", "Abort", "(", ")", "return", "rv" ]
Prompts for confirmation (yes/no question). If the user aborts the input by sending a interrupt signal this function will catch it and raise a :exc:`Abort` exception. .. versionadded:: 4.0 Added the `err` parameter. :param text: the question to ask. :param default: the default for the prompt. :param abort: if this is set to `True` a negative answer aborts the exception by raising :exc:`Abort`. :param prompt_suffix: a suffix that should be added to the prompt. :param show_default: shows or hides the default value in the prompt. :param err: if set to true the file defaults to ``stderr`` instead of ``stdout``, the same as with echo.
[ "Prompts", "for", "confirmation", "(", "yes", "/", "no", "question", ")", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L141-L182
train
Prompts for confirmation of a single user.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm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iJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + '\067' + chr(2364 - 2309), 0b1000), ehT0Px3KOsy9('\x30' + chr(8894 - 8783) + chr(50) + '\x35' + chr(0b110100), 46181 - 46173), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\x6f' + chr(51) + chr(49) + chr(0b110101), 24942 - 24934), ehT0Px3KOsy9(chr(1280 - 1232) + '\x6f' + chr(51) + '\x31' + chr(0b110110 + 0o0), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + '\x34' + chr(412 - 358), 6103 - 6095), ehT0Px3KOsy9(chr(146 - 98) + '\157' + chr(53) + '\061', 0o10), ehT0Px3KOsy9('\060' + chr(0b1011011 + 0o24) + chr(0b110001) + chr(49) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1101111) + '\063' + chr(0b110010) + chr(0b100100 + 0o16), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\067' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(827 - 779) + '\x6f' + chr(0b101011 + 0o7) + chr(0b110100) + chr(124 - 70), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b110011) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(945 - 897) + chr(373 - 262) + '\x33' + chr(49) + chr(53), 8), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(1724 - 1674) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\157' + chr(54) + chr(703 - 655), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b10010 + 0o135) + chr(50) + chr(0b11100 + 0o27) + '\x33', 8642 - 8634), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(2095 - 2046) + chr(0b100110 + 0o12) + chr(1967 - 1914), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11010 + 0o30) + chr(0b10001 + 0o43) + chr(553 - 502), 25065 - 25057), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + '\061' + '\x34' + chr(55), 0o10), ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + chr(50) + '\064' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(2067 - 2019) + chr(0b1000110 + 0o51) + '\x36' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\061' + '\065', 8), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(1061 - 1008) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(55) + '\062', 46332 - 46324), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1101111) + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b111 + 0o150) + '\x32' + chr(1298 - 1244) + chr(473 - 418), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(348 - 298) + '\x36' + chr(0b1 + 0o64), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(2995 - 2884) + '\x32' + chr(1967 - 1916) + '\x32', 42744 - 42736), ehT0Px3KOsy9(chr(48) + chr(0b111111 + 0o60) + chr(50) + chr(55) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + '\062' + chr(54) + chr(0b100110 + 0o16), 22401 - 22393), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1011011 + 0o24) + '\x33' + chr(451 - 398) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2151 - 2101) + chr(1328 - 1274) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(693 - 645) + '\157' + chr(51) + chr(996 - 942) + '\061', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\066' + chr(0b10101 + 0o37), 65076 - 65068), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(0b110101) + chr(0b100 + 0o61), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\157' + chr(0b110011) + chr(52) + '\063', 34920 - 34912), ehT0Px3KOsy9(chr(0b110000) + chr(1874 - 1763) + '\067' + chr(2438 - 2387), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(50) + '\x34' + chr(50), 8), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + '\063' + chr(53), 16827 - 16819), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1001000 + 0o47) + '\062' + chr(0b100110 + 0o14) + chr(1663 - 1614), 47349 - 47341)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10111 + 0o36) + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd1'), chr(0b1000101 + 0o37) + chr(0b1100101) + chr(0b111 + 0o134) + chr(111) + chr(2096 - 1996) + chr(0b101110 + 0o67))('\165' + chr(116) + chr(0b1100110) + chr(0b101010 + 0o3) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def pHpzm79sMqyP(Ah1rInvg48Hb, t1v7afVhe01t=ehT0Px3KOsy9('\060' + chr(111) + chr(48), 52440 - 52432), GJv00z4vflHo=ehT0Px3KOsy9(chr(1597 - 1549) + chr(6867 - 6756) + chr(48), 8), cDQcYrlWzVmi=xafqLlk3kkUe(SXOLrMavuUCe(b'\xc5\x8c'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(7109 - 7009) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1436 - 1391) + chr(56)), BFviNGT6scOj=ehT0Px3KOsy9(chr(785 - 737) + chr(0b1001010 + 0o45) + chr(0b110001), 0o10), n8HlHl2rqNTp=ehT0Px3KOsy9('\x30' + chr(0b1010011 + 0o34) + '\x30', 8)): otIJj53SOGM5 = zmLEzh9cfVJ1(Ah1rInvg48Hb, cDQcYrlWzVmi, BFviNGT6scOj, t1v7afVhe01t and xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6\x83\xa3'), chr(100) + '\145' + chr(0b110101 + 0o56) + chr(111) + chr(100) + '\x65')('\x75' + chr(0b11011 + 0o131) + '\146' + '\x2d' + chr(2253 - 2197)) or xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\x83\x83'), chr(0b110110 + 0o56) + '\x65' + chr(0b110010 + 0o61) + '\157' + chr(0b1010000 + 0o24) + chr(1502 - 1401))(chr(0b1110101) + chr(0b1011100 + 0o30) + '\x66' + chr(0b10011 + 0o32) + chr(3044 - 2988))) while ehT0Px3KOsy9(chr(547 - 499) + chr(111) + chr(0b101000 + 0o11), 8): try: Fm6P_5rksoCH(otIJj53SOGM5, nl=ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110000), 8), err=n8HlHl2rqNTp) QmmgWUB13VCJ = GLGEDUYg2g6K(xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + chr(0b100000 + 0o105) + chr(1260 - 1161) + chr(11667 - 11556) + chr(0b1100100) + '\x65')(chr(10141 - 10024) + chr(0b100011 + 0o121) + chr(0b1100110) + chr(45) + chr(56))).lower().VmIJF6Fy6LrX() except (RouZF7bjEXAv, WaQEaQCVMQ03): raise oJC7uLpE4RA6() if QmmgWUB13VCJ in (xafqLlk3kkUe(SXOLrMavuUCe(b'\x86'), chr(100) + '\x65' + chr(0b1000110 + 0o35) + chr(0b110011 + 0o74) + '\144' + '\145')('\165' + '\164' + chr(5877 - 5775) + chr(0b101101) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\xc9\xbe'), '\144' + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(6796 - 6694) + chr(45) + chr(56))): j_EUWcdMQUHr = ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b11100 + 0o25), 8) elif QmmgWUB13VCJ in (xafqLlk3kkUe(SXOLrMavuUCe(b'\x91'), chr(0b1000001 + 0o43) + chr(4385 - 4284) + chr(0b1100011) + '\157' + chr(1095 - 995) + chr(101))('\x75' + chr(116) + '\x66' + chr(0b1111 + 0o36) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x91\xc3'), chr(9531 - 9431) + chr(7309 - 7208) + '\x63' + chr(0b1000101 + 0o52) + chr(0b110001 + 0o63) + chr(0b111010 + 0o53))(chr(0b110101 + 0o100) + chr(10801 - 10685) + '\x66' + chr(1973 - 1928) + '\070')): j_EUWcdMQUHr = ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\060', 8) elif QmmgWUB13VCJ == xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + '\x65' + '\143' + '\x6f' + chr(0b111110 + 0o46) + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(0b11001 + 0o24) + chr(524 - 468)): j_EUWcdMQUHr = t1v7afVhe01t else: Fm6P_5rksoCH(xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\xde\xbf\xa1\x14\x13n\xbbS\xd0\xba\xa1\xfeT\xbb,\xcd\x17\xd7F'), chr(0b11101 + 0o107) + chr(9809 - 9708) + chr(8517 - 8418) + chr(111) + '\144' + chr(0b1100101))(chr(0b1001001 + 0o54) + '\x74' + '\x66' + chr(45) + chr(56)), err=n8HlHl2rqNTp) continue break if GJv00z4vflHo and (not j_EUWcdMQUHr): raise oJC7uLpE4RA6() return j_EUWcdMQUHr
pypa/pipenv
pipenv/vendor/click/termui.py
echo_via_pager
def echo_via_pager(text_or_generator, color=None): """This function takes a text and shows it via an environment specific pager on stdout. .. versionchanged:: 3.0 Added the `color` flag. :param text_or_generator: the text to page, or alternatively, a generator emitting the text to page. :param color: controls if the pager supports ANSI colors or not. The default is autodetection. """ color = resolve_color_default(color) if inspect.isgeneratorfunction(text_or_generator): i = text_or_generator() elif isinstance(text_or_generator, string_types): i = [text_or_generator] else: i = iter(text_or_generator) # convert every element of i to a text type if necessary text_generator = (el if isinstance(el, string_types) else text_type(el) for el in i) from ._termui_impl import pager return pager(itertools.chain(text_generator, "\n"), color)
python
def echo_via_pager(text_or_generator, color=None): """This function takes a text and shows it via an environment specific pager on stdout. .. versionchanged:: 3.0 Added the `color` flag. :param text_or_generator: the text to page, or alternatively, a generator emitting the text to page. :param color: controls if the pager supports ANSI colors or not. The default is autodetection. """ color = resolve_color_default(color) if inspect.isgeneratorfunction(text_or_generator): i = text_or_generator() elif isinstance(text_or_generator, string_types): i = [text_or_generator] else: i = iter(text_or_generator) # convert every element of i to a text type if necessary text_generator = (el if isinstance(el, string_types) else text_type(el) for el in i) from ._termui_impl import pager return pager(itertools.chain(text_generator, "\n"), color)
[ "def", "echo_via_pager", "(", "text_or_generator", ",", "color", "=", "None", ")", ":", "color", "=", "resolve_color_default", "(", "color", ")", "if", "inspect", ".", "isgeneratorfunction", "(", "text_or_generator", ")", ":", "i", "=", "text_or_generator", "(", ")", "elif", "isinstance", "(", "text_or_generator", ",", "string_types", ")", ":", "i", "=", "[", "text_or_generator", "]", "else", ":", "i", "=", "iter", "(", "text_or_generator", ")", "# convert every element of i to a text type if necessary", "text_generator", "=", "(", "el", "if", "isinstance", "(", "el", ",", "string_types", ")", "else", "text_type", "(", "el", ")", "for", "el", "in", "i", ")", "from", ".", "_termui_impl", "import", "pager", "return", "pager", "(", "itertools", ".", "chain", "(", "text_generator", ",", "\"\\n\"", ")", ",", "color", ")" ]
This function takes a text and shows it via an environment specific pager on stdout. .. versionchanged:: 3.0 Added the `color` flag. :param text_or_generator: the text to page, or alternatively, a generator emitting the text to page. :param color: controls if the pager supports ANSI colors or not. The default is autodetection.
[ "This", "function", "takes", "a", "text", "and", "shows", "it", "via", "an", "environment", "specific", "pager", "on", "stdout", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L232-L258
train
This function takes a text and shows it via a pager on stdout.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsT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ssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + chr(0b110100), 30126 - 30118), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b10100 + 0o36) + chr(0b110011), 54853 - 54845), ehT0Px3KOsy9(chr(0b110000) + chr(4121 - 4010) + chr(567 - 517) + chr(2062 - 2007) + '\062', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + chr(51) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(1357 - 1309) + chr(0b1101111) + chr(0b10000 + 0o41) + '\060' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b10 + 0o65) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(958 - 908) + chr(935 - 883), 30262 - 30254), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + chr(0b110000), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + chr(314 - 261) + '\x36', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(105 - 54) + chr(52) + '\067', 0o10), ehT0Px3KOsy9(chr(1028 - 980) + chr(0b1000011 + 0o54) + '\x33' + '\x32' + chr(2435 - 2380), 0b1000), ehT0Px3KOsy9(chr(442 - 394) + chr(6755 - 6644) + chr(50) + chr(54) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110 + 0o55) + '\x35' + chr(470 - 418), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(0b1101111) + chr(0b110100) + chr(1908 - 1854), ord("\x08")), ehT0Px3KOsy9(chr(445 - 397) + chr(111) + chr(230 - 179) + chr(0b110000) + chr(2631 - 2579), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(55) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(111) + chr(0b11 + 0o60) + chr(0b110011 + 0o3) + chr(0b110011), 21189 - 21181), ehT0Px3KOsy9(chr(0b110000) + chr(8329 - 8218) + '\061' + '\067' + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(473 - 424) + chr(50) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(0b110011) + '\061' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\060' + chr(0b10101 + 0o41), 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(111) + chr(50) + chr(54) + chr(52), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\064' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + '\x36' + chr(2011 - 1961), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b110010 + 0o1), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001001 + 0o46) + '\x31' + chr(0b11011 + 0o25), 1747 - 1739), ehT0Px3KOsy9('\x30' + chr(0b110100 + 0o73) + chr(0b110011) + '\x33' + chr(0b11010 + 0o30), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + '\x6f' + '\x32' + chr(743 - 693) + chr(52), 40505 - 40497), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + chr(0b1000 + 0o57) + chr(952 - 902), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + chr(51) + chr(1560 - 1509), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10110 + 0o131) + chr(0b110010) + chr(0b110011) + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(1345 - 1290) + '\x31', 0b1000), ehT0Px3KOsy9('\x30' + chr(9403 - 9292) + chr(1333 - 1282) + '\060' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(48) + chr(8254 - 8143) + chr(1561 - 1510) + '\x35' + chr(0b110100), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\064', 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + '\063' + chr(2168 - 2113), 37741 - 37733), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + chr(1534 - 1485) + chr(832 - 784) + '\x34', 33285 - 33277), ehT0Px3KOsy9(chr(1408 - 1360) + chr(395 - 284) + chr(1522 - 1470) + chr(55), 8), ehT0Px3KOsy9('\060' + chr(6127 - 6016) + chr(0b11011 + 0o26) + '\063' + chr(0b110000), 65206 - 65198)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + '\x35' + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'*'), '\x64' + chr(101) + chr(8698 - 8599) + chr(0b1101111) + chr(0b110111 + 0o55) + '\145')(chr(0b10100 + 0o141) + '\164' + chr(102) + chr(45) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WJwJW8M1XkjE(X7S01qvFN7XJ, pxiSFVqpMRzu=None): pxiSFVqpMRzu = bSKQZGIdrU9Q(pxiSFVqpMRzu) if xafqLlk3kkUe(kzXqv8ZZwm75, xafqLlk3kkUe(SXOLrMavuUCe(b"m`\xddlv'O5l\xc1\x95\xb1\xc1\x82E\xb0W\x9c\x13"), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(6082 - 5982) + chr(101))(chr(11841 - 11724) + '\x74' + chr(0b1100110) + '\x2d' + chr(2761 - 2705)))(X7S01qvFN7XJ): WVxHKyX45z_L = X7S01qvFN7XJ() elif PlSM16l2KDPD(X7S01qvFN7XJ, sInLJQno9SRQ): WVxHKyX45z_L = [X7S01qvFN7XJ] else: WVxHKyX45z_L = ZdP978XkGspL(X7S01qvFN7XJ) yeyY6t6ULv6Z = (cWbTN_IfhLP1 if PlSM16l2KDPD(cWbTN_IfhLP1, sInLJQno9SRQ) else q1MiJcALIjIZ(cWbTN_IfhLP1) for cWbTN_IfhLP1 in WVxHKyX45z_L) (sS2jOYx6z_ra,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'[g\xdf{u7T\x0bq\xc3\x97\xbb'), chr(0b111 + 0o135) + '\x65' + chr(0b1000000 + 0o43) + chr(111) + chr(0b1011 + 0o131) + '\145')(chr(117) + chr(0b1110100) + chr(5092 - 4990) + chr(45) + chr(904 - 848)), xafqLlk3kkUe(SXOLrMavuUCe(b'tr\xddlj'), chr(0b1001 + 0o133) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(0b1101 + 0o130))(chr(0b110001 + 0o104) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b1110 + 0o52))), xafqLlk3kkUe(SXOLrMavuUCe(b'tr\xddlj'), '\144' + '\x65' + chr(4001 - 3902) + chr(111) + '\144' + '\145')(chr(0b111 + 0o156) + chr(116) + chr(0b1100110) + '\055' + '\070')),) return sS2jOYx6z_ra(xafqLlk3kkUe(nLSuLqmR6kNP, xafqLlk3kkUe(SXOLrMavuUCe(b'g{\xdb`v'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(7933 - 7816) + chr(0b1011100 + 0o30) + '\146' + chr(1519 - 1474) + chr(56)))(yeyY6t6ULv6Z, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0e'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b11000 + 0o127) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + '\x38')), pxiSFVqpMRzu)
pypa/pipenv
pipenv/vendor/click/termui.py
progressbar
def progressbar(iterable=None, length=None, label=None, show_eta=True, show_percent=None, show_pos=False, item_show_func=None, fill_char='#', empty_char='-', bar_template='%(label)s [%(bar)s] %(info)s', info_sep=' ', width=36, file=None, color=None): """This function creates an iterable context manager that can be used to iterate over something while showing a progress bar. It will either iterate over the `iterable` or `length` items (that are counted up). While iteration happens, this function will print a rendered progress bar to the given `file` (defaults to stdout) and will attempt to calculate remaining time and more. By default, this progress bar will not be rendered if the file is not a terminal. The context manager creates the progress bar. When the context manager is entered the progress bar is already displayed. With every iteration over the progress bar, the iterable passed to the bar is advanced and the bar is updated. When the context manager exits, a newline is printed and the progress bar is finalized on screen. No printing must happen or the progress bar will be unintentionally destroyed. Example usage:: with progressbar(items) as bar: for item in bar: do_something_with(item) Alternatively, if no iterable is specified, one can manually update the progress bar through the `update()` method instead of directly iterating over the progress bar. The update method accepts the number of steps to increment the bar with:: with progressbar(length=chunks.total_bytes) as bar: for chunk in chunks: process_chunk(chunk) bar.update(chunks.bytes) .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `color` parameter. Added a `update` method to the progressbar object. :param iterable: an iterable to iterate over. If not provided the length is required. :param length: the number of items to iterate over. By default the progressbar will attempt to ask the iterator about its length, which might or might not work. If an iterable is also provided this parameter can be used to override the length. If an iterable is not provided the progress bar will iterate over a range of that length. :param label: the label to show next to the progress bar. :param show_eta: enables or disables the estimated time display. This is automatically disabled if the length cannot be determined. :param show_percent: enables or disables the percentage display. The default is `True` if the iterable has a length or `False` if not. :param show_pos: enables or disables the absolute position display. The default is `False`. :param item_show_func: a function called with the current item which can return a string to show the current item next to the progress bar. Note that the current item can be `None`! :param fill_char: the character to use to show the filled part of the progress bar. :param empty_char: the character to use to show the non-filled part of the progress bar. :param bar_template: the format string to use as template for the bar. The parameters in it are ``label`` for the label, ``bar`` for the progress bar and ``info`` for the info section. :param info_sep: the separator between multiple info items (eta etc.) :param width: the width of the progress bar in characters, 0 means full terminal width :param file: the file to write to. If this is not a terminal then only the label is printed. :param color: controls if the terminal supports ANSI colors or not. The default is autodetection. This is only needed if ANSI codes are included anywhere in the progress bar output which is not the case by default. """ from ._termui_impl import ProgressBar color = resolve_color_default(color) return ProgressBar(iterable=iterable, length=length, show_eta=show_eta, show_percent=show_percent, show_pos=show_pos, item_show_func=item_show_func, fill_char=fill_char, empty_char=empty_char, bar_template=bar_template, info_sep=info_sep, file=file, label=label, width=width, color=color)
python
def progressbar(iterable=None, length=None, label=None, show_eta=True, show_percent=None, show_pos=False, item_show_func=None, fill_char='#', empty_char='-', bar_template='%(label)s [%(bar)s] %(info)s', info_sep=' ', width=36, file=None, color=None): """This function creates an iterable context manager that can be used to iterate over something while showing a progress bar. It will either iterate over the `iterable` or `length` items (that are counted up). While iteration happens, this function will print a rendered progress bar to the given `file` (defaults to stdout) and will attempt to calculate remaining time and more. By default, this progress bar will not be rendered if the file is not a terminal. The context manager creates the progress bar. When the context manager is entered the progress bar is already displayed. With every iteration over the progress bar, the iterable passed to the bar is advanced and the bar is updated. When the context manager exits, a newline is printed and the progress bar is finalized on screen. No printing must happen or the progress bar will be unintentionally destroyed. Example usage:: with progressbar(items) as bar: for item in bar: do_something_with(item) Alternatively, if no iterable is specified, one can manually update the progress bar through the `update()` method instead of directly iterating over the progress bar. The update method accepts the number of steps to increment the bar with:: with progressbar(length=chunks.total_bytes) as bar: for chunk in chunks: process_chunk(chunk) bar.update(chunks.bytes) .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `color` parameter. Added a `update` method to the progressbar object. :param iterable: an iterable to iterate over. If not provided the length is required. :param length: the number of items to iterate over. By default the progressbar will attempt to ask the iterator about its length, which might or might not work. If an iterable is also provided this parameter can be used to override the length. If an iterable is not provided the progress bar will iterate over a range of that length. :param label: the label to show next to the progress bar. :param show_eta: enables or disables the estimated time display. This is automatically disabled if the length cannot be determined. :param show_percent: enables or disables the percentage display. The default is `True` if the iterable has a length or `False` if not. :param show_pos: enables or disables the absolute position display. The default is `False`. :param item_show_func: a function called with the current item which can return a string to show the current item next to the progress bar. Note that the current item can be `None`! :param fill_char: the character to use to show the filled part of the progress bar. :param empty_char: the character to use to show the non-filled part of the progress bar. :param bar_template: the format string to use as template for the bar. The parameters in it are ``label`` for the label, ``bar`` for the progress bar and ``info`` for the info section. :param info_sep: the separator between multiple info items (eta etc.) :param width: the width of the progress bar in characters, 0 means full terminal width :param file: the file to write to. If this is not a terminal then only the label is printed. :param color: controls if the terminal supports ANSI colors or not. The default is autodetection. This is only needed if ANSI codes are included anywhere in the progress bar output which is not the case by default. """ from ._termui_impl import ProgressBar color = resolve_color_default(color) return ProgressBar(iterable=iterable, length=length, show_eta=show_eta, show_percent=show_percent, show_pos=show_pos, item_show_func=item_show_func, fill_char=fill_char, empty_char=empty_char, bar_template=bar_template, info_sep=info_sep, file=file, label=label, width=width, color=color)
[ "def", "progressbar", "(", "iterable", "=", "None", ",", "length", "=", "None", ",", "label", "=", "None", ",", "show_eta", "=", "True", ",", "show_percent", "=", "None", ",", "show_pos", "=", "False", ",", "item_show_func", "=", "None", ",", "fill_char", "=", "'#'", ",", "empty_char", "=", "'-'", ",", "bar_template", "=", "'%(label)s [%(bar)s] %(info)s'", ",", "info_sep", "=", "' '", ",", "width", "=", "36", ",", "file", "=", "None", ",", "color", "=", "None", ")", ":", "from", ".", "_termui_impl", "import", "ProgressBar", "color", "=", "resolve_color_default", "(", "color", ")", "return", "ProgressBar", "(", "iterable", "=", "iterable", ",", "length", "=", "length", ",", "show_eta", "=", "show_eta", ",", "show_percent", "=", "show_percent", ",", "show_pos", "=", "show_pos", ",", "item_show_func", "=", "item_show_func", ",", "fill_char", "=", "fill_char", ",", "empty_char", "=", "empty_char", ",", "bar_template", "=", "bar_template", ",", "info_sep", "=", "info_sep", ",", "file", "=", "file", ",", "label", "=", "label", ",", "width", "=", "width", ",", "color", "=", "color", ")" ]
This function creates an iterable context manager that can be used to iterate over something while showing a progress bar. It will either iterate over the `iterable` or `length` items (that are counted up). While iteration happens, this function will print a rendered progress bar to the given `file` (defaults to stdout) and will attempt to calculate remaining time and more. By default, this progress bar will not be rendered if the file is not a terminal. The context manager creates the progress bar. When the context manager is entered the progress bar is already displayed. With every iteration over the progress bar, the iterable passed to the bar is advanced and the bar is updated. When the context manager exits, a newline is printed and the progress bar is finalized on screen. No printing must happen or the progress bar will be unintentionally destroyed. Example usage:: with progressbar(items) as bar: for item in bar: do_something_with(item) Alternatively, if no iterable is specified, one can manually update the progress bar through the `update()` method instead of directly iterating over the progress bar. The update method accepts the number of steps to increment the bar with:: with progressbar(length=chunks.total_bytes) as bar: for chunk in chunks: process_chunk(chunk) bar.update(chunks.bytes) .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `color` parameter. Added a `update` method to the progressbar object. :param iterable: an iterable to iterate over. If not provided the length is required. :param length: the number of items to iterate over. By default the progressbar will attempt to ask the iterator about its length, which might or might not work. If an iterable is also provided this parameter can be used to override the length. If an iterable is not provided the progress bar will iterate over a range of that length. :param label: the label to show next to the progress bar. :param show_eta: enables or disables the estimated time display. This is automatically disabled if the length cannot be determined. :param show_percent: enables or disables the percentage display. The default is `True` if the iterable has a length or `False` if not. :param show_pos: enables or disables the absolute position display. The default is `False`. :param item_show_func: a function called with the current item which can return a string to show the current item next to the progress bar. Note that the current item can be `None`! :param fill_char: the character to use to show the filled part of the progress bar. :param empty_char: the character to use to show the non-filled part of the progress bar. :param bar_template: the format string to use as template for the bar. The parameters in it are ``label`` for the label, ``bar`` for the progress bar and ``info`` for the info section. :param info_sep: the separator between multiple info items (eta etc.) :param width: the width of the progress bar in characters, 0 means full terminal width :param file: the file to write to. If this is not a terminal then only the label is printed. :param color: controls if the terminal supports ANSI colors or not. The default is autodetection. This is only needed if ANSI codes are included anywhere in the progress bar output which is not the case by default.
[ "This", "function", "creates", "an", "iterable", "context", "manager", "that", "can", "be", "used", "to", "iterate", "over", "something", "while", "showing", "a", "progress", "bar", ".", "It", "will", "either", "iterate", "over", "the", "iterable", "or", "length", "items", "(", "that", "are", "counted", "up", ")", ".", "While", "iteration", "happens", "this", "function", "will", "print", "a", "rendered", "progress", "bar", "to", "the", "given", "file", "(", "defaults", "to", "stdout", ")", "and", "will", "attempt", "to", "calculate", "remaining", "time", "and", "more", ".", "By", "default", "this", "progress", "bar", "will", "not", "be", "rendered", "if", "the", "file", "is", "not", "a", "terminal", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L261-L351
train
This function creates a context manager that displays a progress bar for the given iterable of items and length.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVM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qGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + '\067' + chr(0b110110), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\x34' + chr(2013 - 1962), ord("\x08")), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(0b1100000 + 0o17) + chr(51) + '\067', 9532 - 9524), ehT0Px3KOsy9(chr(48) + chr(11980 - 11869) + chr(0b110010) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1011 + 0o144) + chr(0b110010) + chr(54) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + '\062' + chr(0b11101 + 0o31), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(54) + chr(0b110111), 8), ehT0Px3KOsy9(chr(406 - 358) + chr(7215 - 7104) + chr(49) + '\x30' + '\x32', 57747 - 57739), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010 + 0o3) + chr(0b11101 + 0o24), 0o10), ehT0Px3KOsy9(chr(48) + chr(11105 - 10994) + chr(0b1100 + 0o47) + '\066' + chr(0b1001 + 0o50), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(0b110100) + chr(0b100101 + 0o13), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(0b110001) + chr(841 - 788), 0o10), ehT0Px3KOsy9(chr(1134 - 1086) + chr(8449 - 8338) + chr(49) + chr(0b110100 + 0o1) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(0b10010 + 0o36) + chr(0b11011 + 0o25), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1422 - 1372) + chr(50) + chr(724 - 672), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + '\x31' + '\x35' + chr(1942 - 1887), 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b101010 + 0o7) + chr(2563 - 2509) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(5822 - 5711) + chr(0b110010) + chr(55) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(0b101 + 0o56) + chr(1467 - 1416) + chr(644 - 594), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100 + 0o61), 12782 - 12774), ehT0Px3KOsy9(chr(1480 - 1432) + chr(0b1101111) + chr(914 - 863) + chr(53) + chr(0b1 + 0o61), 0o10), ehT0Px3KOsy9(chr(48) + chr(9921 - 9810) + chr(0b101010 + 0o11) + chr(50) + chr(0b101111 + 0o4), ord("\x08")), ehT0Px3KOsy9(chr(1583 - 1535) + '\157' + chr(49) + '\060' + '\x31', 0b1000), ehT0Px3KOsy9(chr(1261 - 1213) + chr(0b1101111) + chr(0b11001 + 0o32) + '\x37' + '\x32', 0o10), ehT0Px3KOsy9(chr(1206 - 1158) + chr(509 - 398) + chr(0b101100 + 0o5) + chr(0b11 + 0o61) + chr(0b101 + 0o60), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2495 - 2445) + chr(0b110011) + chr(0b1100 + 0o47), 27990 - 27982), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(111) + chr(1314 - 1264) + chr(0b100101 + 0o17) + '\064', 35279 - 35271), ehT0Px3KOsy9(chr(48) + chr(0b11110 + 0o121) + '\064', 35059 - 35051), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110111) + chr(1518 - 1463), 0o10), ehT0Px3KOsy9(chr(48) + chr(2605 - 2494) + '\x33' + chr(0b10010 + 0o45), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010110 + 0o31) + '\x35' + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2112 - 2062) + '\x31' + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(936 - 881) + chr(173 - 120), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(746 - 695) + chr(2568 - 2515), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(656 - 606), ord("\x08")), ehT0Px3KOsy9(chr(502 - 454) + chr(0b101110 + 0o101) + chr(50) + '\063' + chr(0b110001 + 0o4), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110101) + '\060', 9536 - 9528), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\x30' + chr(2881 - 2826), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(1494 - 1442), ord("\x08")), ehT0Px3KOsy9(chr(2029 - 1981) + '\157' + '\062' + chr(0b110 + 0o53) + chr(0b100101 + 0o14), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(53) + '\060', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x90'), '\x64' + chr(7980 - 7879) + chr(0b1000000 + 0o43) + chr(111) + chr(0b111111 + 0o45) + chr(101))('\165' + chr(116) + chr(102) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def B7CGY4cXHRcz(B7a8G3ORwfjH=None, CHAOgk5VCHH_=None, TRUOLFLuD08x=None, yzFORWD12fQs=ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b110001), 35050 - 35042), QMf23EG3pfcU=None, OaKSATLbB9GU=ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + '\060', 0o10), iZZuxqaqGgo7=None, uyJJbNdPyWY8=xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(11950 - 11839) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(5833 - 5717) + chr(102) + chr(45) + chr(56)), pSt4nFbQzJ9Q=xafqLlk3kkUe(SXOLrMavuUCe(b'\x93'), chr(100) + chr(0b1100101) + chr(7727 - 7628) + '\157' + chr(0b1100100) + '\x65')(chr(0b1001101 + 0o50) + chr(0b1110100) + chr(8760 - 8658) + chr(758 - 713) + '\x38'), rPD3_EsbFnPN=xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b\xcbsp\xd5s\xdbkZ\xd1\xc0\x16N\xe8\xf6\x0e\x07\x96\xa9X\xca\xf3d\xd2\x0c\xf5\xc2k\x16l'), chr(100) + chr(9815 - 9714) + chr(99) + '\x6f' + chr(0b100111 + 0o75) + '\145')(chr(117) + chr(0b1101111 + 0o5) + '\146' + chr(0b101101) + chr(0b100011 + 0o25)), XDpuuAiUK40V=xafqLlk3kkUe(SXOLrMavuUCe(b'\x9e\xc3'), chr(1054 - 954) + chr(101) + chr(9779 - 9680) + chr(0b1101111) + chr(0b1011010 + 0o12) + chr(5573 - 5472))(chr(0b101101 + 0o110) + chr(0b100110 + 0o116) + chr(102) + chr(0b101101) + chr(56)), mPx09rBTrGXR=ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101001 + 0o13) + chr(1134 - 1082), 0o10), sHThYHEt4PLu=None, pxiSFVqpMRzu=None): (htcb84Eav1p7,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe1\x97zc\xdac\xde\x1d@\x9c\x90!'), '\144' + chr(0b100000 + 0o105) + chr(99) + chr(0b1100100 + 0o13) + chr(100) + chr(3691 - 3590))(chr(0b1110101) + '\164' + chr(102) + '\x2d' + chr(0b11101 + 0o33)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\x91pv\xc5s\xc41k\x90\x92'), chr(1549 - 1449) + chr(0b1100101) + chr(8884 - 8785) + chr(0b1101111) + chr(4853 - 4753) + '\x65')(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(2400 - 2344))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\x91pv\xc5s\xc41k\x90\x92'), chr(0b1100100) + '\145' + '\x63' + chr(111) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(952 - 896))),) pxiSFVqpMRzu = bSKQZGIdrU9Q(pxiSFVqpMRzu) return htcb84Eav1p7(iterable=B7a8G3ORwfjH, length=CHAOgk5VCHH_, show_eta=yzFORWD12fQs, show_percent=QMf23EG3pfcU, show_pos=OaKSATLbB9GU, item_show_func=iZZuxqaqGgo7, fill_char=uyJJbNdPyWY8, empty_char=pSt4nFbQzJ9Q, bar_template=rPD3_EsbFnPN, info_sep=XDpuuAiUK40V, file=sHThYHEt4PLu, label=TRUOLFLuD08x, width=mPx09rBTrGXR, color=pxiSFVqpMRzu)
pypa/pipenv
pipenv/vendor/click/termui.py
clear
def clear(): """Clears the terminal screen. This will have the effect of clearing the whole visible space of the terminal and moving the cursor to the top left. This does not do anything if not connected to a terminal. .. versionadded:: 2.0 """ if not isatty(sys.stdout): return # If we're on Windows and we don't have colorama available, then we # clear the screen by shelling out. Otherwise we can use an escape # sequence. if WIN: os.system('cls') else: sys.stdout.write('\033[2J\033[1;1H')
python
def clear(): """Clears the terminal screen. This will have the effect of clearing the whole visible space of the terminal and moving the cursor to the top left. This does not do anything if not connected to a terminal. .. versionadded:: 2.0 """ if not isatty(sys.stdout): return # If we're on Windows and we don't have colorama available, then we # clear the screen by shelling out. Otherwise we can use an escape # sequence. if WIN: os.system('cls') else: sys.stdout.write('\033[2J\033[1;1H')
[ "def", "clear", "(", ")", ":", "if", "not", "isatty", "(", "sys", ".", "stdout", ")", ":", "return", "# If we're on Windows and we don't have colorama available, then we", "# clear the screen by shelling out. Otherwise we can use an escape", "# sequence.", "if", "WIN", ":", "os", ".", "system", "(", "'cls'", ")", "else", ":", "sys", ".", "stdout", ".", "write", "(", "'\\033[2J\\033[1;1H'", ")" ]
Clears the terminal screen. This will have the effect of clearing the whole visible space of the terminal and moving the cursor to the top left. This does not do anything if not connected to a terminal. .. versionadded:: 2.0
[ "Clears", "the", "terminal", "screen", ".", "This", "will", "have", "the", "effect", "of", "clearing", "the", "whole", "visible", "space", "of", "the", "terminal", "and", "moving", "the", "cursor", "to", "the", "top", "left", ".", "This", "does", "not", "do", "anything", "if", "not", "connected", "to", "a", "terminal", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.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tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(111) + '\x36' + chr(1440 - 1387), 4010 - 4002), ehT0Px3KOsy9('\x30' + chr(4400 - 4289) + '\x33' + '\066' + chr(0b11001 + 0o32), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + '\062' + chr(0b11011 + 0o25), 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\x6f' + chr(865 - 812) + chr(0b11100 + 0o25), 44795 - 44787), ehT0Px3KOsy9(chr(48) + chr(4862 - 4751) + chr(1877 - 1828) + '\x30' + '\060', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + chr(0b110010) + chr(969 - 916), 0b1000), ehT0Px3KOsy9('\060' + chr(8892 - 8781) + chr(51) + chr(55) + '\x30', 0b1000), ehT0Px3KOsy9(chr(896 - 848) + chr(0b1101111) + '\063' + chr(55) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b111011 + 0o64) + chr(0b110011) + '\x31' + chr(720 - 670), ord("\x08")), ehT0Px3KOsy9(chr(118 - 70) + chr(0b10010 + 0o135) + chr(2535 - 2484) + '\067' + '\060', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(0b10111 + 0o33) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\063' + chr(1477 - 1422) + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(0b110101) + '\064', 0b1000), ehT0Px3KOsy9(chr(2267 - 2219) + chr(111) + '\x31' + chr(51) + chr(52), 0o10), ehT0Px3KOsy9(chr(702 - 654) + chr(0b101111 + 0o100) + chr(52) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + '\062' + chr(899 - 851) + '\067', 17079 - 17071), ehT0Px3KOsy9('\x30' + chr(5595 - 5484) + chr(0b101111 + 0o2) + chr(1135 - 1086) + '\062', 39234 - 39226), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + chr(902 - 853) + chr(50) + '\064', 37649 - 37641), ehT0Px3KOsy9(chr(2301 - 2253) + chr(998 - 887) + chr(0b110001) + '\x32' + chr(0b10000 + 0o45), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\065' + chr(0b110100), 5211 - 5203), ehT0Px3KOsy9('\x30' + chr(0b1000111 + 0o50) + chr(0b110010) + chr(51) + chr(713 - 663), 43170 - 43162), ehT0Px3KOsy9(chr(0b110000) + chr(1251 - 1140) + '\061' + chr(273 - 220) + chr(536 - 483), 50960 - 50952), ehT0Px3KOsy9('\060' + chr(0b1000011 + 0o54) + '\x34' + chr(1237 - 1185), ord("\x08")), ehT0Px3KOsy9(chr(1813 - 1765) + chr(0b1101000 + 0o7) + chr(0b1011 + 0o46) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(69 - 20) + '\066' + chr(0b110011), 33547 - 33539), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\x6f' + chr(49) + chr(0b10110 + 0o33) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011111 + 0o20) + chr(924 - 873) + '\x35' + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1815 - 1764) + chr(0b11111 + 0o22) + chr(0b110000 + 0o0), 7093 - 7085), ehT0Px3KOsy9('\x30' + chr(0b1000010 + 0o55) + chr(1653 - 1602) + chr(0b110101) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(1045 - 997) + chr(111) + '\x31' + chr(719 - 670) + chr(0b10010 + 0o36), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111110 + 0o61) + '\x32' + chr(0b110111) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1393 - 1345) + chr(3451 - 3340) + chr(1985 - 1935) + chr(54) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10298 - 10187) + chr(0b100011 + 0o23) + chr(51), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101000 + 0o7) + chr(1741 - 1692) + '\x30' + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(0b100000 + 0o27) + chr(227 - 179), 0b1000), ehT0Px3KOsy9('\060' + chr(2936 - 2825) + '\061' + '\x35' + '\x36', 34321 - 34313), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(6222 - 6111) + chr(0b110001 + 0o1) + chr(53) + chr(2514 - 2461), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x33' + chr(0b110101) + chr(0b100001 + 0o22), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(754 - 704) + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + '\x33' + chr(0b10001 + 0o40), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1362 - 1314) + chr(0b100011 + 0o114) + chr(2511 - 2458) + chr(0b110000), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b'), chr(0b1111 + 0o125) + chr(8625 - 8524) + chr(0b1011100 + 0o7) + '\x6f' + chr(1830 - 1730) + chr(101))(chr(9106 - 8989) + chr(0b1110100) + chr(0b1100110) + chr(0b10000 + 0o35) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def c67HZ7s0s6HK(): if not QiV4hcjyD8gr(xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'r\x9d&p*\xe7\xbc\x9e\x93\x92\xf3\x94'), chr(0b1100 + 0o130) + '\x65' + chr(0b1100011) + chr(111) + '\x64' + chr(7172 - 7071))(chr(117) + chr(0b1110100) + chr(0b11 + 0o143) + chr(0b101101) + chr(1636 - 1580)))): return if MJD6pUCwUPXQ: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'F\x8a#]%\xb8'), '\x64' + '\145' + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(13225 - 13108) + '\164' + chr(0b111010 + 0o54) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'V\x9f#'), chr(0b1001 + 0o133) + chr(0b110 + 0o137) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(2651 - 2550))('\165' + chr(0b1110000 + 0o4) + chr(0b1100110) + chr(0b101101) + chr(0b111000))) else: xafqLlk3kkUe(a2SYDDomXDZ2.stdout, xafqLlk3kkUe(SXOLrMavuUCe(b'B\x819]%'), '\x64' + chr(0b1010 + 0o133) + chr(99) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1583 - 1538) + chr(1364 - 1308)))(xafqLlk3kkUe(SXOLrMavuUCe(b'.\xa8bc[\x8e\xc9\xc2\xfb\xb0'), chr(0b110010 + 0o62) + chr(101) + '\x63' + chr(111) + chr(0b100101 + 0o77) + chr(4013 - 3912))(chr(1306 - 1189) + chr(12198 - 12082) + chr(8585 - 8483) + chr(45) + chr(0b0 + 0o70)))
pypa/pipenv
pipenv/vendor/click/termui.py
edit
def edit(text=None, editor=None, env=None, require_save=True, extension='.txt', filename=None): r"""Edits the given text in the defined editor. If an editor is given (should be the full path to the executable but the regular operating system search path is used for finding the executable) it overrides the detected editor. Optionally, some environment variables can be used. If the editor is closed without changes, `None` is returned. In case a file is edited directly the return value is always `None` and `require_save` and `extension` are ignored. If the editor cannot be opened a :exc:`UsageError` is raised. Note for Windows: to simplify cross-platform usage, the newlines are automatically converted from POSIX to Windows and vice versa. As such, the message here will have ``\n`` as newline markers. :param text: the text to edit. :param editor: optionally the editor to use. Defaults to automatic detection. :param env: environment variables to forward to the editor. :param require_save: if this is true, then not saving in the editor will make the return value become `None`. :param extension: the extension to tell the editor about. This defaults to `.txt` but changing this might change syntax highlighting. :param filename: if provided it will edit this file instead of the provided text contents. It will not use a temporary file as an indirection in that case. """ from ._termui_impl import Editor editor = Editor(editor=editor, env=env, require_save=require_save, extension=extension) if filename is None: return editor.edit(text) editor.edit_file(filename)
python
def edit(text=None, editor=None, env=None, require_save=True, extension='.txt', filename=None): r"""Edits the given text in the defined editor. If an editor is given (should be the full path to the executable but the regular operating system search path is used for finding the executable) it overrides the detected editor. Optionally, some environment variables can be used. If the editor is closed without changes, `None` is returned. In case a file is edited directly the return value is always `None` and `require_save` and `extension` are ignored. If the editor cannot be opened a :exc:`UsageError` is raised. Note for Windows: to simplify cross-platform usage, the newlines are automatically converted from POSIX to Windows and vice versa. As such, the message here will have ``\n`` as newline markers. :param text: the text to edit. :param editor: optionally the editor to use. Defaults to automatic detection. :param env: environment variables to forward to the editor. :param require_save: if this is true, then not saving in the editor will make the return value become `None`. :param extension: the extension to tell the editor about. This defaults to `.txt` but changing this might change syntax highlighting. :param filename: if provided it will edit this file instead of the provided text contents. It will not use a temporary file as an indirection in that case. """ from ._termui_impl import Editor editor = Editor(editor=editor, env=env, require_save=require_save, extension=extension) if filename is None: return editor.edit(text) editor.edit_file(filename)
[ "def", "edit", "(", "text", "=", "None", ",", "editor", "=", "None", ",", "env", "=", "None", ",", "require_save", "=", "True", ",", "extension", "=", "'.txt'", ",", "filename", "=", "None", ")", ":", "from", ".", "_termui_impl", "import", "Editor", "editor", "=", "Editor", "(", "editor", "=", "editor", ",", "env", "=", "env", ",", "require_save", "=", "require_save", ",", "extension", "=", "extension", ")", "if", "filename", "is", "None", ":", "return", "editor", ".", "edit", "(", "text", ")", "editor", ".", "edit_file", "(", "filename", ")" ]
r"""Edits the given text in the defined editor. If an editor is given (should be the full path to the executable but the regular operating system search path is used for finding the executable) it overrides the detected editor. Optionally, some environment variables can be used. If the editor is closed without changes, `None` is returned. In case a file is edited directly the return value is always `None` and `require_save` and `extension` are ignored. If the editor cannot be opened a :exc:`UsageError` is raised. Note for Windows: to simplify cross-platform usage, the newlines are automatically converted from POSIX to Windows and vice versa. As such, the message here will have ``\n`` as newline markers. :param text: the text to edit. :param editor: optionally the editor to use. Defaults to automatic detection. :param env: environment variables to forward to the editor. :param require_save: if this is true, then not saving in the editor will make the return value become `None`. :param extension: the extension to tell the editor about. This defaults to `.txt` but changing this might change syntax highlighting. :param filename: if provided it will edit this file instead of the provided text contents. It will not use a temporary file as an indirection in that case.
[ "r", "Edits", "the", "given", "text", "in", "the", "defined", "editor", ".", "If", "an", "editor", "is", "given", "(", "should", "be", "the", "full", "path", "to", "the", "executable", "but", "the", "regular", "operating", "system", "search", "path", "is", "used", "for", "finding", "the", "executable", ")", "it", "overrides", "the", "detected", "editor", ".", "Optionally", "some", "environment", "variables", "can", "be", "used", ".", "If", "the", "editor", "is", "closed", "without", "changes", "None", "is", "returned", ".", "In", "case", "a", "file", "is", "edited", "directly", "the", "return", "value", "is", "always", "None", "and", "require_save", "and", "extension", "are", "ignored", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L481-L515
train
r Edits the given text in the specified editor.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdT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C8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(0b1101 + 0o46) + chr(0b10111 + 0o32) + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b101101 + 0o4) + chr(0b1010 + 0o52), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + chr(52) + chr(0b101001 + 0o12), 16462 - 16454), ehT0Px3KOsy9('\x30' + '\157' + chr(1933 - 1884) + chr(52) + chr(55), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(260 - 209) + chr(54) + chr(0b1010 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\157' + chr(1554 - 1505) + '\061' + chr(150 - 97), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11101 + 0o26) + chr(53) + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(925 - 875) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(1533 - 1484) + '\061', 42594 - 42586), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\x34' + chr(980 - 928), 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101111) + chr(0b110011) + chr(0b111 + 0o57) + '\067', 0o10), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(55) + chr(0b101000 + 0o12), 0o10), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b1101111) + chr(50) + '\063' + chr(0b101111 + 0o6), 0o10), ehT0Px3KOsy9(chr(744 - 696) + chr(0b1101111) + chr(351 - 300) + chr(1504 - 1450) + chr(0b11010 + 0o33), 0b1000), ehT0Px3KOsy9('\x30' + chr(1212 - 1101) + chr(179 - 128) + chr(0b110101) + chr(0b110100), 27410 - 27402), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\x35' + '\063', 22453 - 22445), ehT0Px3KOsy9(chr(48) + chr(0b100110 + 0o111) + chr(163 - 112) + chr(0b111 + 0o60) + chr(0b1100 + 0o46), ord("\x08")), ehT0Px3KOsy9('\060' + chr(11980 - 11869) + '\066' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(1254 - 1205) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101111 + 0o7), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(653 - 600) + chr(0b110001 + 0o3), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b1110 + 0o44) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(7344 - 7233) + '\062' + chr(0b11 + 0o61) + chr(48), 18748 - 18740), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(780 - 730) + chr(52) + chr(0b1000 + 0o51), 60718 - 60710), ehT0Px3KOsy9('\x30' + chr(4784 - 4673) + '\062' + chr(0b11001 + 0o34), 0o10), ehT0Px3KOsy9(chr(48) + chr(4090 - 3979) + '\062' + chr(0b110101 + 0o2) + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + '\x30' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100001 + 0o21) + '\067' + chr(0b11010 + 0o27), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(89 - 40) + chr(0b110001) + '\063', 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + chr(0b110010 + 0o1) + '\x32', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(1206 - 1157) + '\061', 0b1000), ehT0Px3KOsy9('\060' + chr(0b101011 + 0o104) + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b101100 + 0o6) + chr(0b110111) + chr(0b111 + 0o53), 8), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1100011 + 0o14) + chr(50) + chr(0b110011 + 0o0), 8), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + chr(1679 - 1630) + chr(76 - 24) + chr(586 - 536), 0o10), ehT0Px3KOsy9(chr(972 - 924) + '\x6f' + chr(50) + chr(54) + chr(0b11011 + 0o32), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001010 + 0o45) + chr(49) + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(0b1010 + 0o47) + chr(0b100100 + 0o17), 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(0b100111 + 0o16) + '\067', 3811 - 3803)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\065' + '\x30', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0'), chr(9412 - 9312) + chr(788 - 687) + chr(0b10111 + 0o114) + '\x6f' + chr(0b101001 + 0o73) + chr(0b111100 + 0o51))(chr(4317 - 4200) + '\x74' + '\x66' + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def p45Z6JZNTtu5(Ah1rInvg48Hb=None, QP6wN7VyBwGk=None, xzsHIGfR8Ip5=None, ZFdyTFz7hWnM=ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(111) + '\x31', 8), bJEQ7witqKOi=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0x\x1b\x13'), '\x64' + '\145' + chr(0b1100011) + chr(0b1000011 + 0o54) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(482 - 426)), xw4DsBfIJ22E=None): (feluoQVgGVZw,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'\x91x\x06\x15\x9e8\x87\x88`\xc9\x87\xd6'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(7089 - 6989) + '\145')(chr(8699 - 8582) + chr(116) + '\x66' + chr(0b1111 + 0o36) + chr(3071 - 3015)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8bh\n\x13\x9c?'), chr(0b1100100) + '\x65' + chr(8778 - 8679) + chr(0b1010011 + 0o34) + chr(2444 - 2344) + '\145')('\165' + '\x74' + '\146' + '\x2d' + chr(0b111000))), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8bh\n\x13\x9c?'), chr(590 - 490) + chr(0b101101 + 0o70) + '\143' + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b111000 + 0o75) + chr(0b11010 + 0o132) + '\146' + chr(0b101101) + '\070')),) QP6wN7VyBwGk = feluoQVgGVZw(editor=QP6wN7VyBwGk, env=xzsHIGfR8Ip5, require_save=ZFdyTFz7hWnM, extension=bJEQ7witqKOi) if xw4DsBfIJ22E is None: return xafqLlk3kkUe(QP6wN7VyBwGk, xafqLlk3kkUe(SXOLrMavuUCe(b'\xabh\n\x13'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101 + 0o0) + chr(116) + chr(0b1100110) + chr(153 - 108) + chr(0b111000)))(Ah1rInvg48Hb) xafqLlk3kkUe(QP6wN7VyBwGk, xafqLlk3kkUe(SXOLrMavuUCe(b'\xabh\n\x13\xac+\x87\xbbl'), chr(0b1100100) + '\145' + chr(0b1000111 + 0o34) + '\x6f' + chr(100) + chr(2279 - 2178))('\x75' + chr(116) + chr(0b110011 + 0o63) + '\055' + chr(56)))(xw4DsBfIJ22E)
pypa/pipenv
pipenv/vendor/click/termui.py
launch
def launch(url, wait=False, locate=False): """This function launches the given URL (or filename) in the default viewer application for this file type. If this is an executable, it might launch the executable in a new session. The return value is the exit code of the launched application. Usually, ``0`` indicates success. Examples:: click.launch('https://click.palletsprojects.com/') click.launch('/my/downloaded/file', locate=True) .. versionadded:: 2.0 :param url: URL or filename of the thing to launch. :param wait: waits for the program to stop. :param locate: if this is set to `True` then instead of launching the application associated with the URL it will attempt to launch a file manager with the file located. This might have weird effects if the URL does not point to the filesystem. """ from ._termui_impl import open_url return open_url(url, wait=wait, locate=locate)
python
def launch(url, wait=False, locate=False): """This function launches the given URL (or filename) in the default viewer application for this file type. If this is an executable, it might launch the executable in a new session. The return value is the exit code of the launched application. Usually, ``0`` indicates success. Examples:: click.launch('https://click.palletsprojects.com/') click.launch('/my/downloaded/file', locate=True) .. versionadded:: 2.0 :param url: URL or filename of the thing to launch. :param wait: waits for the program to stop. :param locate: if this is set to `True` then instead of launching the application associated with the URL it will attempt to launch a file manager with the file located. This might have weird effects if the URL does not point to the filesystem. """ from ._termui_impl import open_url return open_url(url, wait=wait, locate=locate)
[ "def", "launch", "(", "url", ",", "wait", "=", "False", ",", "locate", "=", "False", ")", ":", "from", ".", "_termui_impl", "import", "open_url", "return", "open_url", "(", "url", ",", "wait", "=", "wait", ",", "locate", "=", "locate", ")" ]
This function launches the given URL (or filename) in the default viewer application for this file type. If this is an executable, it might launch the executable in a new session. The return value is the exit code of the launched application. Usually, ``0`` indicates success. Examples:: click.launch('https://click.palletsprojects.com/') click.launch('/my/downloaded/file', locate=True) .. versionadded:: 2.0 :param url: URL or filename of the thing to launch. :param wait: waits for the program to stop. :param locate: if this is set to `True` then instead of launching the application associated with the URL it will attempt to launch a file manager with the file located. This might have weird effects if the URL does not point to the filesystem.
[ "This", "function", "launches", "the", "given", "URL", "(", "or", "filename", ")", "in", "the", "default", "viewer", "application", "for", "this", "file", "type", ".", "If", "this", "is", "an", "executable", "it", "might", "launch", "the", "executable", "in", "a", "new", "session", ".", "The", "return", "value", "is", "the", "exit", "code", "of", "the", "launched", "application", ".", "Usually", "0", "indicates", "success", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L518-L541
train
This function opens a URL or filename in the default viewer application.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0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G,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(111) + '\x35' + chr(1866 - 1812), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(1900 - 1850) + chr(49), 0o10), ehT0Px3KOsy9(chr(2011 - 1963) + '\157' + chr(0b101000 + 0o13) + '\x36' + chr(0b110011), 9517 - 9509), ehT0Px3KOsy9(chr(967 - 919) + '\x6f' + chr(0b110011) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(11362 - 11251) + '\x35' + chr(51), 11474 - 11466), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1011010 + 0o25) + chr(49) + '\x31' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + chr(6202 - 6091) + chr(0b110001) + chr(1086 - 1036) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(1623 - 1569) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2113 - 2063) + chr(2494 - 2439) + chr(415 - 361), 34000 - 33992), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + '\x32' + chr(52) + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(1392 - 1343) + chr(992 - 939), 0o10), ehT0Px3KOsy9(chr(565 - 517) + chr(111) + '\065' + chr(0b110110), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b11111 + 0o120) + '\x31' + chr(309 - 254) + '\062', 50438 - 50430), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b1100 + 0o45) + '\065' + chr(0b0 + 0o65), 0b1000), ehT0Px3KOsy9(chr(1362 - 1314) + chr(11505 - 11394) + '\062' + '\x35' + chr(48), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(1037 - 926) + chr(49) + chr(0b111 + 0o52), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1000011 + 0o54) + chr(51) + chr(416 - 364) + chr(1358 - 1307), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\157' + chr(0b110010) + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100001 + 0o116) + chr(1885 - 1832) + chr(2496 - 2446), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1335 - 1284) + chr(0b101001 + 0o14) + chr(53), 8608 - 8600), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\x6f' + chr(53) + chr(0b100101 + 0o22), 0o10), ehT0Px3KOsy9(chr(2185 - 2137) + '\157' + chr(50) + '\062' + chr(51), 38858 - 38850), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110100) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\157' + chr(51) + chr(49) + chr(0b1110 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(55) + chr(91 - 36), 0o10), ehT0Px3KOsy9(chr(1153 - 1105) + chr(12283 - 12172) + chr(51) + chr(52) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1111 + 0o46) + chr(771 - 723), 0o10), ehT0Px3KOsy9(chr(48) + chr(8023 - 7912) + chr(0b110001) + chr(2033 - 1980) + '\x33', 14162 - 14154), ehT0Px3KOsy9(chr(289 - 241) + chr(0b1101111) + chr(0b110010) + '\062' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11 + 0o56) + '\x35' + '\065', 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + '\x35' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(1044 - 996) + '\157' + chr(50) + chr(0b10011 + 0o36) + '\066', 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(111) + chr(51) + chr(0b110101) + chr(0b110100), 52503 - 52495), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100 + 0o55) + '\065' + chr(0b110101), 8), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b10101 + 0o36) + '\061' + chr(2883 - 2829), ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b100111 + 0o110) + chr(50) + chr(0b110010) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b10100 + 0o133) + chr(0b101100 + 0o6) + '\x31' + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011 + 0o0) + '\065' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(9952 - 9841) + chr(51) + chr(0b1111 + 0o41) + '\060', 0b1000), ehT0Px3KOsy9(chr(1089 - 1041) + chr(0b1101111) + chr(0b110010) + chr(2223 - 2175) + chr(0b110010), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(156 - 45) + '\065' + chr(0b110000), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x00'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + '\145')('\x75' + '\164' + chr(102) + chr(45) + chr(0b100101 + 0o23)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def uVT0Y5BZyRiG(CYCr3xzMHl4K, iik9wfy8nMEV=ehT0Px3KOsy9(chr(48) + chr(0b101011 + 0o104) + chr(48), ord("\x08")), YIfa5j9a6OqD=ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(1415 - 1367), 8)): (_lbH7WcBDIH9,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'qe\x96lF>:*\xd7\xcd=B'), chr(0b1100100) + chr(101) + '\143' + '\x6f' + '\x64' + '\145')('\x75' + chr(116) + '\x66' + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'Aa\x96pt>!\x19'), chr(7354 - 7254) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1010000 + 0o24) + chr(0b10110 + 0o117))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(374 - 329) + '\x38')), xafqLlk3kkUe(SXOLrMavuUCe(b'Aa\x96pt>!\x19'), chr(0b1100100) + chr(0b101010 + 0o73) + chr(966 - 867) + chr(111) + '\x64' + chr(0b11101 + 0o110))(chr(3427 - 3310) + '\x74' + chr(0b1100110) + chr(503 - 458) + '\x38')),) return _lbH7WcBDIH9(CYCr3xzMHl4K, wait=iik9wfy8nMEV, locate=YIfa5j9a6OqD)
pypa/pipenv
pipenv/vendor/click/termui.py
getchar
def getchar(echo=False): """Fetches a single character from the terminal and returns it. This will always return a unicode character and under certain rare circumstances this might return more than one character. The situations which more than one character is returned is when for whatever reason multiple characters end up in the terminal buffer or standard input was not actually a terminal. Note that this will always read from the terminal, even if something is piped into the standard input. Note for Windows: in rare cases when typing non-ASCII characters, this function might wait for a second character and then return both at once. This is because certain Unicode characters look like special-key markers. .. versionadded:: 2.0 :param echo: if set to `True`, the character read will also show up on the terminal. The default is to not show it. """ f = _getchar if f is None: from ._termui_impl import getchar as f return f(echo)
python
def getchar(echo=False): """Fetches a single character from the terminal and returns it. This will always return a unicode character and under certain rare circumstances this might return more than one character. The situations which more than one character is returned is when for whatever reason multiple characters end up in the terminal buffer or standard input was not actually a terminal. Note that this will always read from the terminal, even if something is piped into the standard input. Note for Windows: in rare cases when typing non-ASCII characters, this function might wait for a second character and then return both at once. This is because certain Unicode characters look like special-key markers. .. versionadded:: 2.0 :param echo: if set to `True`, the character read will also show up on the terminal. The default is to not show it. """ f = _getchar if f is None: from ._termui_impl import getchar as f return f(echo)
[ "def", "getchar", "(", "echo", "=", "False", ")", ":", "f", "=", "_getchar", "if", "f", "is", "None", ":", "from", ".", "_termui_impl", "import", "getchar", "as", "f", "return", "f", "(", "echo", ")" ]
Fetches a single character from the terminal and returns it. This will always return a unicode character and under certain rare circumstances this might return more than one character. The situations which more than one character is returned is when for whatever reason multiple characters end up in the terminal buffer or standard input was not actually a terminal. Note that this will always read from the terminal, even if something is piped into the standard input. Note for Windows: in rare cases when typing non-ASCII characters, this function might wait for a second character and then return both at once. This is because certain Unicode characters look like special-key markers. .. versionadded:: 2.0 :param echo: if set to `True`, the character read will also show up on the terminal. The default is to not show it.
[ "Fetches", "a", "single", "character", "from", "the", "terminal", "and", "returns", "it", ".", "This", "will", "always", "return", "a", "unicode", "character", "and", "under", "certain", "rare", "circumstances", "this", "might", "return", "more", "than", "one", "character", ".", "The", "situations", "which", "more", "than", "one", "character", "is", "returned", "is", "when", "for", "whatever", "reason", "multiple", "characters", "end", "up", "in", "the", "terminal", "buffer", "or", "standard", "input", "was", "not", "actually", "a", "terminal", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L549-L572
train
Fetches a single character from the terminal and returns it.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qR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,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110000) + chr(0b100 + 0o54), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b0 + 0o63) + '\x32' + '\066', 33486 - 33478), ehT0Px3KOsy9(chr(254 - 206) + chr(111) + chr(49) + '\067' + chr(0b100111 + 0o16), 34164 - 34156), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + '\x32' + '\x37' + '\065', 48583 - 48575), ehT0Px3KOsy9('\060' + '\157' + chr(0b100110 + 0o14) + chr(2645 - 2591) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100011 + 0o114) + chr(0b11110 + 0o23) + '\x37' + '\x35', 8), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(111) + chr(0b110011) + '\x36' + chr(57 - 9), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b10010 + 0o36) + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\x30' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(1934 - 1886) + chr(0b1101111) + chr(2578 - 2527) + chr(1562 - 1514) + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + '\065' + chr(0b101010 + 0o7), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011010 + 0o25) + '\x32' + '\061', 0b1000), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(0b11101 + 0o24) + '\x30' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\157' + chr(600 - 550) + chr(2221 - 2169) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(808 - 697) + chr(2121 - 2071) + chr(0b101000 + 0o14), ord("\x08")), ehT0Px3KOsy9(chr(376 - 328) + '\157' + chr(0b11010 + 0o27) + chr(0b110000) + '\066', 8), ehT0Px3KOsy9('\060' + '\157' + '\x33' + chr(54), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1001111 + 0o40) + '\066' + chr(0b110100), 31918 - 31910), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1841 - 1792), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x31' + chr(0b110000) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b110110) + chr(0b110100), 36851 - 36843), ehT0Px3KOsy9(chr(48) + chr(4191 - 4080) + '\x33' + chr(0b101101 + 0o6) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + '\x32' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(2393 - 2342) + chr(49) + '\060', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + '\x34' + chr(48), 42380 - 42372), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(53) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(3231 - 3120) + '\061' + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(53) + chr(1266 - 1218), 24734 - 24726), ehT0Px3KOsy9('\x30' + chr(9701 - 9590) + chr(0b110010) + chr(611 - 556) + chr(0b110101), 8), ehT0Px3KOsy9('\060' + chr(10687 - 10576) + '\x33' + '\060' + chr(0b100001 + 0o25), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(232 - 179) + '\x31', 43589 - 43581), ehT0Px3KOsy9('\x30' + chr(2937 - 2826) + chr(51) + '\067' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(1458 - 1410) + '\157' + '\x33' + '\x35' + chr(0b100000 + 0o27), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(1899 - 1847) + chr(0b101 + 0o61), 0o10), ehT0Px3KOsy9(chr(84 - 36) + '\157' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1010010 + 0o35) + '\061' + chr(0b110001) + chr(0b11110 + 0o22), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + chr(634 - 584) + chr(0b110001 + 0o4), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(0b110001) + chr(52), 4648 - 4640), ehT0Px3KOsy9(chr(1733 - 1685) + chr(111) + '\x32' + '\x37' + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + chr(0b101011 + 0o104) + chr(0b110010) + chr(0b110001 + 0o3) + chr(953 - 903), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + '\x35' + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'n'), chr(0b1100100) + chr(5557 - 5456) + '\x63' + chr(8270 - 8159) + chr(100) + '\145')('\x75' + chr(9935 - 9819) + '\x66' + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def qjsZXp7SGHpm(Fm6P_5rksoCH=ehT0Px3KOsy9('\060' + chr(111) + chr(0b110000), ord("\x08"))): EGyt1xfPT1P6 = MT6PfUgXEe39 if EGyt1xfPT1P6 is None: (EGyt1xfPT1P6,) = (xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1f\xa2\x18\xcf\xdb\x08\x99\xdc\xe8\xa9\x99}'), '\144' + chr(0b11110 + 0o107) + '\x63' + chr(0b1101111) + '\144' + chr(0b111111 + 0o46))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b11010 + 0o36)), xafqLlk3kkUe(SXOLrMavuUCe(b"'\xb3\t\xde\xde\x1c\x82"), '\144' + chr(9313 - 9212) + chr(7997 - 7898) + '\157' + '\144' + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(0b0 + 0o55) + chr(0b111000))), xafqLlk3kkUe(SXOLrMavuUCe(b"'\xb3\t\xde\xde\x1c\x82"), chr(0b1000111 + 0o35) + chr(7072 - 6971) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b101101 + 0o70))('\165' + chr(0b101101 + 0o107) + chr(0b1100110) + chr(0b101101) + chr(1984 - 1928))),) return EGyt1xfPT1P6(Fm6P_5rksoCH)
pypa/pipenv
pipenv/vendor/click/termui.py
pause
def pause(info='Press any key to continue ...', err=False): """This command stops execution and waits for the user to press any key to continue. This is similar to the Windows batch "pause" command. If the program is not run through a terminal, this command will instead do nothing. .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `err` parameter. :param info: the info string to print before pausing. :param err: if set to message goes to ``stderr`` instead of ``stdout``, the same as with echo. """ if not isatty(sys.stdin) or not isatty(sys.stdout): return try: if info: echo(info, nl=False, err=err) try: getchar() except (KeyboardInterrupt, EOFError): pass finally: if info: echo(err=err)
python
def pause(info='Press any key to continue ...', err=False): """This command stops execution and waits for the user to press any key to continue. This is similar to the Windows batch "pause" command. If the program is not run through a terminal, this command will instead do nothing. .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `err` parameter. :param info: the info string to print before pausing. :param err: if set to message goes to ``stderr`` instead of ``stdout``, the same as with echo. """ if not isatty(sys.stdin) or not isatty(sys.stdout): return try: if info: echo(info, nl=False, err=err) try: getchar() except (KeyboardInterrupt, EOFError): pass finally: if info: echo(err=err)
[ "def", "pause", "(", "info", "=", "'Press any key to continue ...'", ",", "err", "=", "False", ")", ":", "if", "not", "isatty", "(", "sys", ".", "stdin", ")", "or", "not", "isatty", "(", "sys", ".", "stdout", ")", ":", "return", "try", ":", "if", "info", ":", "echo", "(", "info", ",", "nl", "=", "False", ",", "err", "=", "err", ")", "try", ":", "getchar", "(", ")", "except", "(", "KeyboardInterrupt", ",", "EOFError", ")", ":", "pass", "finally", ":", "if", "info", ":", "echo", "(", "err", "=", "err", ")" ]
This command stops execution and waits for the user to press any key to continue. This is similar to the Windows batch "pause" command. If the program is not run through a terminal, this command will instead do nothing. .. versionadded:: 2.0 .. versionadded:: 4.0 Added the `err` parameter. :param info: the info string to print before pausing. :param err: if set to message goes to ``stderr`` instead of ``stdout``, the same as with echo.
[ "This", "command", "stops", "execution", "and", "waits", "for", "the", "user", "to", "press", "any", "key", "to", "continue", ".", "This", "is", "similar", "to", "the", "Windows", "batch", "pause", "command", ".", "If", "the", "program", "is", "not", "run", "through", "a", "terminal", "this", "command", "will", "instead", "do", "nothing", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click/termui.py#L580-L606
train
This command stops execution and waits for the user to press any racket key to continue.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ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R9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(11297 - 11186) + '\062' + chr(0b10011 + 0o44) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\063' + chr(0b110001) + '\x37', 0b1000), ehT0Px3KOsy9(chr(1961 - 1913) + '\x6f' + '\x31' + chr(55) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(362 - 312) + '\066' + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010 + 0o145) + chr(0b110010) + chr(0b1011 + 0o47) + '\066', 0o10), ehT0Px3KOsy9('\060' + chr(0b111001 + 0o66) + '\x32' + chr(916 - 864) + chr(52), 18285 - 18277), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + chr(0b100011 + 0o24) + chr(0b100001 + 0o21), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + '\061' + chr(433 - 380), 17828 - 17820), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\x6f' + chr(50) + chr(0b100001 + 0o20) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(1253 - 1205) + chr(111) + chr(1831 - 1782) + chr(2530 - 2478), 0b1000), ehT0Px3KOsy9(chr(298 - 250) + chr(111) + chr(1198 - 1148) + chr(0b110101) + chr(1695 - 1640), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + chr(0b110011) + chr(52), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1011110 + 0o21) + chr(0b1001 + 0o52) + chr(0b10111 + 0o35), 0o10), ehT0Px3KOsy9(chr(447 - 399) + '\157' + chr(114 - 63) + chr(0b110001) + chr(2965 - 2910), 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110011) + chr(2771 - 2717), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4425 - 4314) + chr(0b110100) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(52) + chr(54), 57684 - 57676), ehT0Px3KOsy9(chr(2228 - 2180) + '\x6f' + chr(50) + chr(1163 - 1112) + '\x36', 8), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(1828 - 1717) + '\x33', ord("\x08")), ehT0Px3KOsy9('\060' + chr(3569 - 3458) + chr(49) + chr(502 - 454) + chr(0b100010 + 0o25), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(5439 - 5328) + '\x31' + '\064', 8), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + chr(49) + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(0b101001 + 0o16) + chr(0b100101 + 0o21), ord("\x08")), ehT0Px3KOsy9(chr(457 - 409) + chr(0b1101111) + '\x33' + chr(0b110010) + chr(1181 - 1127), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(11574 - 11463) + chr(1606 - 1555) + '\063' + chr(193 - 142), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2087 - 2038) + chr(1483 - 1428) + chr(0b1001 + 0o52), 0b1000), ehT0Px3KOsy9(chr(1192 - 1144) + chr(0b1101111) + '\062' + chr(0b110 + 0o52) + chr(2324 - 2271), 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(50) + '\065', 39535 - 39527), ehT0Px3KOsy9(chr(1709 - 1661) + '\157' + '\x37' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + '\x36' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(1234 - 1186) + chr(10360 - 10249) + '\x33' + chr(0b10000 + 0o43) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110011) + '\x33' + '\x33', 8), ehT0Px3KOsy9(chr(1474 - 1426) + chr(8860 - 8749) + chr(0b110010) + chr(53) + '\x32', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001001 + 0o46) + chr(50) + chr(2761 - 2707) + '\x34', 0o10), ehT0Px3KOsy9(chr(543 - 495) + '\x6f' + chr(738 - 688) + chr(0b101111 + 0o1) + '\067', 0o10), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + '\065' + '\066', 0o10), ehT0Px3KOsy9('\x30' + chr(0b110010 + 0o75) + chr(691 - 642) + '\061' + chr(0b100000 + 0o20), 0b1000), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(49) + chr(0b100011 + 0o21) + chr(0b11100 + 0o33), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(997 - 949) + chr(111) + '\065' + chr(48), 4366 - 4358)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x97'), chr(0b110 + 0o136) + chr(0b1100101) + chr(99) + chr(4967 - 4856) + chr(100) + chr(8235 - 8134))(chr(6361 - 6244) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def VWVKSklMO9y2(S7Hxucg7jlZk=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe9\xbd\x19\xc5\xe5\x84\x9b#\xf4,\xc4e%<\xbb\xf1\x02E\xf1m3e%\xcb\xb3\xfbU\xab;'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1010011 + 0o34) + chr(100) + chr(101))(chr(2270 - 2153) + chr(11785 - 11669) + chr(0b101101 + 0o71) + chr(0b101101) + '\x38'), n8HlHl2rqNTp=ehT0Px3KOsy9(chr(1007 - 959) + chr(0b1101111) + chr(48), 8)): if not QiV4hcjyD8gr(xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xca\xbb\x18\xdf\xf8'), chr(100) + '\145' + chr(0b10111 + 0o114) + chr(0b101001 + 0o106) + '\144' + chr(0b1100101))(chr(0b1101001 + 0o14) + '\164' + '\146' + '\x2d' + chr(0b111000)))) or not QiV4hcjyD8gr(xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfe\xa1\n\xef\xfc\x96\xbe*\xd4f\xcao'), chr(1610 - 1510) + '\x65' + '\143' + '\157' + chr(0b1100000 + 0o4) + chr(0b1100011 + 0o2))(chr(117) + chr(0b1101100 + 0o10) + '\x66' + '\x2d' + chr(56)))): return try: if S7Hxucg7jlZk: Fm6P_5rksoCH(S7Hxucg7jlZk, nl=ehT0Px3KOsy9('\060' + chr(111) + chr(2009 - 1961), 8), err=n8HlHl2rqNTp) try: qjsZXp7SGHpm() except (RouZF7bjEXAv, WaQEaQCVMQ03): pass finally: if S7Hxucg7jlZk: Fm6P_5rksoCH(err=n8HlHl2rqNTp)
pypa/pipenv
pipenv/vendor/attr/validators.py
optional
def optional(validator): """ A validator that makes an attribute optional. An optional attribute is one which can be set to ``None`` in addition to satisfying the requirements of the sub-validator. :param validator: A validator (or a list of validators) that is used for non-``None`` values. :type validator: callable or :class:`list` of callables. .. versionadded:: 15.1.0 .. versionchanged:: 17.1.0 *validator* can be a list of validators. """ if isinstance(validator, list): return _OptionalValidator(_AndValidator(validator)) return _OptionalValidator(validator)
python
def optional(validator): """ A validator that makes an attribute optional. An optional attribute is one which can be set to ``None`` in addition to satisfying the requirements of the sub-validator. :param validator: A validator (or a list of validators) that is used for non-``None`` values. :type validator: callable or :class:`list` of callables. .. versionadded:: 15.1.0 .. versionchanged:: 17.1.0 *validator* can be a list of validators. """ if isinstance(validator, list): return _OptionalValidator(_AndValidator(validator)) return _OptionalValidator(validator)
[ "def", "optional", "(", "validator", ")", ":", "if", "isinstance", "(", "validator", ",", "list", ")", ":", "return", "_OptionalValidator", "(", "_AndValidator", "(", "validator", ")", ")", "return", "_OptionalValidator", "(", "validator", ")" ]
A validator that makes an attribute optional. An optional attribute is one which can be set to ``None`` in addition to satisfying the requirements of the sub-validator. :param validator: A validator (or a list of validators) that is used for non-``None`` values. :type validator: callable or :class:`list` of callables. .. versionadded:: 15.1.0 .. versionchanged:: 17.1.0 *validator* can be a list of validators.
[ "A", "validator", "that", "makes", "an", "attribute", "optional", ".", "An", "optional", "attribute", "is", "one", "which", "can", "be", "set", "to", "None", "in", "addition", "to", "satisfying", "the", "requirements", "of", "the", "sub", "-", "validator", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/attr/validators.py#L114-L129
train
A validator that makes an attribute optional.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,R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PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(111) + chr(330 - 281) + chr(1520 - 1466) + chr(1066 - 1016), 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + '\063' + chr(55) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + '\x37' + chr(0b11001 + 0o34), 3183 - 3175), ehT0Px3KOsy9(chr(48) + chr(0b1000011 + 0o54) + '\061' + chr(50) + '\064', 0o10), ehT0Px3KOsy9('\x30' + chr(11130 - 11019) + chr(0b110010) + '\x36' + '\063', 0o10), ehT0Px3KOsy9(chr(258 - 210) + '\157' + chr(0b111 + 0o52) + chr(0b110100), 46206 - 46198), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\x6f' + chr(0b110010) + chr(582 - 534), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + '\x31' + '\x37', 28381 - 28373), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(654 - 605) + '\062' + '\064', 8), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(0b10101 + 0o37) + chr(345 - 296), 25877 - 25869), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x32' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(1170 - 1122) + chr(0b1101111) + chr(1304 - 1253) + '\063' + '\x37', 35042 - 35034), ehT0Px3KOsy9('\x30' + chr(1348 - 1237) + '\x33' + '\x36' + chr(0b100111 + 0o16), 0o10), ehT0Px3KOsy9(chr(2049 - 2001) + chr(0b1101010 + 0o5) + chr(1082 - 1031) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111110 + 0o61) + '\061' + chr(2307 - 2256) + '\067', 0o10), ehT0Px3KOsy9(chr(498 - 450) + chr(111) + chr(50) + chr(0b10010 + 0o41) + chr(0b100010 + 0o16), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100111 + 0o15) + '\x30', 0o10), ehT0Px3KOsy9(chr(2150 - 2102) + '\157' + chr(0b110001) + chr(414 - 360) + chr(635 - 587), ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\x6f' + chr(0b110001) + '\x34' + chr(0b101011 + 0o10), 39393 - 39385), ehT0Px3KOsy9(chr(1280 - 1232) + '\x6f' + chr(0b110010) + chr(48) + chr(146 - 92), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b10001 + 0o44) + '\061', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(2290 - 2241) + '\060' + '\065', 2259 - 2251), ehT0Px3KOsy9('\060' + '\157' + chr(1497 - 1446) + chr(0b11011 + 0o31) + '\x32', 0o10), ehT0Px3KOsy9(chr(1905 - 1857) + chr(0b1101111) + '\x31' + '\061' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(2182 - 2134) + chr(0b1101111) + chr(51) + chr(0b11010 + 0o31) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(2153 - 2100) + chr(54), 1875 - 1867), ehT0Px3KOsy9('\x30' + chr(323 - 212) + chr(152 - 102) + '\060' + chr(0b1100 + 0o44), 21391 - 21383), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b0 + 0o62) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\157' + chr(55) + '\066', 47983 - 47975), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(0b110010) + chr(1736 - 1685) + chr(624 - 576), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(50) + chr(314 - 263), 0b1000), ehT0Px3KOsy9('\060' + chr(4376 - 4265) + '\067' + chr(54), 8), ehT0Px3KOsy9('\x30' + chr(1140 - 1029) + chr(0b110010) + '\x34' + chr(0b10 + 0o61), 0o10), ehT0Px3KOsy9(chr(214 - 166) + chr(0b1010010 + 0o35) + chr(0b110101) + chr(0b10 + 0o64), 0o10), ehT0Px3KOsy9(chr(701 - 653) + '\157' + chr(1963 - 1912) + '\061' + chr(2170 - 2115), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(1785 - 1736) + '\061', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(1515 - 1465), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1100 + 0o45) + '\065' + chr(0b110010), 7906 - 7898), ehT0Px3KOsy9(chr(1623 - 1575) + chr(0b1101111) + '\062' + '\061' + chr(624 - 569), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(0b110111) + '\x31', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2200 - 2147) + chr(352 - 304), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\\'), '\144' + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(5752 - 5651))('\165' + chr(0b1110100) + chr(0b11 + 0o143) + chr(1218 - 1173) + chr(485 - 429)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def LfD5WZf72Q8U(sJaS8lwLf3wx): if PlSM16l2KDPD(sJaS8lwLf3wx, YyaZ4tpXu4lf): return ArHihfuuALJE(AC3bMkkGXWht(sJaS8lwLf3wx)) return ArHihfuuALJE(sJaS8lwLf3wx)
pypa/pipenv
pipenv/vendor/resolvelib/structs.py
DirectedGraph.copy
def copy(self): """Return a shallow copy of this graph. """ other = DirectedGraph() other._vertices = set(self._vertices) other._forwards = {k: set(v) for k, v in self._forwards.items()} other._backwards = {k: set(v) for k, v in self._backwards.items()} return other
python
def copy(self): """Return a shallow copy of this graph. """ other = DirectedGraph() other._vertices = set(self._vertices) other._forwards = {k: set(v) for k, v in self._forwards.items()} other._backwards = {k: set(v) for k, v in self._backwards.items()} return other
[ "def", "copy", "(", "self", ")", ":", "other", "=", "DirectedGraph", "(", ")", "other", ".", "_vertices", "=", "set", "(", "self", ".", "_vertices", ")", "other", ".", "_forwards", "=", "{", "k", ":", "set", "(", "v", ")", "for", "k", ",", "v", "in", "self", ".", "_forwards", ".", "items", "(", ")", "}", "other", ".", "_backwards", "=", "{", "k", ":", "set", "(", "v", ")", "for", "k", ",", "v", "in", "self", ".", "_backwards", ".", "items", "(", ")", "}", "return", "other" ]
Return a shallow copy of this graph.
[ "Return", "a", "shallow", "copy", "of", "this", "graph", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/resolvelib/structs.py#L18-L25
train
Return a shallow copy of this graph.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5p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ributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1089 - 1038) + chr(52) + chr(50), 22005 - 21997), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(111) + '\067' + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + '\067' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b10001 + 0o136) + '\x31' + '\061' + chr(0b110000 + 0o7), 55108 - 55100), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + chr(55) + chr(1982 - 1931), ord("\x08")), ehT0Px3KOsy9('\060' + chr(2983 - 2872) + chr(53) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b101 + 0o152) + chr(2536 - 2483) + '\x35', 8), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b110001 + 0o76) + chr(0b110000 + 0o4) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10363 - 10252) + '\061' + '\060' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(49) + chr(0b110010) + chr(1285 - 1237), 17284 - 17276), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1001001 + 0o46) + '\063' + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5148 - 5037) + chr(1960 - 1909) + '\x33' + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b11000 + 0o127) + '\063' + '\065' + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1101 + 0o46) + '\067' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(1938 - 1890) + chr(6828 - 6717) + '\063' + chr(0b1011 + 0o52), 8), ehT0Px3KOsy9('\x30' + chr(0b100010 + 0o115) + '\063' + chr(0b101011 + 0o10) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(1532 - 1484) + '\157' + chr(51) + chr(0b101001 + 0o7) + chr(0b11110 + 0o24), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b11100 + 0o123) + chr(1764 - 1715) + chr(1287 - 1238) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2318 - 2207) + '\x31' + chr(53) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(719 - 608) + chr(0b11001 + 0o30) + chr(2445 - 2390) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + '\064' + '\x30', 0b1000), ehT0Px3KOsy9(chr(2144 - 2096) + '\157' + chr(0b110001) + chr(48) + '\x30', 13789 - 13781), ehT0Px3KOsy9('\x30' + chr(9289 - 9178) + chr(0b110010) + '\x33' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\157' + '\x34' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110110) + chr(0b11010 + 0o27), 0o10), ehT0Px3KOsy9(chr(668 - 620) + chr(111) + chr(0b11000 + 0o37), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b11111 + 0o22) + chr(1527 - 1477) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + chr(54) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + '\x36' + '\061', 0o10), ehT0Px3KOsy9(chr(1276 - 1228) + '\157' + chr(1164 - 1113) + chr(0b110001) + chr(50), 58669 - 58661), ehT0Px3KOsy9(chr(1228 - 1180) + chr(0b1011000 + 0o27) + chr(0b110011) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(0b10000 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(672 - 624) + chr(0b11 + 0o154) + chr(51) + '\064' + chr(55), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + chr(1328 - 1279) + chr(0b1011 + 0o51) + '\x37', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + chr(0b1011 + 0o45) + chr(1876 - 1824), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + chr(343 - 291) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b100010 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(1338 - 1286) + chr(51), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b11101 + 0o122) + chr(0b110101) + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc'), chr(0b1110 + 0o126) + '\x65' + '\x63' + '\157' + chr(0b1100100) + chr(1984 - 1883))(chr(117) + chr(0b100000 + 0o124) + chr(0b110100 + 0o62) + '\055' + chr(2960 - 2904)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def igThHS4jwVsa(oVre8I6UXc3b): KK0ERS7DqYrY = APbuKpKIBpNb() KK0ERS7DqYrY.U1de0cB4ONxk = MVEN8G6CxlvR(oVre8I6UXc3b.U1de0cB4ONxk) KK0ERS7DqYrY.TacNll1EFRrd = {OolUPRJhRaJd: MVEN8G6CxlvR(cMbll0QYhULo) for (OolUPRJhRaJd, cMbll0QYhULo) in oVre8I6UXc3b._forwards.NzveIZ3IlSH9()} KK0ERS7DqYrY.TcJ6DOyGRFfq = {OolUPRJhRaJd: MVEN8G6CxlvR(cMbll0QYhULo) for (OolUPRJhRaJd, cMbll0QYhULo) in oVre8I6UXc3b._backwards.NzveIZ3IlSH9()} return KK0ERS7DqYrY
pypa/pipenv
pipenv/vendor/resolvelib/structs.py
DirectedGraph.add
def add(self, key): """Add a new vertex to the graph. """ if key in self._vertices: raise ValueError('vertex exists') self._vertices.add(key) self._forwards[key] = set() self._backwards[key] = set()
python
def add(self, key): """Add a new vertex to the graph. """ if key in self._vertices: raise ValueError('vertex exists') self._vertices.add(key) self._forwards[key] = set() self._backwards[key] = set()
[ "def", "add", "(", "self", ",", "key", ")", ":", "if", "key", "in", "self", ".", "_vertices", ":", "raise", "ValueError", "(", "'vertex exists'", ")", "self", ".", "_vertices", ".", "add", "(", "key", ")", "self", ".", "_forwards", "[", "key", "]", "=", "set", "(", ")", "self", ".", "_backwards", "[", "key", "]", "=", "set", "(", ")" ]
Add a new vertex to the graph.
[ "Add", "a", "new", "vertex", "to", "the", "graph", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/resolvelib/structs.py#L27-L34
train
Add a new vertex to the graph.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4B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EeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(54) + '\x30', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + '\065' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(1921 - 1872), 25711 - 25703), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + chr(0b110 + 0o55) + '\066' + chr(53), 15721 - 15713), ehT0Px3KOsy9(chr(0b100010 + 0o16) + '\157' + chr(1476 - 1425) + chr(0b110001) + chr(0b100 + 0o60), ord("\x08")), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(0b1101111) + '\x33' + '\066' + chr(0b1001 + 0o54), 8), ehT0Px3KOsy9(chr(1330 - 1282) + '\x6f' + '\x33' + '\064' + chr(1449 - 1398), 0b1000), ehT0Px3KOsy9(chr(48) + chr(3966 - 3855) + chr(0b110010) + chr(53) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(8589 - 8478) + chr(51) + chr(0b110110) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + chr(51) + chr(0b110101) + chr(0b101100 + 0o11), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(972 - 923) + '\x37' + chr(55), 0b1000), ehT0Px3KOsy9(chr(2098 - 2050) + chr(0b1101111) + '\063' + '\066' + '\x34', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(0b11011 + 0o30) + chr(49), 0b1000), ehT0Px3KOsy9(chr(48) + chr(1787 - 1676) + chr(0b110010) + '\x30' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11100 + 0o25) + chr(50) + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + chr(0b10 + 0o155) + chr(51) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b10 + 0o60) + chr(0b110011), 5304 - 5296), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + chr(0b110 + 0o56) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(49) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(456 - 408) + chr(0b1001011 + 0o44) + '\x31' + chr(54) + chr(299 - 251), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9774 - 9663) + '\061' + chr(0b1101 + 0o43) + chr(2034 - 1982), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + chr(51) + '\064' + chr(0b110101 + 0o2), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3754 - 3643) + '\x32' + '\061' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1372 - 1322) + chr(0b10111 + 0o37) + '\062', 43521 - 43513), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + chr(0b10 + 0o57) + chr(1299 - 1251), ord("\x08")), ehT0Px3KOsy9(chr(2148 - 2100) + chr(111) + chr(0b110010) + chr(1946 - 1897) + chr(2427 - 2373), 0o10), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(111) + chr(0b10101 + 0o36) + '\x37' + chr(0b1 + 0o60), 0o10), ehT0Px3KOsy9('\060' + chr(6634 - 6523) + '\x31' + chr(0b101111 + 0o10) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(111) + chr(0b1010 + 0o51) + chr(0b110111) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(1170 - 1117) + '\x34', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\067' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(116 - 66) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + '\x31' + '\063' + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\x34', 16266 - 16258), ehT0Px3KOsy9(chr(48) + chr(0b111010 + 0o65) + chr(51) + chr(2408 - 2357) + chr(0b110000), 47102 - 47094), ehT0Px3KOsy9('\060' + '\157' + chr(0b11011 + 0o26) + chr(2595 - 2543) + chr(0b10111 + 0o37), 49482 - 49474), ehT0Px3KOsy9('\x30' + chr(4850 - 4739) + chr(0b100101 + 0o16) + chr(0b110100) + chr(0b110 + 0o57), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(805 - 755), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4900 - 4789) + '\062' + chr(2188 - 2136) + chr(1936 - 1886), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(870 - 759) + '\x35' + chr(0b10011 + 0o35), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xde'), '\x64' + chr(8108 - 8007) + '\x63' + chr(0b10010 + 0o135) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(2109 - 1992) + '\x74' + chr(0b1100110) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def uJ0q9cG5ZOR3(oVre8I6UXc3b, K3J4ZwSlE0sT): if K3J4ZwSlE0sT in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5\x9d}\x90\xfc\x96\xa1\x9f\xb8\xa3\x07\x9f'), '\144' + chr(7760 - 7659) + '\x63' + '\157' + chr(0b1100100) + chr(1214 - 1113))(chr(0b1010010 + 0o43) + chr(116) + chr(0b1100110) + chr(875 - 830) + chr(0b111000))): raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\xc9k\x81\xa9\x8d\xc3\xce\x8f\x84\x0c\x80*'), chr(0b110010 + 0o62) + '\145' + chr(99) + chr(8131 - 8020) + chr(100) + '\x65')(chr(0b1010100 + 0o41) + chr(0b11101 + 0o127) + chr(102) + chr(0b101101) + chr(56))) xafqLlk3kkUe(oVre8I6UXc3b._vertices, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85\xe6)\x84\xf5\x96\xa4\x9e\xad\xa2-\xc7'), '\144' + '\x65' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(1383 - 1327)))(K3J4ZwSlE0sT) oVre8I6UXc3b.TacNll1EFRrd[K3J4ZwSlE0sT] = MVEN8G6CxlvR() oVre8I6UXc3b.TcJ6DOyGRFfq[K3J4ZwSlE0sT] = MVEN8G6CxlvR()
pypa/pipenv
pipenv/vendor/resolvelib/structs.py
DirectedGraph.remove
def remove(self, key): """Remove a vertex from the graph, disconnecting all edges from/to it. """ self._vertices.remove(key) for f in self._forwards.pop(key): self._backwards[f].remove(key) for t in self._backwards.pop(key): self._forwards[t].remove(key)
python
def remove(self, key): """Remove a vertex from the graph, disconnecting all edges from/to it. """ self._vertices.remove(key) for f in self._forwards.pop(key): self._backwards[f].remove(key) for t in self._backwards.pop(key): self._forwards[t].remove(key)
[ "def", "remove", "(", "self", ",", "key", ")", ":", "self", ".", "_vertices", ".", "remove", "(", "key", ")", "for", "f", "in", "self", ".", "_forwards", ".", "pop", "(", "key", ")", ":", "self", ".", "_backwards", "[", "f", "]", ".", "remove", "(", "key", ")", "for", "t", "in", "self", ".", "_backwards", ".", "pop", "(", "key", ")", ":", "self", ".", "_forwards", "[", "t", "]", ".", "remove", "(", "key", ")" ]
Remove a vertex from the graph, disconnecting all edges from/to it.
[ "Remove", "a", "vertex", "from", "the", "graph", "disconnecting", "all", "edges", "from", "/", "to", "it", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/resolvelib/structs.py#L36-L43
train
Removes a vertex from the graph disconnecting all edges from it.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0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bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(8370 - 8259) + '\061' + chr(0b11110 + 0o27) + '\x35', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1101111) + chr(0b110001) + '\x32' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b10010 + 0o135) + '\x35' + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11 + 0o56) + chr(0b100011 + 0o23) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + '\x31' + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(4052 - 3941) + chr(0b110011) + chr(891 - 842), ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + chr(51) + '\x37' + chr(0b1111 + 0o44), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(48) + chr(0b1110 + 0o46), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + '\x30' + chr(0b1110 + 0o45), 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\x6f' + chr(0b110010) + chr(0b101010 + 0o7) + chr(50), 0b1000), ehT0Px3KOsy9(chr(1059 - 1011) + chr(0b100101 + 0o112) + chr(2579 - 2528) + chr(0b110100) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\065' + chr(0b110011 + 0o4), 8), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(0b1101 + 0o45) + '\060', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10 + 0o63), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(51) + '\064' + '\x33', 0o10), ehT0Px3KOsy9(chr(1970 - 1922) + chr(111) + '\062' + chr(0b110011) + '\x31', 52210 - 52202), ehT0Px3KOsy9(chr(0b110000) + chr(0b11110 + 0o121) + '\063' + chr(0b101000 + 0o15) + chr(1184 - 1129), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000100 + 0o53) + '\x33' + '\060' + chr(167 - 117), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110 + 0o56) + chr(2305 - 2251), 18169 - 18161), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b111 + 0o54) + chr(0b101100 + 0o6) + chr(0b100010 + 0o17), ord("\x08")), ehT0Px3KOsy9(chr(193 - 145) + chr(111) + chr(0b110010) + chr(51) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b110110 + 0o71) + '\062' + chr(0b11011 + 0o33) + '\x33', 38964 - 38956), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1100000 + 0o17) + '\063' + '\x31' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110100) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + '\063' + chr(0b1111 + 0o42) + '\x32', 0b1000), ehT0Px3KOsy9(chr(881 - 833) + chr(111) + chr(0b100000 + 0o23) + '\065' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + '\x35' + chr(293 - 241), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000101 + 0o52) + chr(50) + chr(51) + '\063', 28692 - 28684), ehT0Px3KOsy9(chr(48) + chr(0b1001111 + 0o40) + chr(0b110001 + 0o1) + '\x30' + chr(0b10101 + 0o35), 0b1000), ehT0Px3KOsy9('\060' + chr(933 - 822) + '\062' + chr(53) + chr(0b110011), 28656 - 28648), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(117 - 6) + chr(0b1001 + 0o52) + chr(423 - 374), 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b10000 + 0o41) + chr(0b1100 + 0o53) + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b110100 + 0o73) + chr(55) + chr(0b110001), 29738 - 29730), ehT0Px3KOsy9('\x30' + chr(2648 - 2537) + chr(0b110010) + chr(2661 - 2607) + chr(0b1001 + 0o47), 0b1000), ehT0Px3KOsy9(chr(1546 - 1498) + chr(111) + chr(0b10100 + 0o37) + chr(48) + '\x31', 26984 - 26976), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2107 - 2056) + '\065' + chr(49), 45756 - 45748), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + chr(48) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(1336 - 1288) + chr(0b10000 + 0o137) + chr(0b110010) + chr(0b101111 + 0o4) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(689 - 578) + '\x35' + chr(52), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(583 - 535) + chr(111) + '\x35' + chr(0b1 + 0o57), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'C'), chr(100) + chr(8507 - 8406) + chr(0b10011 + 0o120) + chr(0b1010100 + 0o33) + chr(100) + chr(101))(chr(117) + chr(116) + chr(0b1000110 + 0o40) + chr(0b101101) + chr(0b11100 + 0o34)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def VyFz6vG9R56f(oVre8I6UXc3b, K3J4ZwSlE0sT): xafqLlk3kkUe(oVre8I6UXc3b._vertices, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1ft:@\x01)'), chr(9854 - 9754) + '\x65' + chr(0b1001001 + 0o32) + '\x6f' + '\144' + '\145')(chr(0b1100110 + 0o17) + chr(116) + chr(102) + '\055' + '\070'))(K3J4ZwSlE0sT) for EGyt1xfPT1P6 in xafqLlk3kkUe(oVre8I6UXc3b._forwards, xafqLlk3kkUe(SXOLrMavuUCe(b"\x1d~'"), '\x64' + '\x65' + '\143' + chr(8725 - 8614) + chr(100) + '\145')('\165' + chr(0b1110100) + '\146' + chr(1357 - 1312) + '\070'))(K3J4ZwSlE0sT): xafqLlk3kkUe(oVre8I6UXc3b._backwards[EGyt1xfPT1P6], xafqLlk3kkUe(SXOLrMavuUCe(b'\x1ft:@\x01)'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + chr(6984 - 6883))(chr(13482 - 13365) + chr(0b11 + 0o161) + chr(9215 - 9113) + '\055' + '\070'))(K3J4ZwSlE0sT) for YeT3l7JgTbWR in xafqLlk3kkUe(oVre8I6UXc3b._backwards, xafqLlk3kkUe(SXOLrMavuUCe(b"\x1d~'"), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b1010011 + 0o21) + '\145')(chr(0b101000 + 0o115) + chr(116) + chr(9602 - 9500) + '\055' + '\x38'))(K3J4ZwSlE0sT): xafqLlk3kkUe(oVre8I6UXc3b._forwards[YeT3l7JgTbWR], xafqLlk3kkUe(SXOLrMavuUCe(b'\x1ft:@\x01)'), '\144' + chr(9303 - 9202) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + '\x74' + chr(1927 - 1825) + chr(45) + '\070'))(K3J4ZwSlE0sT)
pypa/pipenv
pipenv/vendor/resolvelib/structs.py
DirectedGraph.connect
def connect(self, f, t): """Connect two existing vertices. Nothing happens if the vertices are already connected. """ if t not in self._vertices: raise KeyError(t) self._forwards[f].add(t) self._backwards[t].add(f)
python
def connect(self, f, t): """Connect two existing vertices. Nothing happens if the vertices are already connected. """ if t not in self._vertices: raise KeyError(t) self._forwards[f].add(t) self._backwards[t].add(f)
[ "def", "connect", "(", "self", ",", "f", ",", "t", ")", ":", "if", "t", "not", "in", "self", ".", "_vertices", ":", "raise", "KeyError", "(", "t", ")", "self", ".", "_forwards", "[", "f", "]", ".", "add", "(", "t", ")", "self", ".", "_backwards", "[", "t", "]", ".", "add", "(", "f", ")" ]
Connect two existing vertices. Nothing happens if the vertices are already connected.
[ "Connect", "two", "existing", "vertices", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/resolvelib/structs.py#L48-L56
train
Connect two existing vertices.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIF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Osy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\157' + '\x36' + chr(652 - 604), 0b1000), ehT0Px3KOsy9('\x30' + chr(1630 - 1519) + chr(0b110011) + chr(0b111 + 0o56) + chr(1501 - 1453), 14278 - 14270), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + chr(0b110001) + chr(0b110011) + chr(48), 45412 - 45404), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\x6f' + chr(0b101000 + 0o13) + '\x30' + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(569 - 521) + chr(111) + '\063' + chr(0b110001) + chr(1869 - 1817), 65520 - 65512), ehT0Px3KOsy9(chr(48) + chr(11196 - 11085) + chr(0b11000 + 0o33) + '\061' + chr(0b10000 + 0o41), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(0b110001) + '\063' + chr(0b110100), 53455 - 53447), ehT0Px3KOsy9(chr(263 - 215) + '\x6f' + '\062' + chr(51) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + '\061' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + '\064', 0b1000), ehT0Px3KOsy9(chr(771 - 723) + chr(0b1000100 + 0o53) + chr(0b100011 + 0o20) + chr(0b1110 + 0o51), 47089 - 47081), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(868 - 818) + chr(0b110010) + chr(0b1101 + 0o47), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(693 - 582) + '\061' + chr(1407 - 1359) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111100 + 0o63) + chr(357 - 306) + '\x37' + '\x37', 4547 - 4539), ehT0Px3KOsy9('\x30' + chr(2953 - 2842) + chr(51) + chr(0b1011 + 0o46) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b11011 + 0o124) + chr(49) + '\x34' + chr(0b1111 + 0o50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(2158 - 2104) + chr(1224 - 1170), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b101010 + 0o105) + '\x33' + chr(55) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\067' + chr(1203 - 1151), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1501 - 1451) + chr(0b0 + 0o64) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(1338 - 1290) + chr(111) + '\062' + chr(0b100 + 0o57) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + chr(0b110100 + 0o73) + chr(2216 - 2167) + chr(55) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\x6f' + chr(50) + chr(2060 - 2010) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(2190 - 2079) + chr(0b110001) + '\x31' + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(4286 - 4175) + chr(49) + chr(0b110001) + chr(53), 8), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\x31' + chr(0b110100) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x36' + '\x36', 8), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1000001 + 0o56) + chr(0b1010 + 0o52) + '\x33', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b101 + 0o57) + chr(351 - 301), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\157' + chr(1440 - 1391) + chr(0b110000 + 0o0) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(0b111111 + 0o60) + chr(2321 - 2272) + '\061' + chr(415 - 361), ord("\x08")), ehT0Px3KOsy9(chr(1802 - 1754) + '\157' + '\x31' + chr(371 - 316), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + chr(2578 - 2523) + chr(0b1101 + 0o51), 63496 - 63488), ehT0Px3KOsy9(chr(99 - 51) + '\x6f' + '\x36' + chr(0b0 + 0o65), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(54) + chr(0b11011 + 0o32), 17006 - 16998), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + '\x35' + '\x34', 38433 - 38425), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1101111) + chr(0b110111) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(52) + chr(0b1011 + 0o46), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + '\063' + '\x31', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(2293 - 2243) + chr(0b110000) + '\065', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b110000 + 0o77) + chr(53) + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x1e'), chr(0b10001 + 0o123) + chr(9641 - 9540) + '\x63' + chr(0b111100 + 0o63) + chr(0b1100100) + chr(101))(chr(10253 - 10136) + chr(116) + chr(0b10100 + 0o122) + chr(0b1111 + 0o36) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def eg1Ei2W_dvMC(oVre8I6UXc3b, EGyt1xfPT1P6, YeT3l7JgTbWR): if YeT3l7JgTbWR not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'e\xd9<\xa2\xfc\xaa\x1e\xa8\x03Zg\xff'), chr(100) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(1961 - 1905))): raise RQ6CSRrFArYB(YeT3l7JgTbWR) xafqLlk3kkUe(oVre8I6UXc3b._forwards[EGyt1xfPT1P6], xafqLlk3kkUe(SXOLrMavuUCe(b'E\xa2h\xb6\xf5\xaa\x1b\xa9\x16[M\xa7'), '\144' + chr(101) + chr(0b111000 + 0o53) + chr(10934 - 10823) + chr(910 - 810) + chr(0b1100101))(chr(117) + '\164' + chr(0b1000011 + 0o43) + chr(0b1011 + 0o42) + chr(0b11110 + 0o32)))(YeT3l7JgTbWR) xafqLlk3kkUe(oVre8I6UXc3b._backwards[YeT3l7JgTbWR], xafqLlk3kkUe(SXOLrMavuUCe(b'E\xa2h\xb6\xf5\xaa\x1b\xa9\x16[M\xa7'), chr(9009 - 8909) + '\x65' + chr(0b1010001 + 0o22) + chr(0b1011 + 0o144) + '\144' + chr(0b1100101))(chr(0b1000110 + 0o57) + '\164' + chr(0b1000000 + 0o46) + '\055' + chr(0b10001 + 0o47)))(EGyt1xfPT1P6)
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
_const_compare_digest_backport
def _const_compare_digest_backport(a, b): """ Compare two digests of equal length in constant time. The digests must be of type str/bytes. Returns True if the digests match, and False otherwise. """ result = abs(len(a) - len(b)) for l, r in zip(bytearray(a), bytearray(b)): result |= l ^ r return result == 0
python
def _const_compare_digest_backport(a, b): """ Compare two digests of equal length in constant time. The digests must be of type str/bytes. Returns True if the digests match, and False otherwise. """ result = abs(len(a) - len(b)) for l, r in zip(bytearray(a), bytearray(b)): result |= l ^ r return result == 0
[ "def", "_const_compare_digest_backport", "(", "a", ",", "b", ")", ":", "result", "=", "abs", "(", "len", "(", "a", ")", "-", "len", "(", "b", ")", ")", "for", "l", ",", "r", "in", "zip", "(", "bytearray", "(", "a", ")", ",", "bytearray", "(", "b", ")", ")", ":", "result", "|=", "l", "^", "r", "return", "result", "==", "0" ]
Compare two digests of equal length in constant time. The digests must be of type str/bytes. Returns True if the digests match, and False otherwise.
[ "Compare", "two", "digests", "of", "equal", "length", "in", "constant", "time", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L27-L37
train
Compare two digests of equal length in constant time.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRr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Ej,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\x33' + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + '\x36' + chr(55), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(48) + '\x36', 13851 - 13843), ehT0Px3KOsy9('\060' + chr(0b111110 + 0o61) + '\x31' + '\064' + '\067', 32396 - 32388), ehT0Px3KOsy9(chr(2193 - 2145) + chr(0b1101111) + '\x32' + '\066' + chr(2210 - 2162), 0o10), ehT0Px3KOsy9(chr(924 - 876) + chr(0b1000000 + 0o57) + '\x33' + '\x33' + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(2367 - 2317) + '\064' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11 + 0o154) + '\061' + chr(0b110000) + chr(52), 0o10), ehT0Px3KOsy9('\060' + chr(7542 - 7431) + chr(1407 - 1356) + '\065' + '\x35', 0o10), ehT0Px3KOsy9('\060' + chr(4270 - 4159) + '\062' + chr(0b10110 + 0o35) + chr(2301 - 2250), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(2620 - 2568) + chr(2249 - 2197), 52402 - 52394), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1000 + 0o147) + chr(0b11101 + 0o25) + chr(2173 - 2119) + chr(1033 - 984), 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\x6f' + '\066' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b1111 + 0o42) + '\x35' + chr(0b100101 + 0o21), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11110 + 0o23) + chr(0b110011) + chr(1586 - 1533), 64980 - 64972), ehT0Px3KOsy9(chr(1636 - 1588) + chr(0b1101111) + chr(0b110010) + chr(54) + chr(0b11001 + 0o35), 43268 - 43260), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x36' + chr(0b11110 + 0o26), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\x32' + chr(52) + chr(0b100011 + 0o24), 0o10), ehT0Px3KOsy9('\x30' + chr(4874 - 4763) + chr(0b110001) + '\x32' + chr(0b10100 + 0o43), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(1009 - 959) + chr(51) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(3562 - 3451) + '\x33' + chr(0b110101) + chr(0b100 + 0o61), 8), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + chr(0b110011) + chr(0b10110 + 0o36) + chr(49), 0b1000), ehT0Px3KOsy9(chr(368 - 320) + '\157' + '\062' + chr(0b101000 + 0o13) + chr(1470 - 1418), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101111 + 0o100) + '\063' + '\x37' + chr(1910 - 1858), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110000 + 0o4) + chr(0b100010 + 0o23), 63074 - 63066), ehT0Px3KOsy9('\x30' + chr(0b1101101 + 0o2) + chr(2268 - 2219) + chr(2077 - 2023) + chr(1779 - 1724), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101110 + 0o1) + chr(51) + chr(0b110111) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + chr(381 - 327) + chr(54), 42639 - 42631), ehT0Px3KOsy9(chr(1721 - 1673) + chr(2904 - 2793) + chr(0b110110) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + '\x32' + chr(0b1000 + 0o57) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + chr(4762 - 4651) + chr(0b11 + 0o63) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111 + 0o0) + '\063' + chr(55) + chr(53), 8), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + chr(0b110010) + chr(51) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(685 - 634), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110000 + 0o2) + '\060' + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(5923 - 5812) + chr(1726 - 1675) + '\x34' + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(1540 - 1491) + chr(0b101000 + 0o10) + '\066', 8), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(2434 - 2383) + chr(0b110101 + 0o2), 62825 - 62817)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(0b1101111) + chr(0b101111 + 0o6) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4'), chr(6734 - 6634) + chr(0b1010111 + 0o16) + chr(0b1010101 + 0o16) + '\x6f' + chr(100) + chr(0b111 + 0o136))(chr(10940 - 10823) + '\x74' + chr(0b1001001 + 0o35) + '\055' + chr(0b100000 + 0o30)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def S2u1qMTjCjUQ(XPh1qbAgrPgG, wmN3dvez4qzC): ShZmEKfTkAOZ = Lt3jp3Wjtj_1(c2A0yzQpDQB3(XPh1qbAgrPgG) - c2A0yzQpDQB3(wmN3dvez4qzC)) for (aLoH_Mt0dzwO, JWG5qApaeJkp) in pZ0NK2y6HRbn(QC9iu2kLpS8s(XPh1qbAgrPgG), QC9iu2kLpS8s(wmN3dvez4qzC)): ShZmEKfTkAOZ |= aLoH_Mt0dzwO ^ JWG5qApaeJkp return ShZmEKfTkAOZ == ehT0Px3KOsy9('\060' + chr(111) + chr(0b110000), 0o10)
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
assert_fingerprint
def assert_fingerprint(cert, fingerprint): """ Checks if given fingerprint matches the supplied certificate. :param cert: Certificate as bytes object. :param fingerprint: Fingerprint as string of hexdigits, can be interspersed by colons. """ fingerprint = fingerprint.replace(':', '').lower() digest_length = len(fingerprint) hashfunc = HASHFUNC_MAP.get(digest_length) if not hashfunc: raise SSLError( 'Fingerprint of invalid length: {0}'.format(fingerprint)) # We need encode() here for py32; works on py2 and p33. fingerprint_bytes = unhexlify(fingerprint.encode()) cert_digest = hashfunc(cert).digest() if not _const_compare_digest(cert_digest, fingerprint_bytes): raise SSLError('Fingerprints did not match. Expected "{0}", got "{1}".' .format(fingerprint, hexlify(cert_digest)))
python
def assert_fingerprint(cert, fingerprint): """ Checks if given fingerprint matches the supplied certificate. :param cert: Certificate as bytes object. :param fingerprint: Fingerprint as string of hexdigits, can be interspersed by colons. """ fingerprint = fingerprint.replace(':', '').lower() digest_length = len(fingerprint) hashfunc = HASHFUNC_MAP.get(digest_length) if not hashfunc: raise SSLError( 'Fingerprint of invalid length: {0}'.format(fingerprint)) # We need encode() here for py32; works on py2 and p33. fingerprint_bytes = unhexlify(fingerprint.encode()) cert_digest = hashfunc(cert).digest() if not _const_compare_digest(cert_digest, fingerprint_bytes): raise SSLError('Fingerprints did not match. Expected "{0}", got "{1}".' .format(fingerprint, hexlify(cert_digest)))
[ "def", "assert_fingerprint", "(", "cert", ",", "fingerprint", ")", ":", "fingerprint", "=", "fingerprint", ".", "replace", "(", "':'", ",", "''", ")", ".", "lower", "(", ")", "digest_length", "=", "len", "(", "fingerprint", ")", "hashfunc", "=", "HASHFUNC_MAP", ".", "get", "(", "digest_length", ")", "if", "not", "hashfunc", ":", "raise", "SSLError", "(", "'Fingerprint of invalid length: {0}'", ".", "format", "(", "fingerprint", ")", ")", "# We need encode() here for py32; works on py2 and p33.", "fingerprint_bytes", "=", "unhexlify", "(", "fingerprint", ".", "encode", "(", ")", ")", "cert_digest", "=", "hashfunc", "(", "cert", ")", ".", "digest", "(", ")", "if", "not", "_const_compare_digest", "(", "cert_digest", ",", "fingerprint_bytes", ")", ":", "raise", "SSLError", "(", "'Fingerprints did not match. Expected \"{0}\", got \"{1}\".'", ".", "format", "(", "fingerprint", ",", "hexlify", "(", "cert_digest", ")", ")", ")" ]
Checks if given fingerprint matches the supplied certificate. :param cert: Certificate as bytes object. :param fingerprint: Fingerprint as string of hexdigits, can be interspersed by colons.
[ "Checks", "if", "given", "fingerprint", "matches", "the", "supplied", "certificate", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L163-L187
train
Checks if given fingerprint matches the supplied certificate.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,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xp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(55) + chr(1766 - 1715), ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\x6f' + '\x32' + '\062' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(113 - 60) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + '\x30' + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(998 - 948), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(55) + chr(0b1010 + 0o53), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(0b110010) + chr(1329 - 1281), 0o10), ehT0Px3KOsy9(chr(1382 - 1334) + chr(11244 - 11133) + chr(50) + '\x33' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + '\x33' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + '\065' + chr(0b110111), 26373 - 26365), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + '\x32' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100010 + 0o15) + chr(50) + chr(2199 - 2151) + chr(2355 - 2304), 8), ehT0Px3KOsy9(chr(132 - 84) + chr(0b1010110 + 0o31) + '\x32' + chr(0b100100 + 0o17) + chr(2416 - 2363), 0b1000), ehT0Px3KOsy9(chr(1527 - 1479) + '\157' + '\x33' + '\060' + '\x36', 0o10), ehT0Px3KOsy9('\x30' + chr(0b10010 + 0o135) + chr(1591 - 1540) + chr(804 - 751) + chr(0b11111 + 0o21), 4800 - 4792), ehT0Px3KOsy9('\x30' + chr(0b1101010 + 0o5) + chr(0b11010 + 0o30) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1554 - 1505) + chr(49) + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\x36' + chr(54 - 5), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b1011 + 0o47) + '\x34' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(0b110100) + chr(0b100010 + 0o24), 0o10), ehT0Px3KOsy9('\x30' + chr(2076 - 1965) + chr(49) + chr(0b100110 + 0o16) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1 + 0o156) + '\061' + chr(0b110000) + '\x30', 10311 - 10303), ehT0Px3KOsy9(chr(54 - 6) + chr(0b1101100 + 0o3) + '\061' + '\062' + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(2875 - 2764) + '\061' + chr(0b110101), 27134 - 27126), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + '\060' + '\x34', 38082 - 38074), ehT0Px3KOsy9(chr(1191 - 1143) + '\x6f' + '\x33' + '\x35' + '\x37', 8), ehT0Px3KOsy9('\060' + '\157' + chr(1798 - 1748) + chr(0b10011 + 0o35), 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(0b110000 + 0o77) + chr(1162 - 1112) + '\060' + '\x33', 8), ehT0Px3KOsy9(chr(0b110000) + chr(10357 - 10246) + '\061' + '\x32' + chr(0b110101), 61491 - 61483), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b101011 + 0o14) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(1182 - 1071) + chr(93 - 41) + chr(157 - 108), 0b1000), ehT0Px3KOsy9(chr(1141 - 1093) + chr(0b100110 + 0o111) + chr(1824 - 1770) + chr(1714 - 1661), 27453 - 27445), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(49) + chr(0b100001 + 0o24), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100001 + 0o116) + chr(1452 - 1403) + chr(0b110101), 8), ehT0Px3KOsy9(chr(48) + chr(0b10111 + 0o130) + chr(0b11111 + 0o23) + '\065' + chr(51), 0b1000), ehT0Px3KOsy9('\x30' + chr(6134 - 6023) + '\064' + chr(1436 - 1384), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b110011 + 0o74) + chr(0b110001) + chr(0b110001) + '\063', 0b1000), ehT0Px3KOsy9(chr(1487 - 1439) + chr(111) + '\x32' + chr(0b100100 + 0o15) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(53) + chr(2094 - 2041), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\157' + chr(52) + '\063', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\157' + chr(2083 - 2030) + chr(1092 - 1044), 65363 - 65355)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x15'), chr(0b110101 + 0o57) + chr(0b1100101) + chr(99) + chr(10100 - 9989) + chr(0b1000100 + 0o40) + '\x65')('\165' + '\x74' + '\x66' + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def i7en6hZKn15x(PphJ3b3jajcU, pwXM4mdlbDjX): pwXM4mdlbDjX = pwXM4mdlbDjX.replace(xafqLlk3kkUe(SXOLrMavuUCe(b'\x01'), chr(100) + chr(9788 - 9687) + chr(341 - 242) + '\157' + chr(0b1100100) + chr(101))(chr(11064 - 10947) + '\x74' + '\146' + '\055' + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + chr(0b111110 + 0o47) + chr(99) + chr(111) + chr(0b111000 + 0o54) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + '\070')).lower() rojpBpyc1FhH = c2A0yzQpDQB3(pwXM4mdlbDjX) m8CJHgxW0SrR = K8nIGMS6ZaFY.get(rojpBpyc1FhH) if not m8CJHgxW0SrR: raise FMwcwsD_Ix7p(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'}\xfe\xc6\xe4g\xcf\xa0\xe83\x81`\xa3\xf2\xa0\xc8z \x07\xc0\xca\x08$qa!\x81w\xf7=\x07\x01N\xfdp'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1000111 + 0o35) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'm\xa3\xda\xecJ\xdc\x83\xa9\n\x9fq\xe9'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(0b1011010 + 0o13))(chr(7176 - 7059) + '\164' + '\x66' + chr(45) + chr(2734 - 2678)))(pwXM4mdlbDjX)) uejZ3rKihK6_ = uLbX6Nm7RWSz(pwXM4mdlbDjX.encode()) I04pG85yJAY1 = m8CJHgxW0SrR(PphJ3b3jajcU).digest() if not p1_3SLFnZw4N(I04pG85yJAY1, uejZ3rKihK6_): raise FMwcwsD_Ix7p(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b"}\xfe\xc6\xe4g\xcf\xa0\xe83\x81`\xf0\xbd\xa2\x81wn\x1f\xce\xd2A-0y'\x87>\xa3\x10EQP\xaey\xce@k\xac\x96\x13F\xb5\x84\xa3e\xd2\xa4\xbax\x94%\xfe\xbf\xe8"), chr(9483 - 9383) + '\145' + '\x63' + '\157' + '\x64' + chr(101))(chr(0b10001 + 0o144) + chr(0b1101111 + 0o5) + '\x66' + chr(206 - 161) + chr(0b0 + 0o70)), xafqLlk3kkUe(SXOLrMavuUCe(b'm\xa3\xda\xecJ\xdc\x83\xa9\n\x9fq\xe9'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(766 - 721) + chr(112 - 56)))(pwXM4mdlbDjX, QhHWLqAvcMkW(I04pG85yJAY1)))
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
resolve_cert_reqs
def resolve_cert_reqs(candidate): """ Resolves the argument to a numeric constant, which can be passed to the wrap_socket function/method from the ssl module. Defaults to :data:`ssl.CERT_NONE`. If given a string it is assumed to be the name of the constant in the :mod:`ssl` module or its abbreviation. (So you can specify `REQUIRED` instead of `CERT_REQUIRED`. If it's neither `None` nor a string we assume it is already the numeric constant which can directly be passed to wrap_socket. """ if candidate is None: return CERT_NONE if isinstance(candidate, str): res = getattr(ssl, candidate, None) if res is None: res = getattr(ssl, 'CERT_' + candidate) return res return candidate
python
def resolve_cert_reqs(candidate): """ Resolves the argument to a numeric constant, which can be passed to the wrap_socket function/method from the ssl module. Defaults to :data:`ssl.CERT_NONE`. If given a string it is assumed to be the name of the constant in the :mod:`ssl` module or its abbreviation. (So you can specify `REQUIRED` instead of `CERT_REQUIRED`. If it's neither `None` nor a string we assume it is already the numeric constant which can directly be passed to wrap_socket. """ if candidate is None: return CERT_NONE if isinstance(candidate, str): res = getattr(ssl, candidate, None) if res is None: res = getattr(ssl, 'CERT_' + candidate) return res return candidate
[ "def", "resolve_cert_reqs", "(", "candidate", ")", ":", "if", "candidate", "is", "None", ":", "return", "CERT_NONE", "if", "isinstance", "(", "candidate", ",", "str", ")", ":", "res", "=", "getattr", "(", "ssl", ",", "candidate", ",", "None", ")", "if", "res", "is", "None", ":", "res", "=", "getattr", "(", "ssl", ",", "'CERT_'", "+", "candidate", ")", "return", "res", "return", "candidate" ]
Resolves the argument to a numeric constant, which can be passed to the wrap_socket function/method from the ssl module. Defaults to :data:`ssl.CERT_NONE`. If given a string it is assumed to be the name of the constant in the :mod:`ssl` module or its abbreviation. (So you can specify `REQUIRED` instead of `CERT_REQUIRED`. If it's neither `None` nor a string we assume it is already the numeric constant which can directly be passed to wrap_socket.
[ "Resolves", "the", "argument", "to", "a", "numeric", "constant", "which", "can", "be", "passed", "to", "the", "wrap_socket", "function", "/", "method", "from", "the", "ssl", "module", ".", "Defaults", "to", ":", "data", ":", "ssl", ".", "CERT_NONE", ".", "If", "given", "a", "string", "it", "is", "assumed", "to", "be", "the", "name", "of", "the", "constant", "in", "the", ":", "mod", ":", "ssl", "module", "or", "its", "abbreviation", ".", "(", "So", "you", "can", "specify", "REQUIRED", "instead", "of", "CERT_REQUIRED", ".", "If", "it", "s", "neither", "None", "nor", "a", "string", "we", "assume", "it", "is", "already", "the", "numeric", "constant", "which", "can", "directly", "be", "passed", "to", "wrap_socket", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L190-L210
train
Resolves the argument to a numeric constant which can be passed to the ssl module.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqD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7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(11745 - 11634) + chr(0b10011 + 0o36) + chr(0b110010) + chr(2040 - 1985), 11479 - 11471), ehT0Px3KOsy9('\060' + chr(0b111011 + 0o64) + chr(0b1101 + 0o45) + chr(0b100100 + 0o21) + chr(0b11101 + 0o25), 40740 - 40732), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10001 + 0o45) + chr(266 - 211), 23488 - 23480), ehT0Px3KOsy9(chr(48) + chr(0b10000 + 0o137) + chr(51) + '\060' + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(52), 47882 - 47874), ehT0Px3KOsy9(chr(48) + chr(0b111100 + 0o63) + chr(0b101111 + 0o4) + chr(0b110101) + '\066', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(1016 - 962) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + '\x31', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(0b110010 + 0o0) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(5453 - 5342) + '\x32' + '\064' + chr(0b100001 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1001110 + 0o41) + '\063' + chr(0b110111) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(2560 - 2449) + chr(0b100 + 0o57) + chr(0b10100 + 0o41) + '\063', 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(3384 - 3273) + chr(0b10000 + 0o42) + chr(53) + chr(55), 0b1000), ehT0Px3KOsy9(chr(1972 - 1924) + chr(0b111 + 0o150) + chr(0b110010) + chr(693 - 645) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x36' + chr(555 - 504), ord("\x08")), ehT0Px3KOsy9(chr(1381 - 1333) + '\157' + chr(0b100110 + 0o13) + chr(0b110010) + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\067' + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(0b110110) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b101110 + 0o101) + '\x36' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011101 + 0o22) + '\x33' + chr(53) + chr(0b100000 + 0o23), 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b100110 + 0o14) + chr(0b110000) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(53), 40284 - 40276), ehT0Px3KOsy9(chr(0b110000) + chr(8277 - 8166) + chr(0b110110) + chr(0b101010 + 0o11), 8), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + chr(51) + chr(48) + chr(0b101100 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(1520 - 1472) + chr(8676 - 8565) + chr(49) + chr(0b101110 + 0o5) + chr(0b101001 + 0o10), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100111 + 0o10) + chr(51) + chr(52) + '\x34', 27603 - 27595), ehT0Px3KOsy9('\x30' + chr(111) + chr(418 - 369) + chr(0b110000 + 0o0) + chr(0b110011 + 0o1), ord("\x08")), ehT0Px3KOsy9(chr(1632 - 1584) + chr(0b1000101 + 0o52) + '\x32' + chr(0b110000) + '\x30', 0o10), ehT0Px3KOsy9(chr(1522 - 1474) + chr(0b11001 + 0o126) + chr(0b110011) + '\063' + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100 + 0o143) + '\x32' + chr(0b110101) + chr(2090 - 2041), 56074 - 56066), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(5019 - 4908) + '\062' + '\x30' + chr(1375 - 1327), 8), ehT0Px3KOsy9(chr(0b110000) + chr(6438 - 6327) + '\x33' + chr(53) + '\064', 53139 - 53131), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(11836 - 11725) + chr(2066 - 2015) + chr(0b100010 + 0o24) + chr(0b101 + 0o57), 0o10), ehT0Px3KOsy9(chr(2213 - 2165) + '\157' + '\x33' + chr(505 - 456), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + '\x36' + chr(1706 - 1655), 23677 - 23669), ehT0Px3KOsy9('\060' + chr(0b10110 + 0o131) + chr(1160 - 1109) + chr(0b110010 + 0o4) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(7497 - 7386) + chr(0b110010) + chr(0b100100 + 0o21) + chr(54), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + '\061' + chr(0b101111 + 0o5), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1000000 + 0o57) + '\x33' + chr(0b110000) + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(0b110001) + '\061', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1101111) + '\065' + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'y'), chr(100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(482 - 437) + chr(0b101011 + 0o15)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def O2m2VM9TW6vg(X3DOc7TuFLS2): if X3DOc7TuFLS2 is None: return XVGgbAfqqitH if PlSM16l2KDPD(X3DOc7TuFLS2, M8_cKLkHVB2V): MsbwfslwLjRO = xafqLlk3kkUe(ZFJIuNPZ1CKY, X3DOc7TuFLS2, None) if MsbwfslwLjRO is None: MsbwfslwLjRO = xafqLlk3kkUe(ZFJIuNPZ1CKY, xafqLlk3kkUe(SXOLrMavuUCe(b'\x14\xefe\x96S'), chr(0b1100100) + chr(101) + chr(6314 - 6215) + chr(1686 - 1575) + '\144' + chr(0b1011 + 0o132))(chr(0b1110101) + '\164' + '\x66' + '\055' + '\x38') + X3DOc7TuFLS2) return MsbwfslwLjRO return X3DOc7TuFLS2
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
resolve_ssl_version
def resolve_ssl_version(candidate): """ like resolve_cert_reqs """ if candidate is None: return PROTOCOL_SSLv23 if isinstance(candidate, str): res = getattr(ssl, candidate, None) if res is None: res = getattr(ssl, 'PROTOCOL_' + candidate) return res return candidate
python
def resolve_ssl_version(candidate): """ like resolve_cert_reqs """ if candidate is None: return PROTOCOL_SSLv23 if isinstance(candidate, str): res = getattr(ssl, candidate, None) if res is None: res = getattr(ssl, 'PROTOCOL_' + candidate) return res return candidate
[ "def", "resolve_ssl_version", "(", "candidate", ")", ":", "if", "candidate", "is", "None", ":", "return", "PROTOCOL_SSLv23", "if", "isinstance", "(", "candidate", ",", "str", ")", ":", "res", "=", "getattr", "(", "ssl", ",", "candidate", ",", "None", ")", "if", "res", "is", "None", ":", "res", "=", "getattr", "(", "ssl", ",", "'PROTOCOL_'", "+", "candidate", ")", "return", "res", "return", "candidate" ]
like resolve_cert_reqs
[ "like", "resolve_cert_reqs" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L213-L226
train
resolve_ssl_version returns the protocol version of the candidate
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5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ttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2044 - 1996) + '\157' + chr(0b100101 + 0o14) + chr(0b10 + 0o64) + chr(0b1111 + 0o47), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + '\062' + '\066' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b110111 + 0o70) + '\061' + chr(645 - 595), 0o10), ehT0Px3KOsy9('\060' + chr(4130 - 4019) + chr(49) + '\060' + chr(1776 - 1728), 0o10), ehT0Px3KOsy9('\x30' + chr(1832 - 1721) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(55) + '\x32', 59131 - 59123), ehT0Px3KOsy9('\060' + chr(8328 - 8217) + '\x33' + chr(0b110100 + 0o3) + chr(0b0 + 0o66), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000 + 0o147) + chr(1373 - 1322) + chr(248 - 199) + '\x32', 0b1000), ehT0Px3KOsy9(chr(1145 - 1097) + chr(0b1010000 + 0o37) + chr(200 - 150) + chr(488 - 433) + chr(2736 - 2683), 0o10), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(0b110001) + chr(0b110001) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1000100 + 0o53) + chr(50) + chr(0b10110 + 0o36) + '\061', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b10001 + 0o41) + '\x30' + chr(0b11000 + 0o32), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + chr(369 - 320) + chr(55) + chr(1912 - 1857), 0o10), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1100000 + 0o17) + chr(0b110010) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x33' + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100000 + 0o17) + '\x33' + chr(0b101111 + 0o2) + chr(52), 0b1000), ehT0Px3KOsy9('\060' + chr(0b11010 + 0o125) + chr(699 - 650) + chr(1660 - 1605) + chr(0b10100 + 0o41), 31677 - 31669), ehT0Px3KOsy9(chr(1122 - 1074) + chr(0b1101111) + chr(0b110001) + chr(0b10101 + 0o34) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101110 + 0o5) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + '\x6f' + '\061' + chr(55) + chr(0b110111), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + '\x35' + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(111) + chr(0b100010 + 0o20) + chr(0b1010 + 0o50) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + chr(0b110001) + chr(795 - 743) + chr(677 - 627), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101110 + 0o1) + '\x32' + chr(0b110111) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(884 - 836) + '\x6f' + chr(0b100001 + 0o20) + chr(0b110101) + chr(0b10010 + 0o40), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101001 + 0o106) + chr(0b110 + 0o61) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2087 - 2036), 8), ehT0Px3KOsy9(chr(788 - 740) + chr(111) + chr(50) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1000000 + 0o57) + chr(0b101011 + 0o7) + chr(0b1111 + 0o50), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101 + 0o142) + chr(613 - 564) + '\x34' + '\x34', 0o10), ehT0Px3KOsy9(chr(575 - 527) + chr(111) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b101101 + 0o102) + '\x31' + '\x37' + chr(0b110101), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1001 + 0o52) + chr(0b11000 + 0o31) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(0b110000 + 0o1) + chr(2304 - 2252), ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(3369 - 3258) + chr(0b110111) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(853 - 805) + '\x6f' + '\x33' + '\062', 0b1000), ehT0Px3KOsy9(chr(1919 - 1871) + chr(0b1101111) + '\063' + chr(2116 - 2063) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(2054 - 2005) + chr(55) + '\062', 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b100101 + 0o112) + chr(599 - 550) + '\063' + '\065', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(256 - 208) + '\157' + chr(0b110101) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'X'), chr(0b110101 + 0o57) + '\x65' + chr(99) + chr(0b1101111) + '\144' + chr(2790 - 2689))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(1931 - 1875)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _evlyRh2_UEQ(X3DOc7TuFLS2): if X3DOc7TuFLS2 is None: return eJszJQNs3kjl if PlSM16l2KDPD(X3DOc7TuFLS2, M8_cKLkHVB2V): MsbwfslwLjRO = xafqLlk3kkUe(ZFJIuNPZ1CKY, X3DOc7TuFLS2, None) if MsbwfslwLjRO is None: MsbwfslwLjRO = xafqLlk3kkUe(ZFJIuNPZ1CKY, xafqLlk3kkUe(SXOLrMavuUCe(b'&\xe3E\x14Iy\xb1\x86\xe2'), chr(2966 - 2866) + '\145' + chr(99) + chr(111) + '\144' + chr(101))(chr(0b1110101) + '\x74' + chr(4023 - 3921) + chr(0b101101) + chr(56)) + X3DOc7TuFLS2) return MsbwfslwLjRO return X3DOc7TuFLS2
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
ssl_wrap_socket
def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None, ca_certs=None, server_hostname=None, ssl_version=None, ciphers=None, ssl_context=None, ca_cert_dir=None): """ All arguments except for server_hostname, ssl_context, and ca_cert_dir have the same meaning as they do when using :func:`ssl.wrap_socket`. :param server_hostname: When SNI is supported, the expected hostname of the certificate :param ssl_context: A pre-made :class:`SSLContext` object. If none is provided, one will be created using :func:`create_urllib3_context`. :param ciphers: A string of ciphers we wish the client to support. :param ca_cert_dir: A directory containing CA certificates in multiple separate files, as supported by OpenSSL's -CApath flag or the capath argument to SSLContext.load_verify_locations(). """ context = ssl_context if context is None: # Note: This branch of code and all the variables in it are no longer # used by urllib3 itself. We should consider deprecating and removing # this code. context = create_urllib3_context(ssl_version, cert_reqs, ciphers=ciphers) if ca_certs or ca_cert_dir: try: context.load_verify_locations(ca_certs, ca_cert_dir) except IOError as e: # Platform-specific: Python 2.7 raise SSLError(e) # Py33 raises FileNotFoundError which subclasses OSError # These are not equivalent unless we check the errno attribute except OSError as e: # Platform-specific: Python 3.3 and beyond if e.errno == errno.ENOENT: raise SSLError(e) raise elif getattr(context, 'load_default_certs', None) is not None: # try to load OS default certs; works well on Windows (require Python3.4+) context.load_default_certs() if certfile: context.load_cert_chain(certfile, keyfile) # If we detect server_hostname is an IP address then the SNI # extension should not be used according to RFC3546 Section 3.1 # We shouldn't warn the user if SNI isn't available but we would # not be using SNI anyways due to IP address for server_hostname. if ((server_hostname is not None and not is_ipaddress(server_hostname)) or IS_SECURETRANSPORT): if HAS_SNI and server_hostname is not None: return context.wrap_socket(sock, server_hostname=server_hostname) warnings.warn( 'An HTTPS request has been made, but the SNI (Server Name ' 'Indication) extension to TLS is not available on this platform. ' 'This may cause the server to present an incorrect TLS ' 'certificate, which can cause validation failures. You can upgrade to ' 'a newer version of Python to solve this. For more information, see ' 'https://urllib3.readthedocs.io/en/latest/advanced-usage.html' '#ssl-warnings', SNIMissingWarning ) return context.wrap_socket(sock)
python
def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None, ca_certs=None, server_hostname=None, ssl_version=None, ciphers=None, ssl_context=None, ca_cert_dir=None): """ All arguments except for server_hostname, ssl_context, and ca_cert_dir have the same meaning as they do when using :func:`ssl.wrap_socket`. :param server_hostname: When SNI is supported, the expected hostname of the certificate :param ssl_context: A pre-made :class:`SSLContext` object. If none is provided, one will be created using :func:`create_urllib3_context`. :param ciphers: A string of ciphers we wish the client to support. :param ca_cert_dir: A directory containing CA certificates in multiple separate files, as supported by OpenSSL's -CApath flag or the capath argument to SSLContext.load_verify_locations(). """ context = ssl_context if context is None: # Note: This branch of code and all the variables in it are no longer # used by urllib3 itself. We should consider deprecating and removing # this code. context = create_urllib3_context(ssl_version, cert_reqs, ciphers=ciphers) if ca_certs or ca_cert_dir: try: context.load_verify_locations(ca_certs, ca_cert_dir) except IOError as e: # Platform-specific: Python 2.7 raise SSLError(e) # Py33 raises FileNotFoundError which subclasses OSError # These are not equivalent unless we check the errno attribute except OSError as e: # Platform-specific: Python 3.3 and beyond if e.errno == errno.ENOENT: raise SSLError(e) raise elif getattr(context, 'load_default_certs', None) is not None: # try to load OS default certs; works well on Windows (require Python3.4+) context.load_default_certs() if certfile: context.load_cert_chain(certfile, keyfile) # If we detect server_hostname is an IP address then the SNI # extension should not be used according to RFC3546 Section 3.1 # We shouldn't warn the user if SNI isn't available but we would # not be using SNI anyways due to IP address for server_hostname. if ((server_hostname is not None and not is_ipaddress(server_hostname)) or IS_SECURETRANSPORT): if HAS_SNI and server_hostname is not None: return context.wrap_socket(sock, server_hostname=server_hostname) warnings.warn( 'An HTTPS request has been made, but the SNI (Server Name ' 'Indication) extension to TLS is not available on this platform. ' 'This may cause the server to present an incorrect TLS ' 'certificate, which can cause validation failures. You can upgrade to ' 'a newer version of Python to solve this. For more information, see ' 'https://urllib3.readthedocs.io/en/latest/advanced-usage.html' '#ssl-warnings', SNIMissingWarning ) return context.wrap_socket(sock)
[ "def", "ssl_wrap_socket", "(", "sock", ",", "keyfile", "=", "None", ",", "certfile", "=", "None", ",", "cert_reqs", "=", "None", ",", "ca_certs", "=", "None", ",", "server_hostname", "=", "None", ",", "ssl_version", "=", "None", ",", "ciphers", "=", "None", ",", "ssl_context", "=", "None", ",", "ca_cert_dir", "=", "None", ")", ":", "context", "=", "ssl_context", "if", "context", "is", "None", ":", "# Note: This branch of code and all the variables in it are no longer", "# used by urllib3 itself. We should consider deprecating and removing", "# this code.", "context", "=", "create_urllib3_context", "(", "ssl_version", ",", "cert_reqs", ",", "ciphers", "=", "ciphers", ")", "if", "ca_certs", "or", "ca_cert_dir", ":", "try", ":", "context", ".", "load_verify_locations", "(", "ca_certs", ",", "ca_cert_dir", ")", "except", "IOError", "as", "e", ":", "# Platform-specific: Python 2.7", "raise", "SSLError", "(", "e", ")", "# Py33 raises FileNotFoundError which subclasses OSError", "# These are not equivalent unless we check the errno attribute", "except", "OSError", "as", "e", ":", "# Platform-specific: Python 3.3 and beyond", "if", "e", ".", "errno", "==", "errno", ".", "ENOENT", ":", "raise", "SSLError", "(", "e", ")", "raise", "elif", "getattr", "(", "context", ",", "'load_default_certs'", ",", "None", ")", "is", "not", "None", ":", "# try to load OS default certs; works well on Windows (require Python3.4+)", "context", ".", "load_default_certs", "(", ")", "if", "certfile", ":", "context", ".", "load_cert_chain", "(", "certfile", ",", "keyfile", ")", "# If we detect server_hostname is an IP address then the SNI", "# extension should not be used according to RFC3546 Section 3.1", "# We shouldn't warn the user if SNI isn't available but we would", "# not be using SNI anyways due to IP address for server_hostname.", "if", "(", "(", "server_hostname", "is", "not", "None", "and", "not", "is_ipaddress", "(", "server_hostname", ")", ")", "or", "IS_SECURETRANSPORT", ")", ":", "if", "HAS_SNI", "and", "server_hostname", "is", "not", "None", ":", "return", "context", ".", "wrap_socket", "(", "sock", ",", "server_hostname", "=", "server_hostname", ")", "warnings", ".", "warn", "(", "'An HTTPS request has been made, but the SNI (Server Name '", "'Indication) extension to TLS is not available on this platform. '", "'This may cause the server to present an incorrect TLS '", "'certificate, which can cause validation failures. You can upgrade to '", "'a newer version of Python to solve this. For more information, see '", "'https://urllib3.readthedocs.io/en/latest/advanced-usage.html'", "'#ssl-warnings'", ",", "SNIMissingWarning", ")", "return", "context", ".", "wrap_socket", "(", "sock", ")" ]
All arguments except for server_hostname, ssl_context, and ca_cert_dir have the same meaning as they do when using :func:`ssl.wrap_socket`. :param server_hostname: When SNI is supported, the expected hostname of the certificate :param ssl_context: A pre-made :class:`SSLContext` object. If none is provided, one will be created using :func:`create_urllib3_context`. :param ciphers: A string of ciphers we wish the client to support. :param ca_cert_dir: A directory containing CA certificates in multiple separate files, as supported by OpenSSL's -CApath flag or the capath argument to SSLContext.load_verify_locations().
[ "All", "arguments", "except", "for", "server_hostname", "ssl_context", "and", "ca_cert_dir", "have", "the", "same", "meaning", "as", "they", "do", "when", "using", ":", "func", ":", "ssl", ".", "wrap_socket", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L291-L357
train
Wrap a socket with SSL.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,j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wxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11110 + 0o23) + chr(0b110011) + chr(0b110011 + 0o3), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(821 - 770) + chr(482 - 429) + chr(0b11100 + 0o26), 41373 - 41365), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b101111 + 0o3) + chr(1741 - 1688) + '\065', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b101111 + 0o7) + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100100 + 0o17) + '\064' + chr(55), 45786 - 45778), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2148 - 2098) + chr(803 - 755) + chr(812 - 760), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(51) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b111001 + 0o66) + chr(50) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001010 + 0o45) + '\061' + chr(0b10010 + 0o41) + chr(49), 43518 - 43510), ehT0Px3KOsy9('\x30' + chr(0b10010 + 0o135) + chr(2268 - 2219) + chr(1002 - 953), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111001 + 0o66) + chr(51) + chr(0b11010 + 0o35) + chr(2508 - 2457), 13545 - 13537), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + chr(0b100101 + 0o22) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1001010 + 0o45) + chr(49) + chr(1053 - 998) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(442 - 394) + '\157' + chr(0b11 + 0o61) + chr(0b100010 + 0o25), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + '\066' + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + chr(884 - 773) + chr(2009 - 1960) + '\060' + chr(975 - 921), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10111 + 0o34) + chr(50) + '\066', 39668 - 39660), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\157' + '\x37' + '\x35', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1247 - 1197) + '\x34' + chr(0b1000 + 0o54), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(0b100011 + 0o22) + chr(0b100101 + 0o20), 8), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + chr(49) + chr(0b110111) + chr(48), 39134 - 39126), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2189 - 2138) + chr(0b100111 + 0o12) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(1188 - 1140) + chr(111) + '\x31' + chr(0b110100) + chr(0b101001 + 0o14), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(10834 - 10723) + chr(51) + '\061' + chr(52), 0o10), ehT0Px3KOsy9('\060' + chr(3170 - 3059) + chr(0b110010) + '\064' + chr(2054 - 1999), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110011) + chr(1812 - 1763), 49181 - 49173), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(0b10 + 0o61) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(50) + '\062' + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(814 - 763), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + '\066' + chr(51), 6942 - 6934), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(6539 - 6428) + '\x31' + chr(1018 - 968), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5209 - 5098) + chr(0b110001) + chr(0b110010) + chr(0b110001), 12625 - 12617), ehT0Px3KOsy9(chr(655 - 607) + chr(4156 - 4045) + '\x31' + chr(54) + chr(0b110101), 58462 - 58454), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1788 - 1739) + '\x32' + chr(2375 - 2325), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b11000 + 0o31) + chr(2249 - 2197) + chr(0b110110), 46771 - 46763), ehT0Px3KOsy9('\060' + chr(1346 - 1235) + chr(50) + chr(51), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10110 + 0o33) + '\x32' + '\061', 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b11011 + 0o33) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + chr(11390 - 11279) + chr(0b110000 + 0o1) + chr(2907 - 2853) + '\x31', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110101) + chr(435 - 387), 41059 - 41051)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'p'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b10110 + 0o116) + chr(0b1010110 + 0o17))(chr(0b1110101) + chr(0b1101001 + 0o13) + chr(102) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def uhxUfHtSaugH(dIvk2h8RA_c3, ZTf0BjPAUT5u=None, DtpjbkLDl75_=None, aYEhewrUJb8U=None, rI1rQ0PA4HLd=None, lxPLB1j7k4Ee=None, FhHxORVInp_0=None, fujVhPdkkQaG=None, gbRBd3ZtDgA9=None, I8dgdvvokWn5=None): vUUG4_3aIqQC = gbRBd3ZtDgA9 if vUUG4_3aIqQC is None: vUUG4_3aIqQC = TtVRGH49xANU(FhHxORVInp_0, aYEhewrUJb8U, ciphers=fujVhPdkkQaG) if rI1rQ0PA4HLd or I8dgdvvokWn5: try: xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b"2\x85\xcc\x94\xb8\xf2\xb9f0o\x82\xe0\x10H\x14'\xa2T\xcb\xc3\x0b"), '\144' + chr(101) + '\x63' + chr(0b100111 + 0o110) + '\144' + '\145')('\x75' + chr(5405 - 5289) + chr(0b100001 + 0o105) + chr(0b101101) + chr(0b111000)))(rI1rQ0PA4HLd, I8dgdvvokWn5) except sR2sPcm7Zrfn as GlnVAPeT6CUe: raise FMwcwsD_Ix7p(GlnVAPeT6CUe) except KlPSljPzIJ_u as GlnVAPeT6CUe: if xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b';\x98\xdf\x9e\x88'), chr(4676 - 4576) + chr(0b111001 + 0o54) + chr(99) + chr(111) + chr(9765 - 9665) + chr(0b10011 + 0o122))(chr(0b10110 + 0o137) + '\164' + chr(102) + chr(0b11100 + 0o21) + chr(0b110010 + 0o6))) == xafqLlk3kkUe(lKz5VhncMjGe, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b\xa4\xe2\xb5\xa9\xd0'), '\x64' + chr(101) + chr(99) + chr(111) + '\144' + chr(4940 - 4839))(chr(2987 - 2870) + chr(0b1110100) + '\146' + chr(0b101101) + '\070')): raise FMwcwsD_Ix7p(GlnVAPeT6CUe) raise elif xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b'2\x85\xcc\x94\xb8\xe0\xb9r8|\x97\xcb#D\x124\xa2N'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + '\x38'), None) is not None: xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b'2\x85\xcc\x94\xb8\xe0\xb9r8|\x97\xcb#D\x124\xa2N'), chr(100) + chr(7186 - 7085) + '\143' + chr(0b1001000 + 0o47) + chr(0b110101 + 0o57) + '\x65')(chr(8016 - 7899) + chr(0b1110100) + chr(595 - 493) + chr(2018 - 1973) + chr(0b11011 + 0o35)))() if DtpjbkLDl75_: xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b'2\x85\xcc\x94\xb8\xe7\xb9f-V\x98\xd7\x1dN\x19'), '\x64' + chr(0b1011011 + 0o12) + chr(0b101011 + 0o70) + '\x6f' + chr(100) + '\x65')(chr(117) + '\164' + '\146' + chr(0b11101 + 0o20) + chr(56)))(DtpjbkLDl75_, ZTf0BjPAUT5u) if lxPLB1j7k4Ee is not None and (not WymN7FUe83uo(lxPLB1j7k4Ee)) or r3sYY4oC78nh: if Zg1oJnFY9XAx and lxPLB1j7k4Ee is not None: return xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b')\x98\xcc\x80\xb8\xf7\xb3w2l\x8f'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(1106 - 995) + chr(6415 - 6315) + '\x65')(chr(6085 - 5968) + '\164' + '\146' + chr(0b101101) + chr(0b101011 + 0o15)))(dIvk2h8RA_c3, server_hostname=lxPLB1j7k4Ee) xafqLlk3kkUe(fJoTPf8D_opC, xafqLlk3kkUe(SXOLrMavuUCe(b'0\xae\xe8\x9e\xa9\xc6\xbdv\x1fG\xb0\xd2'), '\x64' + chr(0b110 + 0o137) + chr(99) + chr(0b1 + 0o156) + chr(0b10010 + 0o122) + '\145')('\x75' + chr(142 - 26) + '\x66' + '\055' + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1f\x84\x8d\xb8\xb3\xd0\x8cGy{\x9e\xce\tB\x042\xf6U\xc5\xdeX\xad\x00\xa9\xc9\xb97\xf2oV&\xbc3\x00&Fg9\xd7Q\r\xa4\xe4\xd0\xcf\xd7\xb9f/l\x89\x9f2F\x1a#\xf6t\xca\xc9\x11\xac\x04\xb8\xce\xf64\xba+Vr\xe84\x1b!\x0f|?\x92\x051\xca\xf9\xbc\xb4\xa4\xb5gyg\x94\xcb\\F\x01\'\xbfQ\xc5\xcf\x14\xaaE\xa3\xc9\xb9.\xfbb@*\xec=\x14&\x00|#\xdf_~\xbe\xc5\x99\x94\xa4\xb1u )\x98\xde\tT\x12f\xa2U\xc1\x8d\x0b\xaa\x17\xba\xc2\xebz\xe7d\x13z\xee4\x067\x08gq\xd3\x1f~\x83\xc3\x93\x88\xf6\xaeq:}\xdb\xeb0tW%\xb3O\xd0\xc4\x1e\xa6\x06\xad\xd3\xfcv\xb3|[c\xff9U1\x07}q\xd1\x10+\x99\xc8\xd0\x91\xe5\xb0}=h\x8f\xd6\x13IW \xb7T\xc8\xd8\n\xaa\x16\xe2\x87\xc05\xe6+Pk\xf2q\x00"\x01a0\xd6\x14~\x9e\xc2\xd0\x86\xa4\xb2q.l\x89\x9f\nB\x055\xbfR\xca\x8d\x17\xa9E\x9c\xde\xed2\xfce\x13~\xf3q\x06=\ne4\x92\x056\x83\xde\xde\xc7\xc2\xb3fyd\x94\xcd\x19\x07\x1e(\xb0R\xd6\xc0\x19\xbb\x0c\xa3\xc9\xb5z\xe0nV*\xf4%\x01"\x15)~\x9d\x04,\x86\xc1\x99\x85\xb7\xf2f<h\x9f\xcb\x14B\x13)\xb5N\x8a\xc4\x17\xe0\x00\xa2\x88\xf5;\xe7n@~\xb30\x11$\x07}2\xd7\x15s\x9f\xde\x91\x80\xe1\xf2|-d\x97\x9c\x0fT\x1bk\xa1\\\xd6\xc3\x11\xa1\x02\xbf'), '\144' + chr(101) + chr(0b1100011) + chr(0b1111 + 0o140) + chr(100) + chr(0b1000000 + 0o45))(chr(0b1010 + 0o153) + chr(0b1110001 + 0o3) + '\x66' + chr(0b100101 + 0o10) + chr(0b11111 + 0o31)), C6OlkNKHmQ47) return xafqLlk3kkUe(vUUG4_3aIqQC, xafqLlk3kkUe(SXOLrMavuUCe(b')\x98\xcc\x80\xb8\xf7\xb3w2l\x8f'), '\144' + chr(0b1100101) + chr(8053 - 7954) + '\x6f' + '\144' + chr(0b1 + 0o144))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(56)))(dIvk2h8RA_c3)
pypa/pipenv
pipenv/vendor/urllib3/util/ssl_.py
is_ipaddress
def is_ipaddress(hostname): """Detects whether the hostname given is an IP address. :param str hostname: Hostname to examine. :return: True if the hostname is an IP address, False otherwise. """ if six.PY3 and isinstance(hostname, bytes): # IDN A-label bytes are ASCII compatible. hostname = hostname.decode('ascii') families = [socket.AF_INET] if hasattr(socket, 'AF_INET6'): families.append(socket.AF_INET6) for af in families: try: inet_pton(af, hostname) except (socket.error, ValueError, OSError): pass else: return True return False
python
def is_ipaddress(hostname): """Detects whether the hostname given is an IP address. :param str hostname: Hostname to examine. :return: True if the hostname is an IP address, False otherwise. """ if six.PY3 and isinstance(hostname, bytes): # IDN A-label bytes are ASCII compatible. hostname = hostname.decode('ascii') families = [socket.AF_INET] if hasattr(socket, 'AF_INET6'): families.append(socket.AF_INET6) for af in families: try: inet_pton(af, hostname) except (socket.error, ValueError, OSError): pass else: return True return False
[ "def", "is_ipaddress", "(", "hostname", ")", ":", "if", "six", ".", "PY3", "and", "isinstance", "(", "hostname", ",", "bytes", ")", ":", "# IDN A-label bytes are ASCII compatible.", "hostname", "=", "hostname", ".", "decode", "(", "'ascii'", ")", "families", "=", "[", "socket", ".", "AF_INET", "]", "if", "hasattr", "(", "socket", ",", "'AF_INET6'", ")", ":", "families", ".", "append", "(", "socket", ".", "AF_INET6", ")", "for", "af", "in", "families", ":", "try", ":", "inet_pton", "(", "af", ",", "hostname", ")", "except", "(", "socket", ".", "error", ",", "ValueError", ",", "OSError", ")", ":", "pass", "else", ":", "return", "True", "return", "False" ]
Detects whether the hostname given is an IP address. :param str hostname: Hostname to examine. :return: True if the hostname is an IP address, False otherwise.
[ "Detects", "whether", "the", "hostname", "given", "is", "an", "IP", "address", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/ssl_.py#L360-L381
train
Detects whether the given hostname is an IP address.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF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AwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2268 - 2220) + '\x6f' + chr(0b10100 + 0o37) + chr(2270 - 2221) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(2594 - 2543) + '\x36' + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8844 - 8733) + chr(0b101100 + 0o6) + chr(55) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(8071 - 7960) + chr(112 - 61) + chr(0b10110 + 0o32) + '\063', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b1 + 0o62) + chr(0b1110 + 0o42) + chr(2638 - 2583), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b111000 + 0o67) + '\061' + chr(1012 - 959) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(598 - 550) + chr(1345 - 1234) + chr(0b110011) + chr(488 - 440) + chr(0b1101 + 0o47), 45639 - 45631), ehT0Px3KOsy9(chr(942 - 894) + '\x6f' + chr(2118 - 2067) + '\061' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10 + 0o61) + chr(0b10100 + 0o43) + chr(1397 - 1343), 12535 - 12527), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11 + 0o64) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(1682 - 1571) + '\x31' + chr(0b101001 + 0o10) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(711 - 663) + chr(7756 - 7645) + '\x32' + '\x32' + '\x36', 26183 - 26175), ehT0Px3KOsy9('\x30' + chr(0b1100111 + 0o10) + chr(0b110111) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b101100 + 0o5) + '\x32' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(1029 - 974) + '\x33', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101011 + 0o6) + '\x30' + '\062', 0b1000), ehT0Px3KOsy9(chr(1425 - 1377) + '\x6f' + '\x33' + chr(0b110010) + chr(2394 - 2343), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + '\063' + chr(1315 - 1266) + chr(48), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + chr(51) + chr(1544 - 1491), 0b1000), ehT0Px3KOsy9(chr(273 - 225) + chr(4293 - 4182) + chr(49) + chr(0b110001) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1001 + 0o146) + chr(50) + chr(2143 - 2090) + chr(54), 52857 - 52849), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\x6f' + chr(0b110001) + chr(0b1111 + 0o47) + chr(1676 - 1626), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(1967 - 1916) + chr(1874 - 1821) + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b110100) + '\x33', 0b1000), ehT0Px3KOsy9('\x30' + chr(1614 - 1503) + '\066' + '\x32', 0o10), ehT0Px3KOsy9(chr(49 - 1) + chr(1875 - 1764) + chr(0b110001) + '\x35' + '\x37', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(169 - 119) + '\061' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b101100 + 0o103) + chr(55), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b11111 + 0o120) + chr(0b110101) + chr(0b110101), 19901 - 19893), ehT0Px3KOsy9(chr(0b110000) + chr(4201 - 4090) + chr(0b110011) + '\063' + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b100001 + 0o20) + chr(55) + chr(0b10100 + 0o37), 64212 - 64204), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\157' + '\061' + '\060' + chr(50), 8), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(111) + chr(50) + '\x32' + chr(0b100 + 0o56), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1100001 + 0o16) + chr(0b10 + 0o61) + chr(0b10110 + 0o33) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\x6f' + chr(0b110001) + chr(252 - 200) + '\063', 8), ehT0Px3KOsy9(chr(1614 - 1566) + chr(111) + chr(52) + chr(0b101111 + 0o7), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b11000 + 0o31) + '\x34', 34350 - 34342), ehT0Px3KOsy9(chr(1422 - 1374) + chr(7732 - 7621) + chr(305 - 256) + '\x34' + '\x35', 3910 - 3902), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10011 + 0o40) + '\x30' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b1000 + 0o51) + chr(0b11000 + 0o33), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2675 - 2622) + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6'), chr(9243 - 9143) + '\x65' + chr(99) + chr(111) + chr(100) + chr(101))(chr(1234 - 1117) + '\164' + '\x66' + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WymN7FUe83uo(OCVQ5bJHqbsc): if xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\xab\x89'), '\144' + '\145' + chr(0b100010 + 0o101) + chr(0b10 + 0o155) + '\144' + chr(0b1100101))(chr(6618 - 6501) + chr(0b10110 + 0o136) + '\x66' + chr(0b101101) + '\x38')) and PlSM16l2KDPD(OCVQ5bJHqbsc, QOfmzcVJsrp8): OCVQ5bJHqbsc = OCVQ5bJHqbsc.decode(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x81\xd9\xaa\xae'), chr(2253 - 2153) + chr(0b10110 + 0o117) + chr(0b11101 + 0o106) + chr(9503 - 9392) + '\144' + chr(0b1011110 + 0o7))(chr(12836 - 12719) + chr(5625 - 5509) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(0b111000))) QEFjaAJM202j = [fRlZC0rbxjvV.AF_INET] if lot1PSoAwYhj(fRlZC0rbxjvV, xafqLlk3kkUe(SXOLrMavuUCe(b'\x89\xb4\xe5\x8a\x89.\x90\xf8'), chr(0b1100100) + chr(0b1100101) + chr(7045 - 6946) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(0b110111 + 0o75) + chr(102) + chr(45) + chr(0b111000))): xafqLlk3kkUe(QEFjaAJM202j, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x82\xca\xa6\xa9\x0f'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + '\x64' + chr(3800 - 3699))(chr(7868 - 7751) + chr(9723 - 9607) + chr(0b1100110) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(fRlZC0rbxjvV, xafqLlk3kkUe(SXOLrMavuUCe(b'\x89\xb4\xe5\x8a\x89.\x90\xf8'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + chr(101))(chr(117) + chr(0b101 + 0o157) + chr(0b1001100 + 0o32) + chr(1291 - 1246) + '\070'))) for q1OIMJSofE3A in QEFjaAJM202j: try: IcHQvJlZb0F0(q1OIMJSofE3A, OCVQ5bJHqbsc) except (xafqLlk3kkUe(fRlZC0rbxjvV, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d\xa7\xde\x93\xa6\x1f\x8b\x9d\xcfM1\xa6'), chr(100) + chr(211 - 110) + '\x63' + chr(111) + chr(5213 - 5113) + chr(101))('\165' + chr(0b1110100) + chr(102) + '\055' + chr(56))), q1QCh3W88sgk, KlPSljPzIJ_u): pass else: return ehT0Px3KOsy9('\060' + chr(0b111000 + 0o67) + chr(0b11100 + 0o25), 0b1000) return ehT0Px3KOsy9('\x30' + '\157' + chr(48), 0b1000)
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.get_backoff_time
def get_backoff_time(self): """ Formula for computing the current backoff :rtype: float """ # We want to consider only the last consecutive errors sequence (Ignore redirects). consecutive_errors_len = len(list(takewhile(lambda x: x.redirect_location is None, reversed(self.history)))) if consecutive_errors_len <= 1: return 0 backoff_value = self.backoff_factor * (2 ** (consecutive_errors_len - 1)) return min(self.BACKOFF_MAX, backoff_value)
python
def get_backoff_time(self): """ Formula for computing the current backoff :rtype: float """ # We want to consider only the last consecutive errors sequence (Ignore redirects). consecutive_errors_len = len(list(takewhile(lambda x: x.redirect_location is None, reversed(self.history)))) if consecutive_errors_len <= 1: return 0 backoff_value = self.backoff_factor * (2 ** (consecutive_errors_len - 1)) return min(self.BACKOFF_MAX, backoff_value)
[ "def", "get_backoff_time", "(", "self", ")", ":", "# We want to consider only the last consecutive errors sequence (Ignore redirects).", "consecutive_errors_len", "=", "len", "(", "list", "(", "takewhile", "(", "lambda", "x", ":", "x", ".", "redirect_location", "is", "None", ",", "reversed", "(", "self", ".", "history", ")", ")", ")", ")", "if", "consecutive_errors_len", "<=", "1", ":", "return", "0", "backoff_value", "=", "self", ".", "backoff_factor", "*", "(", "2", "**", "(", "consecutive_errors_len", "-", "1", ")", ")", "return", "min", "(", "self", ".", "BACKOFF_MAX", ",", "backoff_value", ")" ]
Formula for computing the current backoff :rtype: float
[ "Formula", "for", "computing", "the", "current", "backoff" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L213-L225
train
Returns the current backoff time for the current resource.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9I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QKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1626 - 1578) + chr(111) + '\x31' + '\x37', 25656 - 25648), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b10111 + 0o31) + '\x32', 0o10), ehT0Px3KOsy9(chr(269 - 221) + '\x6f' + '\x33' + chr(2010 - 1962) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(10767 - 10656) + chr(0b110011) + '\067' + chr(50), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + '\x34' + chr(0b10 + 0o56), 23343 - 23335), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1010100 + 0o33) + chr(0b110010 + 0o1) + chr(1055 - 1007), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\157' + chr(1121 - 1072) + chr(0b11001 + 0o34) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1625 - 1574) + chr(0b1110 + 0o42) + chr(0b100101 + 0o16), 8), ehT0Px3KOsy9(chr(1992 - 1944) + chr(0b1101111) + chr(51) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(9542 - 9431) + chr(0b11110 + 0o27) + chr(709 - 655), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101 + 0o152) + '\x31' + chr(0b110001) + '\061', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b11101 + 0o26) + chr(0b110000) + '\061', 0b1000), ehT0Px3KOsy9(chr(498 - 450) + chr(4528 - 4417) + '\061' + '\065' + chr(52), 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(49) + chr(0b100101 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(111) + chr(0b101011 + 0o6) + '\063' + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(6497 - 6386) + chr(0b110111) + chr(0b1100 + 0o52), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x34' + chr(0b110001), 45672 - 45664), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1718 - 1668) + chr(0b110101) + chr(323 - 268), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1683 - 1633) + chr(0b101010 + 0o15), ord("\x08")), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(1089 - 978) + '\061' + '\x33' + chr(0b11110 + 0o26), 41486 - 41478), ehT0Px3KOsy9(chr(1628 - 1580) + chr(5761 - 5650) + chr(0b1101 + 0o44) + '\061' + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b110010) + chr(50), 60168 - 60160), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\x6f' + chr(2266 - 2215) + chr(0b110000) + chr(0b1011 + 0o45), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(91 - 42) + chr(0b110001), 3080 - 3072), ehT0Px3KOsy9(chr(739 - 691) + chr(9825 - 9714) + chr(0b101 + 0o54) + chr(0b110001) + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(897 - 848) + '\063' + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(49) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10990 - 10879) + '\067' + chr(0b110000), 61217 - 61209), ehT0Px3KOsy9(chr(0b110000) + chr(0b101100 + 0o103) + '\x33' + chr(0b110011) + chr(1943 - 1889), 32537 - 32529), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1010001 + 0o36) + '\x33' + chr(55) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + '\x31' + chr(0b110001), 8), ehT0Px3KOsy9('\060' + chr(0b1010110 + 0o31) + chr(1963 - 1913) + chr(0b101111 + 0o6) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\x34' + chr(0b101111 + 0o4), 0b1000), ehT0Px3KOsy9(chr(2150 - 2102) + chr(0b1101111) + chr(50) + chr(54) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b100010 + 0o23) + chr(976 - 926), 45446 - 45438), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101 + 0o54) + chr(0b110001), 58676 - 58668), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(1849 - 1800) + '\x30', 38002 - 37994), ehT0Px3KOsy9('\x30' + '\157' + chr(1687 - 1635) + chr(0b100000 + 0o27), 0o10), ehT0Px3KOsy9('\x30' + chr(4218 - 4107) + chr(55) + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100000 + 0o27) + chr(48), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + '\065' + chr(1403 - 1355), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'!'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + chr(2360 - 2260) + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(1935 - 1890) + chr(2955 - 2899)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def rNVajzB7hcDB(oVre8I6UXc3b): NsI2PvLdLVOL = c2A0yzQpDQB3(YyaZ4tpXu4lf(SJsz52klGTX5(lambda OeWW0F1dBPRQ: OeWW0F1dBPRQ.redirect_location is None, RFiwrCZH9Ie6(oVre8I6UXc3b.sD1K7SLfPnDB)))) if NsI2PvLdLVOL <= ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100110 + 0o13), ord("\x08")): return ehT0Px3KOsy9(chr(48) + '\157' + '\x30', 0b1000) m2ig6NkEOsMk = oVre8I6UXc3b.backoff_factor * ehT0Px3KOsy9(chr(0b110000) + chr(0b1010011 + 0o34) + chr(0b110010), 53913 - 53905) ** (NsI2PvLdLVOL - ehT0Px3KOsy9(chr(912 - 864) + '\x6f' + '\061', 8)) return Dx22bkKPdt5d(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'M\x83\x80\xb1\xef^*\x9cWo\x11'), '\144' + chr(0b1100101) + '\143' + chr(111) + chr(100) + chr(3099 - 2998))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b11010 + 0o23) + chr(56))), m2ig6NkEOsMk)
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.get_retry_after
def get_retry_after(self, response): """ Get the value of Retry-After in seconds. """ retry_after = response.getheader("Retry-After") if retry_after is None: return None return self.parse_retry_after(retry_after)
python
def get_retry_after(self, response): """ Get the value of Retry-After in seconds. """ retry_after = response.getheader("Retry-After") if retry_after is None: return None return self.parse_retry_after(retry_after)
[ "def", "get_retry_after", "(", "self", ",", "response", ")", ":", "retry_after", "=", "response", ".", "getheader", "(", "\"Retry-After\"", ")", "if", "retry_after", "is", "None", ":", "return", "None", "return", "self", ".", "parse_retry_after", "(", "retry_after", ")" ]
Get the value of Retry-After in seconds.
[ "Get", "the", "value", "of", "Retry", "-", "After", "in", "seconds", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L243-L251
train
Get the value of Retry - After in seconds.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60dj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KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b110110) + '\066', 0o10), ehT0Px3KOsy9(chr(2261 - 2213) + chr(0b1010111 + 0o30) + chr(864 - 813) + chr(167 - 113) + chr(55), 23395 - 23387), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + '\065' + chr(238 - 185), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b0 + 0o157) + chr(51) + '\x36' + chr(0b10100 + 0o37), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101010 + 0o5) + '\x32' + '\064' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1001010 + 0o45) + '\x32' + chr(2804 - 2750) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(1396 - 1348) + chr(111) + chr(0b110011) + '\x33', 0b1000), ehT0Px3KOsy9(chr(2155 - 2107) + '\157' + '\x37' + chr(0b101101 + 0o10), 28138 - 28130), ehT0Px3KOsy9('\060' + chr(8506 - 8395) + chr(0b100100 + 0o17) + chr(2245 - 2196) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(1613 - 1563) + '\065' + '\x30', 0o10), ehT0Px3KOsy9(chr(497 - 449) + '\157' + chr(0b100111 + 0o15) + '\x37', 33885 - 33877), ehT0Px3KOsy9('\060' + chr(0b1111 + 0o140) + chr(0b100110 + 0o13) + chr(0b11001 + 0o33) + chr(51), 0b1000), ehT0Px3KOsy9(chr(578 - 530) + '\157' + chr(2047 - 1997) + chr(0b100100 + 0o14) + chr(1449 - 1395), 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + '\x31' + chr(0b110001) + chr(52), 0o10), ehT0Px3KOsy9(chr(48) + chr(1308 - 1197) + chr(51) + chr(0b100 + 0o57) + '\065', 43038 - 43030), ehT0Px3KOsy9('\060' + chr(0b100101 + 0o112) + chr(0b110011 + 0o1) + '\066', 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x31' + '\x32' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1111 + 0o140) + '\x31' + chr(1673 - 1621) + '\063', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10011 + 0o40) + chr(0b11000 + 0o32) + chr(245 - 197), 0b1000), ehT0Px3KOsy9(chr(365 - 317) + chr(0b1101111) + chr(0b101001 + 0o11) + chr(55) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11245 - 11134) + '\x33' + '\x34' + '\x37', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + chr(0b110000) + chr(2242 - 2189), 0b1000), ehT0Px3KOsy9('\060' + chr(0b111101 + 0o62) + '\x32' + chr(0b100110 + 0o16) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(1972 - 1922) + chr(0b11001 + 0o36) + chr(0b111 + 0o55), ord("\x08")), ehT0Px3KOsy9(chr(2218 - 2170) + '\157' + chr(564 - 510) + chr(264 - 212), 0b1000), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(1021 - 910) + chr(52) + '\067', 8), ehT0Px3KOsy9(chr(0b110000) + chr(9504 - 9393) + chr(0b110011) + chr(54) + chr(0b110011), 8), ehT0Px3KOsy9('\060' + chr(0b10 + 0o155) + chr(940 - 890) + chr(2300 - 2250) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\061' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1010110 + 0o31) + '\x31' + chr(96 - 41) + '\065', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b110101) + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b110011) + chr(2071 - 2021), 47719 - 47711), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(0b10100 + 0o42) + chr(52), 0o10), ehT0Px3KOsy9(chr(1712 - 1664) + chr(10459 - 10348) + chr(870 - 819) + chr(2790 - 2737) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b1 + 0o61) + '\x34' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100001 + 0o16) + '\065' + chr(1003 - 953), 13895 - 13887), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b111 + 0o150) + chr(51) + chr(167 - 114) + chr(0b100111 + 0o13), 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1100011 + 0o14) + '\x33' + '\060' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(1232 - 1182) + chr(0b101110 + 0o5) + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(51) + chr(0b110000), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\065' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x98'), chr(100) + '\x65' + chr(0b1100 + 0o127) + chr(0b1101111) + '\144' + chr(0b110 + 0o137))('\165' + '\x74' + chr(0b111 + 0o137) + chr(599 - 554) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Ak33pdsJOvxw(oVre8I6UXc3b, ekFGDFIe9V8v): KdyKUWBI3kZt = ekFGDFIe9V8v.VhFeLztSxr27(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4\x92\xd9\x81\xdc\x9fZ[\xba\xcdU'), chr(100) + chr(101) + '\x63' + '\157' + chr(0b1101 + 0o127) + '\x65')('\165' + chr(116) + '\146' + chr(45) + chr(1888 - 1832))) if KdyKUWBI3kZt is None: return None return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x96\xdf\x80\xc0\xediX\xba\xda^<\xe7*\xa9C"'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(100) + '\145')('\x75' + '\x74' + chr(0b1100110) + '\055' + '\x38'))(KdyKUWBI3kZt)
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.sleep
def sleep(self, response=None): """ Sleep between retry attempts. This method will respect a server's ``Retry-After`` response header and sleep the duration of the time requested. If that is not present, it will use an exponential backoff. By default, the backoff factor is 0 and this method will return immediately. """ if response: slept = self.sleep_for_retry(response) if slept: return self._sleep_backoff()
python
def sleep(self, response=None): """ Sleep between retry attempts. This method will respect a server's ``Retry-After`` response header and sleep the duration of the time requested. If that is not present, it will use an exponential backoff. By default, the backoff factor is 0 and this method will return immediately. """ if response: slept = self.sleep_for_retry(response) if slept: return self._sleep_backoff()
[ "def", "sleep", "(", "self", ",", "response", "=", "None", ")", ":", "if", "response", ":", "slept", "=", "self", ".", "sleep_for_retry", "(", "response", ")", "if", "slept", ":", "return", "self", ".", "_sleep_backoff", "(", ")" ]
Sleep between retry attempts. This method will respect a server's ``Retry-After`` response header and sleep the duration of the time requested. If that is not present, it will use an exponential backoff. By default, the backoff factor is 0 and this method will return immediately.
[ "Sleep", "between", "retry", "attempts", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L267-L281
train
Sleep between retry attempts.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQC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,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(0b110011) + chr(55) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + chr(1022 - 911) + '\061' + chr(0b100101 + 0o17) + '\x32', 0b1000), ehT0Px3KOsy9(chr(1174 - 1126) + chr(111) + '\x31' + chr(0b110000) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(2209 - 2155) + '\063', 20650 - 20642), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b101001 + 0o15) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(0b1010101 + 0o32) + chr(0b110110) + '\x32', 7259 - 7251), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(4174 - 4063) + chr(0b110000 + 0o2) + chr(2388 - 2339) + chr(0b101101 + 0o7), 50519 - 50511), ehT0Px3KOsy9('\060' + chr(0b110001 + 0o76) + '\x35' + chr(0b110001), 46004 - 45996), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1011010 + 0o25) + chr(0b101000 + 0o12) + chr(0b100000 + 0o23), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1864 - 1753) + chr(776 - 726) + '\067' + chr(2631 - 2579), 36236 - 36228), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(8678 - 8567) + chr(0b110100) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b11111 + 0o120) + chr(0b110011) + chr(55) + chr(1697 - 1643), 17082 - 17074), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b10110 + 0o35) + chr(0b111 + 0o51), 57936 - 57928), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(196 - 147) + chr(48), 48619 - 48611), ehT0Px3KOsy9(chr(1389 - 1341) + chr(0b1101111) + chr(1006 - 957) + chr(0b110011) + chr(0b1100 + 0o46), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1010 + 0o47) + '\x31' + chr(54), 0o10), ehT0Px3KOsy9('\x30' + chr(3679 - 3568) + '\x31' + chr(0b110110) + chr(546 - 497), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\062' + '\066' + '\x35', 0b1000), ehT0Px3KOsy9(chr(925 - 877) + '\x6f' + '\x35' + '\064', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x36' + chr(55), 0b1000), ehT0Px3KOsy9(chr(1011 - 963) + '\x6f' + chr(50) + chr(0b110000), 19317 - 19309), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b11010 + 0o125) + chr(731 - 682) + chr(2299 - 2245) + '\x30', 0o10), ehT0Px3KOsy9('\x30' + chr(10009 - 9898) + chr(50) + '\067' + '\x35', 51028 - 51020), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110101) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1011101 + 0o22) + chr(1089 - 1039) + chr(0b11001 + 0o33) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(2638 - 2527) + '\x32' + chr(0b110111) + chr(2650 - 2597), 8), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + chr(52) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100 + 0o57) + chr(0b110000) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(805 - 753) + chr(53), 17681 - 17673), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + '\061' + '\067', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110 + 0o61) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(111) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(2064 - 2016) + chr(731 - 676), 40531 - 40523), ehT0Px3KOsy9(chr(471 - 423) + chr(0b100011 + 0o114) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(412 - 364) + chr(8479 - 8368) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(54) + chr(0b101000 + 0o10), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(0b110101) + chr(2449 - 2394), 0b1000), ehT0Px3KOsy9(chr(1575 - 1527) + '\x6f' + chr(54) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(53), 47812 - 47804)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\157' + chr(53) + '\x30', 42479 - 42471)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b1100011 + 0o1) + chr(0b1100101))('\165' + chr(0b1000000 + 0o64) + '\x66' + '\x2d' + chr(2527 - 2471)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def KFP8A3f9JvFY(oVre8I6UXc3b, ekFGDFIe9V8v=None): if ekFGDFIe9V8v: Gt_J9ev7O3ab = oVre8I6UXc3b.sleep_for_retry(ekFGDFIe9V8v) if Gt_J9ev7O3ab: return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa7\x11-\x16TBY\xeeHp\xd7H\x98\xfe'), chr(5708 - 5608) + '\x65' + chr(935 - 836) + '\x6f' + chr(1386 - 1286) + '\x65')('\165' + chr(6549 - 6433) + chr(0b1100110) + chr(1224 - 1179) + chr(635 - 579)))()
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry._is_method_retryable
def _is_method_retryable(self, method): """ Checks if a given HTTP method should be retried upon, depending if it is included on the method whitelist. """ if self.method_whitelist and method.upper() not in self.method_whitelist: return False return True
python
def _is_method_retryable(self, method): """ Checks if a given HTTP method should be retried upon, depending if it is included on the method whitelist. """ if self.method_whitelist and method.upper() not in self.method_whitelist: return False return True
[ "def", "_is_method_retryable", "(", "self", ",", "method", ")", ":", "if", "self", ".", "method_whitelist", "and", "method", ".", "upper", "(", ")", "not", "in", "self", ".", "method_whitelist", ":", "return", "False", "return", "True" ]
Checks if a given HTTP method should be retried upon, depending if it is included on the method whitelist.
[ "Checks", "if", "a", "given", "HTTP", "method", "should", "be", "retried", "upon", "depending", "if", "it", "is", "included", "on", "the", "method", "whitelist", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L295-L302
train
Checks if a given HTTP method should be retried upon depending if it is included on the method whitelist.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAz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dDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b110111 + 0o0) + '\067', 43590 - 43582), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b0 + 0o63) + chr(0b11001 + 0o31) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100000 + 0o117) + chr(50) + '\067' + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(8166 - 8055) + chr(0b110001) + '\x32' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(756 - 708) + chr(9198 - 9087) + '\x31' + '\065', 64453 - 64445), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b101100 + 0o6) + '\066' + chr(753 - 702), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(1209 - 1160) + '\x32' + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(473 - 424) + chr(0b1101 + 0o52) + chr(53), 0o10), ehT0Px3KOsy9(chr(1124 - 1076) + '\x6f' + chr(0b10100 + 0o36) + chr(0b110001) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(7119 - 7008) + '\x37' + chr(50), 3810 - 3802), ehT0Px3KOsy9(chr(48) + chr(0b100111 + 0o110) + chr(49) + '\063' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(59 - 8) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\x6f' + chr(1981 - 1932) + chr(0b110100) + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(2678 - 2625) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(6197 - 6086) + chr(0b110001) + chr(55) + '\064', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b100100 + 0o23), 31315 - 31307), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b100111 + 0o110) + chr(0b110010) + '\x36' + chr(49), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x33' + chr(896 - 845) + chr(0b110110), 61452 - 61444), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110011) + chr(0b110 + 0o56) + chr(0b110000), 11095 - 11087), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + '\x31' + chr(0b11110 + 0o31) + chr(1087 - 1036), ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(2416 - 2305) + chr(0b101111 + 0o5) + chr(0b101100 + 0o4), 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\x6f' + '\066' + chr(52), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1191 - 1140) + chr(1342 - 1290) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + '\062' + '\064' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + chr(363 - 314) + chr(0b110011) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + chr(0b110001) + chr(49) + chr(0b101001 + 0o7), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101001 + 0o6) + chr(0b101111 + 0o2) + '\061' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(1357 - 1309) + chr(0b10100 + 0o133) + '\x31' + '\067' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062', 23535 - 23527), ehT0Px3KOsy9(chr(48) + chr(2725 - 2614) + chr(0b10111 + 0o33), 8), ehT0Px3KOsy9(chr(192 - 144) + '\x6f' + chr(0b110010) + chr(0b110000) + chr(989 - 934), 21771 - 21763), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b101010 + 0o10) + '\060' + chr(0b11 + 0o60), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b10011 + 0o36) + chr(2444 - 2389), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2210 - 2161) + chr(54) + chr(0b101000 + 0o10), 29913 - 29905), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1 + 0o60) + '\x32' + chr(0b101110 + 0o3), 8), ehT0Px3KOsy9(chr(1039 - 991) + chr(0b111011 + 0o64) + chr(0b100000 + 0o23) + chr(50) + '\066', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11010 + 0o31) + '\065' + chr(2479 - 2429), 0o10), ehT0Px3KOsy9(chr(1532 - 1484) + chr(0b1101111) + chr(50) + chr(0b110001) + chr(48), 56789 - 56781), ehT0Px3KOsy9(chr(0b110000) + chr(0b1 + 0o156) + '\063' + '\067' + '\067', 22333 - 22325), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + '\x35' + '\060', 28138 - 28130)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + '\x35' + chr(1222 - 1174), 61851 - 61843)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'Q'), chr(0b1000011 + 0o41) + chr(0b1100101) + chr(6582 - 6483) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def MMZBuk5PNJ6q(oVre8I6UXc3b, CVRCXTcnOnH6): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\xb7\xca:b\xd7\x0e\n\xe6S(\xbf\x0f\x03\x0fs'), chr(0b1100100) + chr(0b10100 + 0o121) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070')) and xafqLlk3kkUe(CVRCXTcnOnH6, xafqLlk3kkUe(SXOLrMavuUCe(b'\n\xa2\xce7\x7f'), chr(0b100001 + 0o103) + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(0b101110 + 0o12)))() not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\xb7\xca:b\xd7\x0e\n\xe6S(\xbf\x0f\x03\x0fs'), chr(3917 - 3817) + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(101))(chr(0b1110010 + 0o3) + chr(7421 - 7305) + chr(6105 - 6003) + chr(0b11101 + 0o20) + chr(56))): return ehT0Px3KOsy9(chr(0b110000) + chr(0b1011111 + 0o20) + chr(0b1100 + 0o44), 4760 - 4752) return ehT0Px3KOsy9('\060' + chr(0b1011110 + 0o21) + chr(0b101101 + 0o4), 0b1000)
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.is_retry
def is_retry(self, method, status_code, has_retry_after=False): """ Is this method/status code retryable? (Based on whitelists and control variables such as the number of total retries to allow, whether to respect the Retry-After header, whether this header is present, and whether the returned status code is on the list of status codes to be retried upon on the presence of the aforementioned header) """ if not self._is_method_retryable(method): return False if self.status_forcelist and status_code in self.status_forcelist: return True return (self.total and self.respect_retry_after_header and has_retry_after and (status_code in self.RETRY_AFTER_STATUS_CODES))
python
def is_retry(self, method, status_code, has_retry_after=False): """ Is this method/status code retryable? (Based on whitelists and control variables such as the number of total retries to allow, whether to respect the Retry-After header, whether this header is present, and whether the returned status code is on the list of status codes to be retried upon on the presence of the aforementioned header) """ if not self._is_method_retryable(method): return False if self.status_forcelist and status_code in self.status_forcelist: return True return (self.total and self.respect_retry_after_header and has_retry_after and (status_code in self.RETRY_AFTER_STATUS_CODES))
[ "def", "is_retry", "(", "self", ",", "method", ",", "status_code", ",", "has_retry_after", "=", "False", ")", ":", "if", "not", "self", ".", "_is_method_retryable", "(", "method", ")", ":", "return", "False", "if", "self", ".", "status_forcelist", "and", "status_code", "in", "self", ".", "status_forcelist", ":", "return", "True", "return", "(", "self", ".", "total", "and", "self", ".", "respect_retry_after_header", "and", "has_retry_after", "and", "(", "status_code", "in", "self", ".", "RETRY_AFTER_STATUS_CODES", ")", ")" ]
Is this method/status code retryable? (Based on whitelists and control variables such as the number of total retries to allow, whether to respect the Retry-After header, whether this header is present, and whether the returned status code is on the list of status codes to be retried upon on the presence of the aforementioned header)
[ "Is", "this", "method", "/", "status", "code", "retryable?", "(", "Based", "on", "whitelists", "and", "control", "variables", "such", "as", "the", "number", "of", "total", "retries", "to", "allow", "whether", "to", "respect", "the", "Retry", "-", "After", "header", "whether", "this", "header", "is", "present", "and", "whether", "the", "returned", "status", "code", "is", "on", "the", "list", "of", "status", "codes", "to", "be", "retried", "upon", "on", "the", "presence", "of", "the", "aforementioned", "header", ")" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L304-L318
train
Is this status code retryable?
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvg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kUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\157' + chr(0b11011 + 0o30) + chr(0b110011) + '\x37', 57870 - 57862), ehT0Px3KOsy9(chr(2293 - 2245) + chr(0b1011100 + 0o23) + chr(1176 - 1126) + chr(0b110111) + '\067', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + '\x33' + chr(0b110001), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b110110) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x34' + chr(1467 - 1417), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b100100 + 0o22) + chr(2106 - 2051), ord("\x08")), ehT0Px3KOsy9(chr(1693 - 1645) + '\157' + chr(51) + '\x35' + '\064', 27889 - 27881), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + '\x31' + chr(0b10100 + 0o43), 21771 - 21763), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1100 + 0o46) + '\065' + '\x33', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(2673 - 2619) + chr(1307 - 1258), 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + chr(49) + '\062' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(12148 - 12037) + chr(0b0 + 0o62) + '\064' + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + chr(4209 - 4098) + '\063' + chr(50) + chr(0b10110 + 0o37), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(5519 - 5408) + chr(0b1001 + 0o50) + '\x34' + '\x31', 783 - 775), ehT0Px3KOsy9(chr(0b110000) + chr(6023 - 5912) + chr(0b100001 + 0o21) + chr(0b10 + 0o60) + '\x37', 339 - 331), ehT0Px3KOsy9(chr(0b110000) + chr(5194 - 5083) + chr(1093 - 1042) + chr(0b1 + 0o65) + chr(0b110011), 28727 - 28719), ehT0Px3KOsy9(chr(820 - 772) + chr(0b11100 + 0o123) + chr(49) + chr(0b101101 + 0o4) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b10000 + 0o42) + chr(50) + chr(0b110001 + 0o5), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(0b100001 + 0o23) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b0 + 0o64) + chr(1904 - 1856), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b11110 + 0o22) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b110001 + 0o76) + '\062' + chr(1597 - 1544) + chr(0b100001 + 0o24), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(0b1001 + 0o52) + chr(54) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + chr(236 - 187) + chr(0b1001 + 0o51) + chr(0b11110 + 0o30), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10 + 0o57) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1011 + 0o47) + '\062' + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1100100 + 0o13) + '\063' + chr(878 - 827) + chr(1628 - 1577), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(52) + '\x36', 16802 - 16794), ehT0Px3KOsy9(chr(73 - 25) + '\x6f' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + '\064' + '\067', 9296 - 9288), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b101101 + 0o7) + chr(2554 - 2500), 8), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\x36' + '\x36', 27376 - 27368), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2413 - 2363) + '\061' + chr(0b111 + 0o60), 52891 - 52883), ehT0Px3KOsy9(chr(513 - 465) + '\x6f' + '\x33' + chr(50) + '\060', 5211 - 5203), ehT0Px3KOsy9('\060' + '\157' + chr(641 - 591) + chr(0b110001) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(1694 - 1646) + chr(0b10101 + 0o132) + chr(0b110001) + chr(0b11010 + 0o34) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(1056 - 1008) + chr(0b1100000 + 0o17) + chr(1744 - 1695) + chr(51) + '\063', 56422 - 56414), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100011 + 0o17) + chr(0b110011) + chr(603 - 554), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(55) + chr(0b110101), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b110111) + chr(553 - 502), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110101) + chr(48), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf1'), chr(0b1100100) + chr(0b1000101 + 0o40) + '\143' + chr(9729 - 9618) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(0b101101) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def qzEinRuxIBQb(oVre8I6UXc3b, CVRCXTcnOnH6, cDwlX6QQ926E, jgpb86qS9kA8=ehT0Px3KOsy9(chr(0b110000) + '\157' + '\060', 0o10)): if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x80\xd6\xaa\xabOR\x98\xa7\xc4\x15\x0e\xd3\xb0\x15\xe5\x8a(\xf4\x8dE'), '\144' + chr(7691 - 7590) + chr(99) + chr(0b1101111) + '\144' + chr(6503 - 6402))(chr(10042 - 9925) + '\164' + '\146' + chr(0b101101) + chr(0b100100 + 0o24)))(CVRCXTcnOnH6): return ehT0Px3KOsy9(chr(979 - 931) + chr(0b1101111) + chr(48), 8) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xcb\xb8\x80WD\xb3\xa9\xc4\x032\xc4\xb9\x08\xe4\x87'), '\x64' + chr(101) + chr(0b1100011) + '\157' + chr(0b11110 + 0o106) + chr(9551 - 9450))('\165' + '\x74' + '\x66' + chr(628 - 583) + chr(0b111000))) and cDwlX6QQ926E in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xcb\xb8\x80WD\xb3\xa9\xc4\x032\xc4\xb9\x08\xe4\x87'), chr(100) + chr(101) + chr(99) + '\x6f' + chr(8191 - 8091) + '\x65')(chr(5376 - 5259) + chr(0b111100 + 0o70) + chr(0b1100110) + chr(0b1 + 0o54) + '\x38')): return ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(11939 - 11828) + chr(49), 35073 - 35065) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x94\x89\xbd\x9fP~\xdd\xa0\xea\x1cd\xc3'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(0b110001 + 0o104) + '\164' + chr(102) + '\055' + chr(0b11011 + 0o35))) and xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\xda\xaa\x84GT\x98\x90\xd9\x14%\xd3\xac>\xf6\x95=\xf3\x93\x7f\xe8\xc8\x942o\xe0'), '\x64' + '\x65' + '\143' + chr(111) + chr(0b1110 + 0o126) + '\145')(chr(355 - 238) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38')) and jgpb86qS9kA8 and (cDwlX6QQ926E in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d\xfa\x8d\xa6{h\xad\x89\xff4\x03\xfe\x865\xd6\xa7\x1c\xc5\xbec\xcf\xe9\xb0\x05'), chr(8882 - 8782) + '\145' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(45) + '\x38')))
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.is_exhausted
def is_exhausted(self): """ Are we out of retries? """ retry_counts = (self.total, self.connect, self.read, self.redirect, self.status) retry_counts = list(filter(None, retry_counts)) if not retry_counts: return False return min(retry_counts) < 0
python
def is_exhausted(self): """ Are we out of retries? """ retry_counts = (self.total, self.connect, self.read, self.redirect, self.status) retry_counts = list(filter(None, retry_counts)) if not retry_counts: return False return min(retry_counts) < 0
[ "def", "is_exhausted", "(", "self", ")", ":", "retry_counts", "=", "(", "self", ".", "total", ",", "self", ".", "connect", ",", "self", ".", "read", ",", "self", ".", "redirect", ",", "self", ".", "status", ")", "retry_counts", "=", "list", "(", "filter", "(", "None", ",", "retry_counts", ")", ")", "if", "not", "retry_counts", ":", "return", "False", "return", "min", "(", "retry_counts", ")", "<", "0" ]
Are we out of retries?
[ "Are", "we", "out", "of", "retries?" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L320-L327
train
Return True if we have too many retries.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx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FiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(0b100011 + 0o20) + chr(2520 - 2468), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(2173 - 2121) + chr(337 - 287), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1101 + 0o51) + chr(0b100100 + 0o17), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1648 - 1599) + '\x37' + chr(0b110011), 38001 - 37993), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10 + 0o61) + chr(55) + chr(0b11100 + 0o31), 14816 - 14808), ehT0Px3KOsy9(chr(1997 - 1949) + '\157' + chr(0b110011) + chr(0b1001 + 0o52) + chr(0b10111 + 0o40), 53509 - 53501), ehT0Px3KOsy9(chr(0b110000) + chr(5203 - 5092) + '\x33' + chr(1970 - 1916) + chr(52), 0o10), ehT0Px3KOsy9(chr(918 - 870) + chr(10550 - 10439) + chr(0b11110 + 0o23) + chr(0b110011) + chr(2296 - 2242), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b10011 + 0o134) + chr(50) + chr(0b11010 + 0o33) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1931 - 1882) + chr(0b1000 + 0o52) + chr(0b110110), 0o10), ehT0Px3KOsy9('\060' + chr(6764 - 6653) + chr(776 - 727) + chr(1505 - 1457) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(111) + chr(51) + chr(54) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(0b1100110 + 0o11) + chr(0b101111 + 0o4) + chr(0b110101) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + '\063' + chr(1546 - 1495) + chr(1269 - 1215), 35900 - 35892), ehT0Px3KOsy9(chr(1301 - 1253) + '\157' + chr(0b1000 + 0o55) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101001 + 0o106) + chr(0b1 + 0o61) + '\x37' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + chr(0b101010 + 0o15) + chr(2667 - 2612), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + chr(0b110000) + '\063', 0b1000), ehT0Px3KOsy9(chr(48) + chr(8594 - 8483) + chr(0b0 + 0o64) + '\x31', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + chr(2020 - 1972) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(4632 - 4521) + chr(0b110001) + chr(2250 - 2199) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\157' + '\x31' + chr(0b110111) + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(54 - 6), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(524 - 475) + '\065' + '\x35', 9769 - 9761), ehT0Px3KOsy9(chr(48) + chr(0b111010 + 0o65) + '\061' + chr(49) + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(7803 - 7692) + chr(0b1111 + 0o43) + chr(813 - 758) + chr(1423 - 1368), 8), ehT0Px3KOsy9('\x30' + chr(0b10110 + 0o131) + '\062' + '\x35' + '\063', 0o10), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + chr(55) + '\063', 1566 - 1558), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(109 - 59) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + '\061' + '\063' + '\x33', 8), ehT0Px3KOsy9(chr(477 - 429) + chr(0b1101111) + '\063' + '\x33' + chr(0b101000 + 0o14), 0o10), ehT0Px3KOsy9(chr(1413 - 1365) + chr(0b1101111) + chr(0b1110 + 0o43) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(2223 - 2175) + chr(0b1011111 + 0o20) + chr(1413 - 1362) + chr(2109 - 2056) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\x35' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(8781 - 8670) + chr(49) + chr(50) + chr(0b110110), 8), ehT0Px3KOsy9(chr(1596 - 1548) + chr(0b1010101 + 0o32) + '\x32' + chr(0b101001 + 0o13), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3816 - 3705) + chr(595 - 545) + chr(1270 - 1218) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6341 - 6230) + '\x32' + chr(0b110100) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b101101 + 0o102) + '\x32' + chr(0b11001 + 0o27) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + '\x36' + chr(0b110000), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1011001 + 0o26) + chr(951 - 898) + chr(0b101111 + 0o1), 12278 - 12270)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'r'), '\x64' + chr(101) + chr(99) + '\157' + '\x64' + chr(772 - 671))(chr(117) + chr(0b110 + 0o156) + chr(0b1100110) + chr(45) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def SithVQ6QLsIV(oVre8I6UXc3b): Y1fa9S5O7yms = (oVre8I6UXc3b.K6dkrI1oAm5b, oVre8I6UXc3b.connect, oVre8I6UXc3b.U6MiWrhuCi2Y, oVre8I6UXc3b.redirect, oVre8I6UXc3b.vBsMWH4gAEfy) Y1fa9S5O7yms = YyaZ4tpXu4lf(hi1V0ySZcNds(None, Y1fa9S5O7yms)) if not Y1fa9S5O7yms: return ehT0Px3KOsy9('\060' + chr(111) + chr(1803 - 1755), 6480 - 6472) return Dx22bkKPdt5d(Y1fa9S5O7yms) < ehT0Px3KOsy9(chr(1502 - 1454) + '\x6f' + chr(1309 - 1261), 8)
pypa/pipenv
pipenv/vendor/urllib3/util/retry.py
Retry.increment
def increment(self, method=None, url=None, response=None, error=None, _pool=None, _stacktrace=None): """ Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.HTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise six.reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status cause = 'unknown' status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise six.reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or not self._is_method_retryable(method): raise six.reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = 'too many redirects' redirect_location = response.get_redirect_location() status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and a the given method is in the whitelist cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format( status_code=response.status) status = response.status history = self.history + (RequestHistory(method, url, error, status, redirect_location),) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, history=history) if new_retry.is_exhausted(): raise MaxRetryError(_pool, url, error or ResponseError(cause)) log.debug("Incremented Retry for (url='%s'): %r", url, new_retry) return new_retry
python
def increment(self, method=None, url=None, response=None, error=None, _pool=None, _stacktrace=None): """ Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.HTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: # Disabled, indicate to re-raise the error. raise six.reraise(type(error), error, _stacktrace) total = self.total if total is not None: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status cause = 'unknown' status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise six.reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or not self._is_method_retryable(method): raise six.reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = 'too many redirects' redirect_location = response.get_redirect_location() status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and a the given method is in the whitelist cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format( status_code=response.status) status = response.status history = self.history + (RequestHistory(method, url, error, status, redirect_location),) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, history=history) if new_retry.is_exhausted(): raise MaxRetryError(_pool, url, error or ResponseError(cause)) log.debug("Incremented Retry for (url='%s'): %r", url, new_retry) return new_retry
[ "def", "increment", "(", "self", ",", "method", "=", "None", ",", "url", "=", "None", ",", "response", "=", "None", ",", "error", "=", "None", ",", "_pool", "=", "None", ",", "_stacktrace", "=", "None", ")", ":", "if", "self", ".", "total", "is", "False", "and", "error", ":", "# Disabled, indicate to re-raise the error.", "raise", "six", ".", "reraise", "(", "type", "(", "error", ")", ",", "error", ",", "_stacktrace", ")", "total", "=", "self", ".", "total", "if", "total", "is", "not", "None", ":", "total", "-=", "1", "connect", "=", "self", ".", "connect", "read", "=", "self", ".", "read", "redirect", "=", "self", ".", "redirect", "status_count", "=", "self", ".", "status", "cause", "=", "'unknown'", "status", "=", "None", "redirect_location", "=", "None", "if", "error", "and", "self", ".", "_is_connection_error", "(", "error", ")", ":", "# Connect retry?", "if", "connect", "is", "False", ":", "raise", "six", ".", "reraise", "(", "type", "(", "error", ")", ",", "error", ",", "_stacktrace", ")", "elif", "connect", "is", "not", "None", ":", "connect", "-=", "1", "elif", "error", "and", "self", ".", "_is_read_error", "(", "error", ")", ":", "# Read retry?", "if", "read", "is", "False", "or", "not", "self", ".", "_is_method_retryable", "(", "method", ")", ":", "raise", "six", ".", "reraise", "(", "type", "(", "error", ")", ",", "error", ",", "_stacktrace", ")", "elif", "read", "is", "not", "None", ":", "read", "-=", "1", "elif", "response", "and", "response", ".", "get_redirect_location", "(", ")", ":", "# Redirect retry?", "if", "redirect", "is", "not", "None", ":", "redirect", "-=", "1", "cause", "=", "'too many redirects'", "redirect_location", "=", "response", ".", "get_redirect_location", "(", ")", "status", "=", "response", ".", "status", "else", ":", "# Incrementing because of a server error like a 500 in", "# status_forcelist and a the given method is in the whitelist", "cause", "=", "ResponseError", ".", "GENERIC_ERROR", "if", "response", "and", "response", ".", "status", ":", "if", "status_count", "is", "not", "None", ":", "status_count", "-=", "1", "cause", "=", "ResponseError", ".", "SPECIFIC_ERROR", ".", "format", "(", "status_code", "=", "response", ".", "status", ")", "status", "=", "response", ".", "status", "history", "=", "self", ".", "history", "+", "(", "RequestHistory", "(", "method", ",", "url", ",", "error", ",", "status", ",", "redirect_location", ")", ",", ")", "new_retry", "=", "self", ".", "new", "(", "total", "=", "total", ",", "connect", "=", "connect", ",", "read", "=", "read", ",", "redirect", "=", "redirect", ",", "status", "=", "status_count", ",", "history", "=", "history", ")", "if", "new_retry", ".", "is_exhausted", "(", ")", ":", "raise", "MaxRetryError", "(", "_pool", ",", "url", ",", "error", "or", "ResponseError", "(", "cause", ")", ")", "log", ".", "debug", "(", "\"Incremented Retry for (url='%s'): %r\"", ",", "url", ",", "new_retry", ")", "return", "new_retry" ]
Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.HTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object.
[ "Return", "a", "new", "Retry", "object", "with", "incremented", "retry", "counters", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/urllib3/util/retry.py#L329-L402
train
Increment the retry counters for the given method and url.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbc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Qr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(0b101 + 0o62) + chr(1477 - 1427), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101111 + 0o2) + chr(48) + chr(0b11101 + 0o31), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1000000 + 0o57) + chr(0b10001 + 0o42) + chr(0b10011 + 0o42) + chr(802 - 748), 0b1000), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\157' + '\061' + chr(132 - 82) + chr(1848 - 1794), 61663 - 61655), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b110101) + '\x33', 6303 - 6295), ehT0Px3KOsy9('\060' + chr(11806 - 11695) + chr(0b110011) + '\063' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(1239 - 1191) + chr(111) + '\062' + '\x30' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b10001 + 0o41) + chr(0b1111 + 0o42) + chr(2086 - 2035), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + '\065' + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\x37' + '\x35', 36926 - 36918), ehT0Px3KOsy9(chr(1129 - 1081) + chr(111) + chr(49) + '\060', 18089 - 18081), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(0b110100) + chr(0b110101 + 0o0), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + '\062' + chr(0b110110) + chr(575 - 526), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b110100 + 0o73) + '\x32' + chr(0b100101 + 0o13) + chr(0b101011 + 0o11), 63188 - 63180), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1100001 + 0o16) + '\x34' + '\066', 6094 - 6086), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110100) + '\x33', 11244 - 11236), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10111 + 0o33) + chr(257 - 207) + chr(0b10000 + 0o41), 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b100101 + 0o15) + '\x30' + chr(50), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1505 - 1454) + chr(0b101100 + 0o6) + chr(54), 22011 - 22003), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + '\061' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + '\x31' + chr(0b110101) + '\x34', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101111 + 0o1), 0o10), ehT0Px3KOsy9('\060' + chr(0b101101 + 0o102) + '\x33' + '\x36' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b10001 + 0o43) + chr(0b100 + 0o54), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b11110 + 0o31) + '\066', 16176 - 16168), ehT0Px3KOsy9(chr(769 - 721) + chr(111) + chr(50) + chr(1717 - 1668), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + chr(0b110101) + '\x30', 0o10), ehT0Px3KOsy9('\060' + chr(1042 - 931) + chr(553 - 502) + chr(0b1011 + 0o51) + chr(0b10010 + 0o45), 0o10), ehT0Px3KOsy9(chr(176 - 128) + chr(0b11010 + 0o125) + '\062' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(1982 - 1934) + chr(0b1101111) + chr(0b110001) + chr(1028 - 977) + '\060', 21934 - 21926), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\x32' + chr(0b110010), 31463 - 31455), ehT0Px3KOsy9('\x30' + '\x6f' + chr(581 - 531) + chr(1569 - 1518) + chr(0b110100), 35941 - 35933), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(6327 - 6216) + '\x31' + '\065' + '\x32', 55966 - 55958), ehT0Px3KOsy9('\x30' + chr(0b1000100 + 0o53) + chr(0b110011) + '\064' + '\067', 8), ehT0Px3KOsy9(chr(2073 - 2025) + chr(6265 - 6154) + '\x32' + '\067' + chr(0b100101 + 0o15), 20291 - 20283), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(2017 - 1968) + '\x31', 6325 - 6317), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b110000 + 0o0) + '\x32', 49941 - 49933), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(0b110001) + chr(0b110100), 29613 - 29605), ehT0Px3KOsy9(chr(236 - 188) + chr(0b1101111) + '\x33' + '\066' + chr(52), 37386 - 37378), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010110 + 0o31) + chr(0b110010) + chr(0b10111 + 0o40) + chr(48), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110101) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4'), chr(100) + chr(5161 - 5060) + chr(0b1100011) + chr(905 - 794) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b110100 + 0o4)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def vGYFMKlhPcqx(oVre8I6UXc3b, CVRCXTcnOnH6=None, CYCr3xzMHl4K=None, ekFGDFIe9V8v=None, EUdPatOS1wx0=None, F5MxLpJ9axuq=None, ecpCei4Oolgz=None): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb1p\x8a=\x99\x90\xb6\xe4\xeb\xd0=\x07'), '\144' + '\145' + chr(99) + chr(0b100010 + 0o115) + '\x64' + '\x65')('\x75' + '\164' + chr(0b100111 + 0o77) + chr(45) + chr(0b111000))) is ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(48), 8) and EUdPatOS1wx0: raise xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\x88#\x9c7\x82\xaa\xe2'), chr(0b1010010 + 0o22) + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1001011 + 0o32))(chr(0b101011 + 0o112) + '\x74' + chr(102) + chr(0b111 + 0o46) + chr(1382 - 1326)))(wmQmyeWBmUpv(EUdPatOS1wx0), EUdPatOS1wx0, ecpCei4Oolgz) K6dkrI1oAm5b = oVre8I6UXc3b.K6dkrI1oAm5b if K6dkrI1oAm5b is not None: K6dkrI1oAm5b -= ehT0Px3KOsy9('\060' + '\x6f' + chr(1973 - 1924), 0b1000) eg1Ei2W_dvMC = oVre8I6UXc3b.connect U6MiWrhuCi2Y = oVre8I6UXc3b.U6MiWrhuCi2Y IDCAARnYWYvG = oVre8I6UXc3b.redirect wp6PDevxHCbX = oVre8I6UXc3b.vBsMWH4gAEfy bY5_GMM2hEOg = xafqLlk3kkUe(SXOLrMavuUCe(b'\x8f(\x858\x84\xae\xe9'), chr(0b1100010 + 0o2) + chr(101) + chr(8509 - 8410) + '\x6f' + chr(0b1100010 + 0o2) + '\x65')(chr(117) + '\164' + '\x66' + '\x2d' + chr(561 - 505)) vBsMWH4gAEfy = None pfLVH_qr5CNW = None if EUdPatOS1wx0 and xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5/\x9d\t\x88\xb6\xe9\xe5\xcf\xde|\x0c\xde\xeayF\xe3\xf0\xb9{'), chr(100) + chr(0b110001 + 0o64) + '\x63' + chr(5555 - 5444) + '\x64' + chr(0b1100101))('\x75' + chr(0b1011100 + 0o30) + '\x66' + chr(0b11 + 0o52) + chr(2706 - 2650)))(EUdPatOS1wx0): if eg1Ei2W_dvMC is ehT0Px3KOsy9('\060' + chr(0b1101111) + '\060', 8): raise xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\x88#\x9c7\x82\xaa\xe2'), '\x64' + '\145' + chr(0b1100011) + chr(111) + chr(0b1110 + 0o126) + '\x65')('\x75' + chr(10189 - 10073) + chr(0b1100110) + chr(45) + chr(56)))(wmQmyeWBmUpv(EUdPatOS1wx0), EUdPatOS1wx0, ecpCei4Oolgz) elif eg1Ei2W_dvMC is not None: eg1Ei2W_dvMC -= ehT0Px3KOsy9('\060' + chr(111) + '\061', 8) elif EUdPatOS1wx0 and xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5/\x9d\t\x99\xbc\xe6\xef\xf5\xd8z\x17\xde\xf6'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(4865 - 4754) + chr(0b10101 + 0o117) + '\x65')('\x75' + '\164' + chr(0b1100110) + chr(0b101101 + 0o0) + chr(56)))(EUdPatOS1wx0): if U6MiWrhuCi2Y is ehT0Px3KOsy9(chr(48) + '\x6f' + '\x30', 8) or not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5/\x9d\t\x86\xbc\xf3\xe3\xc5\xd9W\x17\xd4\xf0TZ\xf0\xe0\xbal'), '\x64' + chr(0b1100101) + chr(0b100101 + 0o76) + chr(111) + '\x64' + chr(0b1100101))(chr(12715 - 12598) + '\164' + '\146' + chr(45) + '\x38'))(CVRCXTcnOnH6): raise xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'\x88#\x9c7\x82\xaa\xe2'), chr(6583 - 6483) + chr(101) + chr(99) + chr(0b10010 + 0o135) + chr(0b1100001 + 0o3) + chr(101))(chr(10645 - 10528) + chr(116) + '\146' + '\x2d' + chr(56)))(wmQmyeWBmUpv(EUdPatOS1wx0), EUdPatOS1wx0, ecpCei4Oolgz) elif U6MiWrhuCi2Y is not None: U6MiWrhuCi2Y -= ehT0Px3KOsy9('\x30' + chr(0b111011 + 0o64) + '\061', 8) elif ekFGDFIe9V8v and xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d#\x9a\t\x99\xbc\xe3\xe2\xd8\xd8k\x11\xee\xe8I@\xf0\xf6\xbff\x02'), '\144' + chr(3259 - 3158) + chr(0b1100011) + '\x6f' + '\144' + chr(5935 - 5834))('\165' + '\x74' + chr(0b1100110) + '\055' + chr(56)))(): if IDCAARnYWYvG is not None: IDCAARnYWYvG -= ehT0Px3KOsy9('\x30' + chr(5802 - 5691) + '\061', 8) bY5_GMM2hEOg = xafqLlk3kkUe(SXOLrMavuUCe(b'\x8e)\x81v\x86\xb8\xe9\xf2\x8a\xcfm\x01\xd8\xf6C@\xe5\xf1'), chr(0b111101 + 0o47) + '\145' + chr(0b10000 + 0o123) + chr(0b100001 + 0o116) + '\144' + '\145')('\x75' + chr(0b101001 + 0o113) + chr(0b10010 + 0o124) + '\055' + chr(594 - 538)) pfLVH_qr5CNW = ekFGDFIe9V8v.get_redirect_location() vBsMWH4gAEfy = ekFGDFIe9V8v.vBsMWH4gAEfy else: bY5_GMM2hEOg = WBOLjbH8RyhM.GENERIC_ERROR if ekFGDFIe9V8v and xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c\x04\x9d\x1b\xbc\x91\xb3\xec\xeb\xf8n\x1c'), chr(4781 - 4681) + '\x65' + '\143' + '\157' + '\144' + '\145')(chr(117) + '\164' + chr(0b1100011 + 0o3) + chr(1270 - 1225) + '\070')): if wp6PDevxHCbX is not None: wp6PDevxHCbX -= ehT0Px3KOsy9('\x30' + '\x6f' + chr(49), 8) bY5_GMM2hEOg = WBOLjbH8RyhM.SPECIFIC_ERROR.V4roHaS3Ppej(status_code=ekFGDFIe9V8v.vBsMWH4gAEfy) vBsMWH4gAEfy = ekFGDFIe9V8v.vBsMWH4gAEfy sD1K7SLfPnDB = oVre8I6UXc3b.sD1K7SLfPnDB + (kkdBAVvftnlr(CVRCXTcnOnH6, CYCr3xzMHl4K, EUdPatOS1wx0, vBsMWH4gAEfy, pfLVH_qr5CNW),) GgwnZq23Mq4r = oVre8I6UXc3b.new(total=K6dkrI1oAm5b, connect=eg1Ei2W_dvMC, read=U6MiWrhuCi2Y, redirect=IDCAARnYWYvG, status=wp6PDevxHCbX, history=sD1K7SLfPnDB) if xafqLlk3kkUe(GgwnZq23Mq4r, xafqLlk3kkUe(SXOLrMavuUCe(b'\x935\xb13\x93\xb1\xe6\xfe\xd9\xc9m\x01'), '\144' + chr(0b1111 + 0o126) + chr(2636 - 2537) + '\x6f' + '\x64' + chr(4781 - 4680))('\x75' + chr(0b111101 + 0o67) + chr(8488 - 8386) + '\x2d' + chr(0b111000)))(): raise TgiOl7EnaGPV(F5MxLpJ9axuq, CYCr3xzMHl4K, EUdPatOS1wx0 or WBOLjbH8RyhM(bY5_GMM2hEOg)) xafqLlk3kkUe(WHAFymdp8Jcy, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9e#\x8c#\x8c'), chr(100) + chr(0b10111 + 0o116) + '\143' + chr(0b111100 + 0o63) + '\144' + chr(0b101101 + 0o70))(chr(0b110001 + 0o104) + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3(\x8d$\x8e\xb4\xe2\xe5\xde\xd8lE\xe3\xe1RQ\xe8\xa2\xb0f\x1e \xddU\xcc}\x95\xc00+\xf5\xb5P\xc7\x9f;'), chr(100) + chr(0b1100101) + chr(8797 - 8698) + chr(3361 - 3250) + '\x64' + '\x65')(chr(1135 - 1018) + chr(1638 - 1522) + chr(0b100010 + 0o104) + '\055' + chr(0b111000)), CYCr3xzMHl4K, GgwnZq23Mq4r) return GgwnZq23Mq4r
pypa/pipenv
pipenv/patched/notpip/_vendor/cachecontrol/adapter.py
CacheControlAdapter.build_response
def build_response( self, request, response, from_cache=False, cacheable_methods=None ): """ Build a response by making a request or using the cache. This will end up calling send and returning a potentially cached response """ cacheable = cacheable_methods or self.cacheable_methods if not from_cache and request.method in cacheable: # Check for any heuristics that might update headers # before trying to cache. if self.heuristic: response = self.heuristic.apply(response) # apply any expiration heuristics if response.status == 304: # We must have sent an ETag request. This could mean # that we've been expired already or that we simply # have an etag. In either case, we want to try and # update the cache if that is the case. cached_response = self.controller.update_cached_response( request, response ) if cached_response is not response: from_cache = True # We are done with the server response, read a # possible response body (compliant servers will # not return one, but we cannot be 100% sure) and # release the connection back to the pool. response.read(decode_content=False) response.release_conn() response = cached_response # We always cache the 301 responses elif response.status == 301: self.controller.cache_response(request, response) else: # Wrap the response file with a wrapper that will cache the # response when the stream has been consumed. response._fp = CallbackFileWrapper( response._fp, functools.partial( self.controller.cache_response, request, response ), ) if response.chunked: super_update_chunk_length = response._update_chunk_length def _update_chunk_length(self): super_update_chunk_length() if self.chunk_left == 0: self._fp._close() response._update_chunk_length = types.MethodType( _update_chunk_length, response ) resp = super(CacheControlAdapter, self).build_response(request, response) # See if we should invalidate the cache. if request.method in self.invalidating_methods and resp.ok: cache_url = self.controller.cache_url(request.url) self.cache.delete(cache_url) # Give the request a from_cache attr to let people use it resp.from_cache = from_cache return resp
python
def build_response( self, request, response, from_cache=False, cacheable_methods=None ): """ Build a response by making a request or using the cache. This will end up calling send and returning a potentially cached response """ cacheable = cacheable_methods or self.cacheable_methods if not from_cache and request.method in cacheable: # Check for any heuristics that might update headers # before trying to cache. if self.heuristic: response = self.heuristic.apply(response) # apply any expiration heuristics if response.status == 304: # We must have sent an ETag request. This could mean # that we've been expired already or that we simply # have an etag. In either case, we want to try and # update the cache if that is the case. cached_response = self.controller.update_cached_response( request, response ) if cached_response is not response: from_cache = True # We are done with the server response, read a # possible response body (compliant servers will # not return one, but we cannot be 100% sure) and # release the connection back to the pool. response.read(decode_content=False) response.release_conn() response = cached_response # We always cache the 301 responses elif response.status == 301: self.controller.cache_response(request, response) else: # Wrap the response file with a wrapper that will cache the # response when the stream has been consumed. response._fp = CallbackFileWrapper( response._fp, functools.partial( self.controller.cache_response, request, response ), ) if response.chunked: super_update_chunk_length = response._update_chunk_length def _update_chunk_length(self): super_update_chunk_length() if self.chunk_left == 0: self._fp._close() response._update_chunk_length = types.MethodType( _update_chunk_length, response ) resp = super(CacheControlAdapter, self).build_response(request, response) # See if we should invalidate the cache. if request.method in self.invalidating_methods and resp.ok: cache_url = self.controller.cache_url(request.url) self.cache.delete(cache_url) # Give the request a from_cache attr to let people use it resp.from_cache = from_cache return resp
[ "def", "build_response", "(", "self", ",", "request", ",", "response", ",", "from_cache", "=", "False", ",", "cacheable_methods", "=", "None", ")", ":", "cacheable", "=", "cacheable_methods", "or", "self", ".", "cacheable_methods", "if", "not", "from_cache", "and", "request", ".", "method", "in", "cacheable", ":", "# Check for any heuristics that might update headers", "# before trying to cache.", "if", "self", ".", "heuristic", ":", "response", "=", "self", ".", "heuristic", ".", "apply", "(", "response", ")", "# apply any expiration heuristics", "if", "response", ".", "status", "==", "304", ":", "# We must have sent an ETag request. This could mean", "# that we've been expired already or that we simply", "# have an etag. In either case, we want to try and", "# update the cache if that is the case.", "cached_response", "=", "self", ".", "controller", ".", "update_cached_response", "(", "request", ",", "response", ")", "if", "cached_response", "is", "not", "response", ":", "from_cache", "=", "True", "# We are done with the server response, read a", "# possible response body (compliant servers will", "# not return one, but we cannot be 100% sure) and", "# release the connection back to the pool.", "response", ".", "read", "(", "decode_content", "=", "False", ")", "response", ".", "release_conn", "(", ")", "response", "=", "cached_response", "# We always cache the 301 responses", "elif", "response", ".", "status", "==", "301", ":", "self", ".", "controller", ".", "cache_response", "(", "request", ",", "response", ")", "else", ":", "# Wrap the response file with a wrapper that will cache the", "# response when the stream has been consumed.", "response", ".", "_fp", "=", "CallbackFileWrapper", "(", "response", ".", "_fp", ",", "functools", ".", "partial", "(", "self", ".", "controller", ".", "cache_response", ",", "request", ",", "response", ")", ",", ")", "if", "response", ".", "chunked", ":", "super_update_chunk_length", "=", "response", ".", "_update_chunk_length", "def", "_update_chunk_length", "(", "self", ")", ":", "super_update_chunk_length", "(", ")", "if", "self", ".", "chunk_left", "==", "0", ":", "self", ".", "_fp", ".", "_close", "(", ")", "response", ".", "_update_chunk_length", "=", "types", ".", "MethodType", "(", "_update_chunk_length", ",", "response", ")", "resp", "=", "super", "(", "CacheControlAdapter", ",", "self", ")", ".", "build_response", "(", "request", ",", "response", ")", "# See if we should invalidate the cache.", "if", "request", ".", "method", "in", "self", ".", "invalidating_methods", "and", "resp", ".", "ok", ":", "cache_url", "=", "self", ".", "controller", ".", "cache_url", "(", "request", ".", "url", ")", "self", ".", "cache", ".", "delete", "(", "cache_url", ")", "# Give the request a from_cache attr to let people use it", "resp", ".", "from_cache", "=", "from_cache", "return", "resp" ]
Build a response by making a request or using the cache. This will end up calling send and returning a potentially cached response
[ "Build", "a", "response", "by", "making", "a", "request", "or", "using", "the", "cache", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_vendor/cachecontrol/adapter.py#L57-L129
train
Builds a response object from the request and response.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh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uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(978 - 930) + chr(111) + chr(0b110011) + chr(0b100001 + 0o25) + chr(2323 - 2270), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b11101 + 0o122) + chr(50) + '\067' + chr(0b110010), 56927 - 56919), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1000 - 951) + chr(367 - 318) + chr(0b10011 + 0o36), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(53) + chr(50), 0b1000), ehT0Px3KOsy9('\060' + chr(4800 - 4689) + '\x32' + chr(0b1 + 0o62) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(492 - 444) + chr(0b110011 + 0o74) + chr(0b101011 + 0o7) + '\064' + chr(0b100111 + 0o16), 57961 - 57953), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(52) + chr(598 - 547), 0o10), ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + chr(0b11 + 0o60) + chr(0b110 + 0o54) + chr(0b110000 + 0o3), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001 + 0o2) + chr(0b11011 + 0o30) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b11001 + 0o31) + '\x34' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(260 - 209), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + '\062' + chr(50) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100 + 0o143) + chr(0b110001 + 0o1) + '\x31' + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b1 + 0o63) + chr(1808 - 1760), 0o10), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\x6f' + chr(1748 - 1693) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\x6f' + chr(0b110001) + '\x37' + chr(0b101111 + 0o7), ord("\x08")), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(2627 - 2572) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + chr(5303 - 5192) + '\x32' + '\060', 21356 - 21348), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\x33' + '\065', 9799 - 9791), ehT0Px3KOsy9('\060' + chr(0b1000 + 0o147) + '\x31' + chr(2113 - 2059) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(1931 - 1883) + '\x6f' + '\066' + '\065', 63423 - 63415), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + chr(2206 - 2156) + chr(848 - 795), 28557 - 28549), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(722 - 671) + chr(49), 5568 - 5560), ehT0Px3KOsy9(chr(1938 - 1890) + chr(0b10 + 0o155) + '\061' + chr(2780 - 2727) + chr(55), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10111 + 0o35) + '\x32', 10906 - 10898), ehT0Px3KOsy9(chr(48) + chr(0b1010110 + 0o31) + chr(0b110001) + chr(0b110111) + chr(0b11011 + 0o26), 43032 - 43024), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(694 - 642) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b10101 + 0o132) + chr(0b10 + 0o60) + chr(2018 - 1966) + chr(133 - 83), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(716 - 666) + chr(1486 - 1434), 62682 - 62674), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1110 + 0o43) + '\x31' + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\061', 0b1000), ehT0Px3KOsy9('\060' + chr(7658 - 7547) + chr(0b110001) + '\x33' + chr(55), 0o10), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1000000 + 0o57) + chr(0b1001 + 0o51) + chr(0b110101) + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + '\x33' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(2171 - 2117) + chr(48), 6357 - 6349), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1144 - 1093) + '\x35' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(659 - 606) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(51) + '\062' + chr(0b1010 + 0o54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\x30' + chr(51), 0b1000), ehT0Px3KOsy9(chr(377 - 329) + chr(111) + chr(1005 - 955) + chr(1045 - 997) + '\063', 39944 - 39936)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + '\065' + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdb'), chr(0b1000111 + 0o35) + chr(0b1001000 + 0o35) + chr(6212 - 6113) + '\x6f' + chr(3251 - 3151) + '\x65')('\x75' + chr(116) + chr(0b100111 + 0o77) + chr(45) + chr(0b10010 + 0o46)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def fZbDk3MEjS0T(oVre8I6UXc3b, r9Xp41HGNpwj, ekFGDFIe9V8v, qLvdRB_d6x2S=ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110000), 24520 - 24512), dzcWdNT0sWSi=None): I4BuSXYyBbT0 = dzcWdNT0sWSi or oVre8I6UXc3b.cacheable_methods if not qLvdRB_d6x2S and xafqLlk3kkUe(r9Xp41HGNpwj, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6\xec\x1bi\xc0\xf1\xc0\xbd\x95\xc8C\xa4'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + chr(0b1001011 + 0o32))(chr(0b100110 + 0o117) + chr(9419 - 9303) + chr(2289 - 2187) + chr(758 - 713) + chr(0b11011 + 0o35))) in I4BuSXYyBbT0: if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d\xdf<X\xf1\xd6\xd7\xba\xb9'), '\x64' + chr(8609 - 8508) + chr(6264 - 6165) + chr(10645 - 10534) + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(1721 - 1619) + '\x2d' + '\070')): ekFGDFIe9V8v = oVre8I6UXc3b.heuristic.apply(ekFGDFIe9V8v) if xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x83\xf8:g\xcf\xed\x97\xb4\x9b\xe3m\xeb'), chr(0b1000010 + 0o42) + chr(101) + chr(0b100010 + 0o101) + '\157' + chr(1893 - 1793) + chr(0b111111 + 0o46))(chr(0b10110 + 0o137) + '\164' + '\146' + chr(0b101 + 0o50) + chr(0b11101 + 0o33))) == ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111 + 0o0) + chr(0b110100) + chr(54) + chr(0b10001 + 0o37), 61658 - 61650): aCRpiGoKdZOy = oVre8I6UXc3b.controller.update_cached_response(r9Xp41HGNpwj, ekFGDFIe9V8v) if aCRpiGoKdZOy is not ekFGDFIe9V8v: qLvdRB_d6x2S = ehT0Px3KOsy9('\x30' + '\x6f' + '\x31', 0b1000) xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa0\x8c\x04C\xcf\xd7\xcb\xa6\x99\xcf9\xcb'), chr(3040 - 2940) + chr(6865 - 6764) + chr(7755 - 7656) + chr(111) + chr(0b1100100) + chr(7134 - 7033))(chr(0b10100 + 0o141) + chr(0b1110100) + chr(0b1100110) + chr(1434 - 1389) + chr(0b111000)))(decode_content=ehT0Px3KOsy9(chr(1836 - 1788) + '\x6f' + chr(0b110000), 8)) xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x87\xdf%O\xf9\xd6\xc6\x8c\xb9\xc9e\xfc'), chr(5594 - 5494) + chr(0b1100101) + chr(0b111011 + 0o50) + chr(10809 - 10698) + chr(100) + chr(0b1100101))('\x75' + chr(0b1100000 + 0o24) + chr(102) + chr(0b110 + 0o47) + chr(549 - 493)))() ekFGDFIe9V8v = aCRpiGoKdZOy elif xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x83\xf8:g\xcf\xed\x97\xb4\x9b\xe3m\xeb'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1010 + 0o132) + chr(2273 - 2172))('\x75' + chr(0b1011011 + 0o31) + chr(0b100000 + 0o106) + '\055' + chr(0b1111 + 0o51))) == ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + '\x34' + chr(1931 - 1878) + '\065', 31282 - 31274): xafqLlk3kkUe(oVre8I6UXc3b.controller, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xdb*B\xfd\xfa\xd1\xb6\xa9\xd6d\xfc\xf8\xc5'), chr(0b1100100) + chr(0b111000 + 0o55) + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(0b1000110 + 0o57) + '\x74' + '\146' + '\x2d' + '\x38'))(r9Xp41HGNpwj, ekFGDFIe9V8v) else: ekFGDFIe9V8v.MRCf7IArJD95 = IZdG187vFkBf(ekFGDFIe9V8v.MRCf7IArJD95, E6ula8_Zv1yl.q_kvx1iNIzrz(oVre8I6UXc3b.controller.cache_response, r9Xp41HGNpwj, ekFGDFIe9V8v)) if xafqLlk3kkUe(ekFGDFIe9V8v, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xd2<D\xf3\xc0\xc7'), '\144' + chr(0b11100 + 0o111) + chr(0b1100011) + chr(5244 - 5133) + chr(100) + chr(0b1100101))(chr(8118 - 8001) + '\164' + chr(8308 - 8206) + '\x2d' + '\070')): C8CoepGy2H6r = ekFGDFIe9V8v._update_chunk_length def hc0xyfAvpNuf(oVre8I6UXc3b): C8CoepGy2H6r() if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xd2<D\xf3\xfa\xcf\xb6\xbc\xd2'), '\x64' + '\145' + '\143' + '\x6f' + '\144' + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b0 + 0o55) + chr(0b101100 + 0o14))) == ehT0Px3KOsy9(chr(48) + chr(0b111111 + 0o60) + chr(1703 - 1655), 8): xafqLlk3kkUe(oVre8I6UXc3b._fp, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaa\xd9%E\xeb\xc0'), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(0b100111 + 0o75) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(2012 - 1967) + chr(56)))() ekFGDFIe9V8v.hc0xyfAvpNuf = yorMPSC245Rr.MethodType(hc0xyfAvpNuf, ekFGDFIe9V8v) o76vgcEvX48n = KNx0Ujaz9UM0(D2M5yW9WvY8y, oVre8I6UXc3b).build_response(r9Xp41HGNpwj, ekFGDFIe9V8v) if xafqLlk3kkUe(r9Xp41HGNpwj, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6\xec\x1bi\xc0\xf1\xc0\xbd\x95\xc8C\xa4'), chr(1984 - 1884) + chr(0b1001 + 0o134) + chr(0b1100011) + chr(0b1101111) + chr(4337 - 4237) + chr(101))(chr(0b110110 + 0o77) + chr(0b1110100) + chr(4102 - 4000) + '\x2d' + chr(695 - 639))) in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9c\xd4?K\xf4\xcc\xc7\xb2\xae\xcfe\xf5\xd4\xcd\\\nS\x7f9\x01'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(873 - 828) + chr(56))) and xafqLlk3kkUe(o76vgcEvX48n, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\xd1'), '\x64' + chr(3607 - 3506) + chr(0b1010001 + 0o22) + chr(0b100111 + 0o110) + '\x64' + '\145')('\x75' + '\x74' + chr(3461 - 3359) + chr(0b101101) + chr(0b110111 + 0o1))): PDES3fT3VQDc = oVre8I6UXc3b.controller.cache_url(r9Xp41HGNpwj.CYCr3xzMHl4K) xafqLlk3kkUe(oVre8I6UXc3b.cache, xafqLlk3kkUe(SXOLrMavuUCe(b'\x91\xdf%O\xec\xc0'), chr(0b10100 + 0o120) + chr(101) + chr(0b1000011 + 0o40) + '\x6f' + chr(0b1100 + 0o130) + '\145')(chr(0b1110101) + '\x74' + '\x66' + '\055' + chr(0b111000)))(PDES3fT3VQDc) o76vgcEvX48n.qLvdRB_d6x2S = qLvdRB_d6x2S return o76vgcEvX48n
pypa/pipenv
pipenv/vendor/shellingham/posix/linux.py
get_process_mapping
def get_process_mapping(): """Try to look up the process tree via Linux's /proc """ with open('/proc/{0}/stat'.format(os.getpid())) as f: self_tty = f.read().split()[STAT_TTY] processes = {} for pid in os.listdir('/proc'): if not pid.isdigit(): continue try: stat = '/proc/{0}/stat'.format(pid) cmdline = '/proc/{0}/cmdline'.format(pid) with open(stat) as fstat, open(cmdline) as fcmdline: stat = re.findall(r'\(.+\)|\S+', fstat.read()) cmd = fcmdline.read().split('\x00')[:-1] ppid = stat[STAT_PPID] tty = stat[STAT_TTY] if tty == self_tty: processes[pid] = Process( args=tuple(cmd), pid=pid, ppid=ppid, ) except IOError: # Process has disappeared - just ignore it. continue return processes
python
def get_process_mapping(): """Try to look up the process tree via Linux's /proc """ with open('/proc/{0}/stat'.format(os.getpid())) as f: self_tty = f.read().split()[STAT_TTY] processes = {} for pid in os.listdir('/proc'): if not pid.isdigit(): continue try: stat = '/proc/{0}/stat'.format(pid) cmdline = '/proc/{0}/cmdline'.format(pid) with open(stat) as fstat, open(cmdline) as fcmdline: stat = re.findall(r'\(.+\)|\S+', fstat.read()) cmd = fcmdline.read().split('\x00')[:-1] ppid = stat[STAT_PPID] tty = stat[STAT_TTY] if tty == self_tty: processes[pid] = Process( args=tuple(cmd), pid=pid, ppid=ppid, ) except IOError: # Process has disappeared - just ignore it. continue return processes
[ "def", "get_process_mapping", "(", ")", ":", "with", "open", "(", "'/proc/{0}/stat'", ".", "format", "(", "os", ".", "getpid", "(", ")", ")", ")", "as", "f", ":", "self_tty", "=", "f", ".", "read", "(", ")", ".", "split", "(", ")", "[", "STAT_TTY", "]", "processes", "=", "{", "}", "for", "pid", "in", "os", ".", "listdir", "(", "'/proc'", ")", ":", "if", "not", "pid", ".", "isdigit", "(", ")", ":", "continue", "try", ":", "stat", "=", "'/proc/{0}/stat'", ".", "format", "(", "pid", ")", "cmdline", "=", "'/proc/{0}/cmdline'", ".", "format", "(", "pid", ")", "with", "open", "(", "stat", ")", "as", "fstat", ",", "open", "(", "cmdline", ")", "as", "fcmdline", ":", "stat", "=", "re", ".", "findall", "(", "r'\\(.+\\)|\\S+'", ",", "fstat", ".", "read", "(", ")", ")", "cmd", "=", "fcmdline", ".", "read", "(", ")", ".", "split", "(", "'\\x00'", ")", "[", ":", "-", "1", "]", "ppid", "=", "stat", "[", "STAT_PPID", "]", "tty", "=", "stat", "[", "STAT_TTY", "]", "if", "tty", "==", "self_tty", ":", "processes", "[", "pid", "]", "=", "Process", "(", "args", "=", "tuple", "(", "cmd", ")", ",", "pid", "=", "pid", ",", "ppid", "=", "ppid", ",", ")", "except", "IOError", ":", "# Process has disappeared - just ignore it.", "continue", "return", "processes" ]
Try to look up the process tree via Linux's /proc
[ "Try", "to", "look", "up", "the", "process", "tree", "via", "Linux", "s", "/", "proc" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/shellingham/posix/linux.py#L11-L35
train
Try to find the process tree via Linux s proc - file and return a dict of Process objects.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yRO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dZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + chr(423 - 372) + chr(0b110100), 19132 - 19124), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + '\x33' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(0b101001 + 0o12) + chr(859 - 811), 17355 - 17347), ehT0Px3KOsy9(chr(0b110000) + chr(5565 - 5454) + chr(50) + chr(1180 - 1125) + chr(0b11 + 0o64), ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\157' + chr(2897 - 2843) + chr(50), 42708 - 42700), ehT0Px3KOsy9(chr(1366 - 1318) + '\157' + chr(0b110011) + '\x36' + chr(0b101 + 0o56), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + chr(1560 - 1511) + chr(1695 - 1643) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(1637 - 1583) + chr(158 - 109), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\064' + '\x32', 21286 - 21278), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100 + 0o63) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b101111 + 0o3), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(2040 - 1992) + '\x6f' + chr(0b110011) + chr(48) + chr(175 - 127), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + chr(0b110001) + chr(0b110100) + chr(547 - 499), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + '\x31' + '\x32', 15046 - 15038), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1110 + 0o51) + chr(55), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1110 + 0o141) + chr(0b10001 + 0o41) + chr(0b110010) + '\x31', 0o10), ehT0Px3KOsy9(chr(48) + chr(3711 - 3600) + chr(2212 - 2157) + chr(0b110001), 8), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\x6f' + '\x33' + chr(0b0 + 0o60) + '\064', 0o10), ehT0Px3KOsy9(chr(2183 - 2135) + chr(111) + chr(51) + '\x32' + chr(0b110101), 51122 - 51114), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + chr(49) + chr(0b110111) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(0b110010) + chr(2066 - 2014), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110 + 0o151) + chr(49) + chr(0b110111) + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x32' + '\x34' + '\062', 59712 - 59704), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + chr(458 - 406) + '\x37', 0b1000), ehT0Px3KOsy9('\x30' + chr(3528 - 3417) + chr(1022 - 973) + chr(49) + chr(0b110110), 999 - 991), ehT0Px3KOsy9(chr(174 - 126) + chr(0b1101111) + chr(49) + chr(48) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1110 + 0o141) + chr(51) + chr(0b110111) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(2041 - 1993) + chr(0b1101111) + '\x32' + chr(2113 - 2059) + chr(0b100 + 0o62), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(229 - 179) + chr(53) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(85 - 37) + chr(10963 - 10852) + chr(52) + chr(0b101101 + 0o11), 0o10), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(3998 - 3887) + '\x32' + '\066' + chr(1001 - 951), 2868 - 2860), ehT0Px3KOsy9('\060' + chr(111) + '\063' + chr(0b11101 + 0o26), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101010 + 0o5) + chr(49) + '\x37' + chr(779 - 728), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101111 + 0o3) + chr(0b110010) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110100) + chr(54), 8), ehT0Px3KOsy9(chr(622 - 574) + '\x6f' + chr(0b100 + 0o55) + '\x33' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + chr(52) + '\x33', 0b1000), ehT0Px3KOsy9(chr(736 - 688) + '\157' + chr(0b110101) + chr(2112 - 2064), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\066' + chr(49), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110101) + chr(0b101110 + 0o2), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2'), chr(0b1100100) + '\145' + chr(99) + chr(0b111001 + 0o66) + chr(0b100 + 0o140) + chr(0b1100101))(chr(0b101 + 0o160) + '\164' + chr(102) + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def DHsux26VH668(): with _fwkIVCGgtAN(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\xef*\xd0Q\xdc\x1fA\x9f\x16qh\xa1\x14'), '\144' + chr(101) + '\x63' + chr(9226 - 9115) + chr(7448 - 7348) + chr(0b1100101))('\x75' + '\x74' + chr(0b1011000 + 0o16) + chr(0b11011 + 0o22) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8a\xab*\xd0z\x927B\xb2Igv'), chr(1020 - 920) + '\x65' + chr(950 - 851) + '\157' + '\x64' + '\145')(chr(9182 - 9065) + chr(13087 - 12971) + chr(3173 - 3071) + chr(0b101101) + chr(1091 - 1035)))(xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\xfa,\xcf[\x97'), chr(100) + chr(4339 - 4238) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1010110 + 0o37) + chr(0b1110100) + chr(0b110 + 0o140) + '\055' + '\x38'))())) as EGyt1xfPT1P6: AROzUZ9xqMEQ = EGyt1xfPT1P6.read().split()[qfVf6Bc8eUDa] u3jR5ojviiu7 = {} for pdFjuIGjrFb4 in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0\xf6+\xcbV\x9a\x16'), '\x64' + chr(0b1100101) + chr(9568 - 9469) + chr(0b11 + 0o154) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(388 - 343) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\xef*\xd0Q'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + '\146' + chr(0b101101) + '\x38')): if not xafqLlk3kkUe(pdFjuIGjrFb4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb5\xec<\xd6U\x9a\x10'), '\x64' + chr(0b101000 + 0o75) + chr(0b101001 + 0o72) + '\x6f' + '\144' + chr(0b10010 + 0o123))(chr(0b1100101 + 0o20) + chr(10515 - 10399) + chr(0b110001 + 0o65) + '\x2d' + chr(0b1010 + 0o56)))(): continue try: KDNtFi7Uc6bo = xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\xef*\xd0Q\xdc\x1fA\x9f\x16qh\xa1\x14'), chr(3849 - 3749) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(0b101001 + 0o74))(chr(0b1010010 + 0o43) + chr(116) + chr(0b1100110) + chr(1696 - 1651) + chr(56)).V4roHaS3Ppej(pdFjuIGjrFb4) s1GL0UMwrhzc = xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\xef*\xd0Q\xdc\x1fA\x9f\x16aq\xa4\x0c#Q\xf4'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110 + 0o0) + '\055' + '\x38').V4roHaS3Ppej(pdFjuIGjrFb4) with _fwkIVCGgtAN(KDNtFi7Uc6bo) as gGvNhcWenWyr, _fwkIVCGgtAN(s1GL0UMwrhzc) as iePWy2KvT5NI: KDNtFi7Uc6bo = _7u55U49WwX2.findall(xafqLlk3kkUe(SXOLrMavuUCe(b'\x80\xb7v\x94n\xda\x18-\xb1\x12'), chr(0b1100100) + '\x65' + chr(0b11110 + 0o105) + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)), gGvNhcWenWyr.U6MiWrhuCi2Y()) cTsjNbtiBYNK = iePWy2KvT5NI.read().split(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc'), chr(6534 - 6434) + chr(8424 - 8323) + chr(0b101000 + 0o73) + chr(0b1101111) + '\144' + chr(101))(chr(117) + '\164' + '\x66' + '\055' + '\x38'))[:-ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49), ord("\x08"))] cEZBE0dZ_HeK = KDNtFi7Uc6bo[YqEd2l8Qk9Sz] gk8eCVx4GwZU = KDNtFi7Uc6bo[qfVf6Bc8eUDa] if gk8eCVx4GwZU == AROzUZ9xqMEQ: u3jR5ojviiu7[pdFjuIGjrFb4] = vDgRbSl1bynQ(args=KNyTy8rYcwji(cTsjNbtiBYNK), pid=pdFjuIGjrFb4, ppid=cEZBE0dZ_HeK) except sR2sPcm7Zrfn: continue return u3jR5ojviiu7
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
rehash
def rehash(path, blocksize=1 << 20): # type: (str, int) -> Tuple[str, str] """Return (hash, length) for path using hashlib.sha256()""" h = hashlib.sha256() length = 0 with open(path, 'rb') as f: for block in read_chunks(f, size=blocksize): length += len(block) h.update(block) digest = 'sha256=' + urlsafe_b64encode( h.digest() ).decode('latin1').rstrip('=') # unicode/str python2 issues return (digest, str(length))
python
def rehash(path, blocksize=1 << 20): # type: (str, int) -> Tuple[str, str] """Return (hash, length) for path using hashlib.sha256()""" h = hashlib.sha256() length = 0 with open(path, 'rb') as f: for block in read_chunks(f, size=blocksize): length += len(block) h.update(block) digest = 'sha256=' + urlsafe_b64encode( h.digest() ).decode('latin1').rstrip('=') # unicode/str python2 issues return (digest, str(length))
[ "def", "rehash", "(", "path", ",", "blocksize", "=", "1", "<<", "20", ")", ":", "# type: (str, int) -> Tuple[str, str]", "h", "=", "hashlib", ".", "sha256", "(", ")", "length", "=", "0", "with", "open", "(", "path", ",", "'rb'", ")", "as", "f", ":", "for", "block", "in", "read_chunks", "(", "f", ",", "size", "=", "blocksize", ")", ":", "length", "+=", "len", "(", "block", ")", "h", ".", "update", "(", "block", ")", "digest", "=", "'sha256='", "+", "urlsafe_b64encode", "(", "h", ".", "digest", "(", ")", ")", ".", "decode", "(", "'latin1'", ")", ".", "rstrip", "(", "'='", ")", "# unicode/str python2 issues", "return", "(", "digest", ",", "str", "(", "length", ")", ")" ]
Return (hash, length) for path using hashlib.sha256()
[ "Return", "(", "hash", "length", ")", "for", "path", "using", "hashlib", ".", "sha256", "()" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L71-L84
train
Return a hash and length for a file
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDP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jyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\066' + '\061', 14979 - 14971), ehT0Px3KOsy9(chr(2238 - 2190) + chr(0b10110 + 0o131) + chr(0b11101 + 0o26) + chr(93 - 45) + chr(827 - 775), ord("\x08")), ehT0Px3KOsy9(chr(150 - 102) + chr(111) + chr(54) + chr(0b111 + 0o57), ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + chr(0b110110) + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(52) + chr(0b10 + 0o57), 12449 - 12441), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + chr(52) + '\065', 0o10), ehT0Px3KOsy9(chr(2135 - 2087) + '\x6f' + chr(0b10001 + 0o41) + '\061' + '\x36', 20339 - 20331), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1021 - 968) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + '\x31' + chr(53) + chr(187 - 137), 40692 - 40684), ehT0Px3KOsy9('\060' + chr(0b1010001 + 0o36) + '\x32' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(2465 - 2415) + chr(0b1010 + 0o52) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(2127 - 2079) + chr(6749 - 6638) + chr(0b110011) + '\063' + chr(541 - 493), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001 + 0o146) + chr(0b110010) + '\065' + chr(0b110001), 27482 - 27474), ehT0Px3KOsy9('\x30' + '\x6f' + chr(52) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(2812 - 2701) + '\063' + chr(49) + chr(231 - 183), 0o10), ehT0Px3KOsy9(chr(147 - 99) + '\157' + '\x31' + chr(0b1 + 0o64) + chr(0b101010 + 0o6), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(2164 - 2115) + chr(1994 - 1946), 34369 - 34361), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + chr(1910 - 1860) + chr(0b1000 + 0o50) + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(49) + chr(770 - 722), 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1101111) + '\063' + chr(0b110101) + '\065', 0b1000), ehT0Px3KOsy9(chr(576 - 528) + chr(0b1101111) + chr(49) + '\065' + chr(0b110110), 35351 - 35343), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + '\x31' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + '\064' + chr(55), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\063' + chr(0b11111 + 0o27), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + '\x33' + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(1167 - 1056) + chr(49) + chr(0b10 + 0o65), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(0b110001) + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(531 - 476) + chr(0b101110 + 0o5), 50912 - 50904), ehT0Px3KOsy9('\060' + chr(7192 - 7081) + chr(248 - 198) + '\064' + chr(0b11100 + 0o27), 0b1000), ehT0Px3KOsy9(chr(763 - 715) + '\157' + chr(1411 - 1360) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(1863 - 1752) + chr(0b101110 + 0o3) + '\x32' + '\067', 0b1000), ehT0Px3KOsy9(chr(790 - 742) + chr(5406 - 5295) + chr(1921 - 1871) + chr(0b110011) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x34' + chr(0b10010 + 0o36), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(513 - 462) + chr(52), 0o10), ehT0Px3KOsy9(chr(612 - 564) + chr(0b1101111) + chr(0b110001) + '\061' + '\067', 976 - 968), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\064' + chr(48), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1174 - 1125) + '\x37', 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(2620 - 2567) + chr(736 - 688), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x1f'), chr(0b1011111 + 0o5) + chr(7846 - 7745) + '\x63' + chr(111) + '\x64' + chr(2661 - 2560))(chr(0b1110101) + chr(12915 - 12799) + chr(0b1100110) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Th9LDR4ZMa2i(EaCjyhZptSer, pu13gqGUWpFK=ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\157' + chr(0b110001), 64266 - 64258) << ehT0Px3KOsy9(chr(100 - 52) + '\157' + chr(50) + '\064', ord("\x08"))): sz4HVsFVF8nL = sNzNrLIR8V9g.sha256() CHAOgk5VCHH_ = ehT0Px3KOsy9('\x30' + chr(0b100111 + 0o110) + chr(0b101001 + 0o7), 0o10) with _fwkIVCGgtAN(EaCjyhZptSer, xafqLlk3kkUe(SXOLrMavuUCe(b'C\xa6'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b11010 + 0o112) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(0b100111 + 0o6) + chr(0b111000 + 0o0))) as EGyt1xfPT1P6: for cid3MTmW5yAA in qNhIDPq8HU4x(EGyt1xfPT1P6, size=pu13gqGUWpFK): CHAOgk5VCHH_ += c2A0yzQpDQB3(cid3MTmW5yAA) xafqLlk3kkUe(sz4HVsFVF8nL, xafqLlk3kkUe(SXOLrMavuUCe(b'k\xb0wufBk\xcb\xf7\x1e\x0f '), chr(100) + '\145' + '\143' + '\157' + '\x64' + chr(0b100011 + 0o102))('\165' + chr(0b1110100) + chr(102) + chr(1119 - 1074) + chr(1712 - 1656)))(cid3MTmW5yAA) iZmz0GueQtBv = xafqLlk3kkUe(SXOLrMavuUCe(b'B\xacW\x02::\x1c'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b11000 + 0o127) + '\x64' + '\x65')(chr(2244 - 2127) + chr(116) + chr(3812 - 3710) + chr(0b101101) + '\070') + BB5nmtk6Ssfd(sz4HVsFVF8nL.digest()).decode(xafqLlk3kkUe(SXOLrMavuUCe(b']\xa5BYa='), chr(0b111101 + 0o47) + chr(1616 - 1515) + chr(0b1000100 + 0o37) + chr(111) + chr(100) + chr(8686 - 8585))(chr(9919 - 9802) + chr(116) + chr(10057 - 9955) + chr(0b101101) + '\070')).rstrip(xafqLlk3kkUe(SXOLrMavuUCe(b'\x0c'), '\x64' + chr(2895 - 2794) + chr(141 - 42) + chr(111) + '\144' + chr(0b101 + 0o140))('\x75' + '\x74' + '\x66' + chr(45) + chr(0b111000))) return (iZmz0GueQtBv, M8_cKLkHVB2V(CHAOgk5VCHH_))
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
replace_python_tag
def replace_python_tag(wheelname, new_tag): # type: (str, str) -> str """Replace the Python tag in a wheel file name with a new value. """ parts = wheelname.split('-') parts[-3] = new_tag return '-'.join(parts)
python
def replace_python_tag(wheelname, new_tag): # type: (str, str) -> str """Replace the Python tag in a wheel file name with a new value. """ parts = wheelname.split('-') parts[-3] = new_tag return '-'.join(parts)
[ "def", "replace_python_tag", "(", "wheelname", ",", "new_tag", ")", ":", "# type: (str, str) -> str", "parts", "=", "wheelname", ".", "split", "(", "'-'", ")", "parts", "[", "-", "3", "]", "=", "new_tag", "return", "'-'", ".", "join", "(", "parts", ")" ]
Replace the Python tag in a wheel file name with a new value.
[ "Replace", "the", "Python", "tag", "in", "a", "wheel", "file", "name", "with", "a", "new", "value", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L98-L104
train
Replace the Python tag in a wheel file name with a new value.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5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0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b10111 + 0o130) + '\063' + chr(0b101001 + 0o12) + chr(2656 - 2602), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011 + 0o0) + chr(48) + chr(0b11101 + 0o23), 65366 - 65358), ehT0Px3KOsy9(chr(110 - 62) + '\157' + chr(2419 - 2368) + chr(0b0 + 0o67) + '\x31', 32110 - 32102), ehT0Px3KOsy9(chr(1992 - 1944) + '\157' + chr(1219 - 1169) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(0b110001) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(111) + chr(0b101110 + 0o5) + chr(0b110 + 0o61) + chr(1002 - 952), ord("\x08")), ehT0Px3KOsy9(chr(1989 - 1941) + chr(0b1101111) + chr(0b110011) + chr(55) + '\x34', 50567 - 50559), ehT0Px3KOsy9(chr(2100 - 2052) + chr(0b1101111) + '\x32' + chr(49) + chr(0b1 + 0o63), 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110111) + chr(756 - 705), 10692 - 10684), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1011 + 0o46) + chr(0b110011 + 0o4) + chr(49), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10 + 0o155) + '\062' + chr(0b110100) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + chr(49) + chr(0b110001) + chr(2243 - 2189), 36868 - 36860), ehT0Px3KOsy9(chr(528 - 480) + chr(6565 - 6454) + chr(49) + chr(0b110000) + chr(292 - 238), 0b1000), ehT0Px3KOsy9(chr(48) + chr(2918 - 2807) + chr(49) + '\060' + chr(0b1110 + 0o51), 56273 - 56265), ehT0Px3KOsy9(chr(1193 - 1145) + chr(0b1011001 + 0o26) + chr(0b100001 + 0o22) + '\060' + chr(1875 - 1827), 8), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + chr(0b100011 + 0o17) + chr(53) + '\065', 15497 - 15489), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(686 - 637) + chr(54) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + '\062' + chr(0b101 + 0o62) + chr(2396 - 2346), 14338 - 14330), ehT0Px3KOsy9(chr(131 - 83) + '\x6f' + chr(0b1110 + 0o43) + '\061' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(395 - 284) + chr(0b11111 + 0o25) + '\067', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x37' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + chr(0b110011) + chr(53) + '\067', 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + chr(0b11010 + 0o30) + '\067' + chr(2290 - 2236), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(52), 43858 - 43850), ehT0Px3KOsy9(chr(721 - 673) + '\x6f' + '\063' + '\064' + chr(52), 5014 - 5006), ehT0Px3KOsy9('\x30' + chr(111) + chr(1856 - 1806) + chr(888 - 838) + chr(1374 - 1320), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101010 + 0o7) + chr(0b100001 + 0o21) + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110 + 0o151) + chr(0b111 + 0o54) + '\066' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b101 + 0o57) + chr(0b11001 + 0o30), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(2454 - 2403) + chr(0b111 + 0o54) + chr(1859 - 1806), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + '\066' + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(0b110001) + '\065', 8), ehT0Px3KOsy9(chr(1900 - 1852) + chr(11047 - 10936) + chr(2208 - 2159) + '\x31' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(1710 - 1662) + chr(708 - 597) + '\x31' + chr(0b110010) + chr(0b101011 + 0o13), 46207 - 46199), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110100) + '\066', 36523 - 36515), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(2070 - 2019) + '\062' + chr(73 - 21), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(2709 - 2656) + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1782 - 1733) + chr(49) + '\061', 8), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\157' + chr(2402 - 2352) + chr(0b110101) + '\x32', 6542 - 6534), ehT0Px3KOsy9('\060' + chr(0b1000111 + 0o50) + chr(50) + chr(52) + chr(2381 - 2328), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b11101 + 0o122) + chr(0b110010 + 0o3) + chr(426 - 378), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0'), chr(0b11101 + 0o107) + chr(0b100111 + 0o76) + chr(5646 - 5547) + chr(0b1101111) + chr(0b101101 + 0o67) + '\145')('\x75' + chr(0b110111 + 0o75) + chr(3049 - 2947) + chr(45) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def OTXpmKDY5uzz(DBFOJ6CG10YI, Jwk4GcfLGi2l): gIfWK5W_pmM4 = DBFOJ6CG10YI.split(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3'), chr(100) + chr(0b1000 + 0o135) + chr(0b1000011 + 0o40) + '\x6f' + chr(100) + chr(2223 - 2122))(chr(117) + '\x74' + chr(2832 - 2730) + chr(0b10010 + 0o33) + '\070')) gIfWK5W_pmM4[-ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b1010000 + 0o37) + '\063', 53122 - 53114)] = Jwk4GcfLGi2l return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3'), chr(7866 - 7766) + '\145' + chr(99) + '\x6f' + chr(3733 - 3633) + '\x65')(chr(931 - 814) + '\x74' + chr(0b101011 + 0o73) + chr(565 - 520) + chr(0b100000 + 0o30)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x81\xaf\xaeK\xf3\x8e\xaa\xc2U\x08\xef\x08'), '\x64' + chr(3603 - 3502) + '\x63' + chr(10595 - 10484) + chr(100) + chr(0b101011 + 0o72))(chr(117) + '\164' + chr(0b1100110) + chr(715 - 670) + chr(56)))(gIfWK5W_pmM4)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
message_about_scripts_not_on_PATH
def message_about_scripts_not_on_PATH(scripts): # type: (Sequence[str]) -> Optional[str] """Determine if any scripts are not on PATH and format a warning. Returns a warning message if one or more scripts are not on PATH, otherwise None. """ if not scripts: return None # Group scripts by the path they were installed in grouped_by_dir = collections.defaultdict(set) # type: Dict[str, set] for destfile in scripts: parent_dir = os.path.dirname(destfile) script_name = os.path.basename(destfile) grouped_by_dir[parent_dir].add(script_name) # We don't want to warn for directories that are on PATH. not_warn_dirs = [ os.path.normcase(i).rstrip(os.sep) for i in os.environ.get("PATH", "").split(os.pathsep) ] # If an executable sits with sys.executable, we don't warn for it. # This covers the case of venv invocations without activating the venv. executable_loc = os.environ.get("PIP_PYTHON_PATH", sys.executable) not_warn_dirs.append(os.path.normcase(os.path.dirname(executable_loc))) warn_for = { parent_dir: scripts for parent_dir, scripts in grouped_by_dir.items() if os.path.normcase(parent_dir) not in not_warn_dirs } if not warn_for: return None # Format a message msg_lines = [] for parent_dir, scripts in warn_for.items(): scripts = sorted(scripts) if len(scripts) == 1: start_text = "script {} is".format(scripts[0]) else: start_text = "scripts {} are".format( ", ".join(scripts[:-1]) + " and " + scripts[-1] ) msg_lines.append( "The {} installed in '{}' which is not on PATH." .format(start_text, parent_dir) ) last_line_fmt = ( "Consider adding {} to PATH or, if you prefer " "to suppress this warning, use --no-warn-script-location." ) if len(msg_lines) == 1: msg_lines.append(last_line_fmt.format("this directory")) else: msg_lines.append(last_line_fmt.format("these directories")) # Returns the formatted multiline message return "\n".join(msg_lines)
python
def message_about_scripts_not_on_PATH(scripts): # type: (Sequence[str]) -> Optional[str] """Determine if any scripts are not on PATH and format a warning. Returns a warning message if one or more scripts are not on PATH, otherwise None. """ if not scripts: return None # Group scripts by the path they were installed in grouped_by_dir = collections.defaultdict(set) # type: Dict[str, set] for destfile in scripts: parent_dir = os.path.dirname(destfile) script_name = os.path.basename(destfile) grouped_by_dir[parent_dir].add(script_name) # We don't want to warn for directories that are on PATH. not_warn_dirs = [ os.path.normcase(i).rstrip(os.sep) for i in os.environ.get("PATH", "").split(os.pathsep) ] # If an executable sits with sys.executable, we don't warn for it. # This covers the case of venv invocations without activating the venv. executable_loc = os.environ.get("PIP_PYTHON_PATH", sys.executable) not_warn_dirs.append(os.path.normcase(os.path.dirname(executable_loc))) warn_for = { parent_dir: scripts for parent_dir, scripts in grouped_by_dir.items() if os.path.normcase(parent_dir) not in not_warn_dirs } if not warn_for: return None # Format a message msg_lines = [] for parent_dir, scripts in warn_for.items(): scripts = sorted(scripts) if len(scripts) == 1: start_text = "script {} is".format(scripts[0]) else: start_text = "scripts {} are".format( ", ".join(scripts[:-1]) + " and " + scripts[-1] ) msg_lines.append( "The {} installed in '{}' which is not on PATH." .format(start_text, parent_dir) ) last_line_fmt = ( "Consider adding {} to PATH or, if you prefer " "to suppress this warning, use --no-warn-script-location." ) if len(msg_lines) == 1: msg_lines.append(last_line_fmt.format("this directory")) else: msg_lines.append(last_line_fmt.format("these directories")) # Returns the formatted multiline message return "\n".join(msg_lines)
[ "def", "message_about_scripts_not_on_PATH", "(", "scripts", ")", ":", "# type: (Sequence[str]) -> Optional[str]", "if", "not", "scripts", ":", "return", "None", "# Group scripts by the path they were installed in", "grouped_by_dir", "=", "collections", ".", "defaultdict", "(", "set", ")", "# type: Dict[str, set]", "for", "destfile", "in", "scripts", ":", "parent_dir", "=", "os", ".", "path", ".", "dirname", "(", "destfile", ")", "script_name", "=", "os", ".", "path", ".", "basename", "(", "destfile", ")", "grouped_by_dir", "[", "parent_dir", "]", ".", "add", "(", "script_name", ")", "# We don't want to warn for directories that are on PATH.", "not_warn_dirs", "=", "[", "os", ".", "path", ".", "normcase", "(", "i", ")", ".", "rstrip", "(", "os", ".", "sep", ")", "for", "i", "in", "os", ".", "environ", ".", "get", "(", "\"PATH\"", ",", "\"\"", ")", ".", "split", "(", "os", ".", "pathsep", ")", "]", "# If an executable sits with sys.executable, we don't warn for it.", "# This covers the case of venv invocations without activating the venv.", "executable_loc", "=", "os", ".", "environ", ".", "get", "(", "\"PIP_PYTHON_PATH\"", ",", "sys", ".", "executable", ")", "not_warn_dirs", ".", "append", "(", "os", ".", "path", ".", "normcase", "(", "os", ".", "path", ".", "dirname", "(", "executable_loc", ")", ")", ")", "warn_for", "=", "{", "parent_dir", ":", "scripts", "for", "parent_dir", ",", "scripts", "in", "grouped_by_dir", ".", "items", "(", ")", "if", "os", ".", "path", ".", "normcase", "(", "parent_dir", ")", "not", "in", "not_warn_dirs", "}", "if", "not", "warn_for", ":", "return", "None", "# Format a message", "msg_lines", "=", "[", "]", "for", "parent_dir", ",", "scripts", "in", "warn_for", ".", "items", "(", ")", ":", "scripts", "=", "sorted", "(", "scripts", ")", "if", "len", "(", "scripts", ")", "==", "1", ":", "start_text", "=", "\"script {} is\"", ".", "format", "(", "scripts", "[", "0", "]", ")", "else", ":", "start_text", "=", "\"scripts {} are\"", ".", "format", "(", "\", \"", ".", "join", "(", "scripts", "[", ":", "-", "1", "]", ")", "+", "\" and \"", "+", "scripts", "[", "-", "1", "]", ")", "msg_lines", ".", "append", "(", "\"The {} installed in '{}' which is not on PATH.\"", ".", "format", "(", "start_text", ",", "parent_dir", ")", ")", "last_line_fmt", "=", "(", "\"Consider adding {} to PATH or, if you prefer \"", "\"to suppress this warning, use --no-warn-script-location.\"", ")", "if", "len", "(", "msg_lines", ")", "==", "1", ":", "msg_lines", ".", "append", "(", "last_line_fmt", ".", "format", "(", "\"this directory\"", ")", ")", "else", ":", "msg_lines", ".", "append", "(", "last_line_fmt", ".", "format", "(", "\"these directories\"", ")", ")", "# Returns the formatted multiline message", "return", "\"\\n\"", ".", "join", "(", "msg_lines", ")" ]
Determine if any scripts are not on PATH and format a warning. Returns a warning message if one or more scripts are not on PATH, otherwise None.
[ "Determine", "if", "any", "scripts", "are", "not", "on", "PATH", "and", "format", "a", "warning", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L180-L239
train
Returns a warning message if any scripts are not on PATH and None otherwise.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNIC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,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(10279 - 10168) + '\062' + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(0b100010 + 0o16) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(55) + chr(0b1110 + 0o44), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b101001 + 0o106) + chr(0b110011) + chr(55) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101110 + 0o5) + '\060' + chr(0b110111), 4913 - 4905), ehT0Px3KOsy9(chr(297 - 249) + chr(0b1101111) + '\x31' + '\x31' + chr(0b10111 + 0o37), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(55) + chr(0b10111 + 0o36), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b101011 + 0o12) + chr(1539 - 1484), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + '\x37' + '\065', 60514 - 60506), ehT0Px3KOsy9(chr(1705 - 1657) + '\157' + '\x32' + chr(954 - 904) + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100010 + 0o17) + chr(52) + '\066', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + chr(55) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(10842 - 10731) + '\x32' + chr(2052 - 1999), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\x35' + '\x31', 34065 - 34057), ehT0Px3KOsy9('\060' + '\x6f' + chr(981 - 932) + chr(0b100010 + 0o21) + chr(1090 - 1039), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110100), 27457 - 27449), ehT0Px3KOsy9('\x30' + chr(6182 - 6071) + chr(0b100 + 0o62) + chr(0b100001 + 0o20), 44955 - 44947), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b11111 + 0o22) + chr(1399 - 1344) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(283 - 235) + chr(1452 - 1341) + chr(2462 - 2411) + chr(2101 - 2046) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(2952 - 2897) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b1111 + 0o44) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + '\062' + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b110100) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100111 + 0o10) + chr(0b11101 + 0o27) + '\x34', 0o10), ehT0Px3KOsy9(chr(1336 - 1288) + chr(11217 - 11106) + chr(1415 - 1365) + chr(0b10100 + 0o35) + chr(1417 - 1367), 0b1000), ehT0Px3KOsy9(chr(1713 - 1665) + '\157' + chr(53) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(53) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(49) + chr(0b11100 + 0o24) + chr(676 - 622), 0b1000), ehT0Px3KOsy9('\060' + chr(0b111000 + 0o67) + chr(0b110001) + chr(0b110010) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(1956 - 1908) + chr(0b1101111) + '\061' + chr(2669 - 2617) + chr(0b1111 + 0o50), 23320 - 23312), ehT0Px3KOsy9('\x30' + chr(111) + chr(200 - 151) + chr(52) + chr(0b10000 + 0o41), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(9995 - 9884) + '\061' + '\x30' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b110001) + chr(0b111 + 0o57) + chr(51), 21971 - 21963), ehT0Px3KOsy9('\060' + '\157' + chr(957 - 907) + chr(0b101001 + 0o7) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1010000 + 0o37) + chr(51) + '\063' + chr(2435 - 2381), 64697 - 64689), ehT0Px3KOsy9(chr(1486 - 1438) + chr(0b100010 + 0o115) + '\061' + '\x33' + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010 + 0o145) + chr(0b110011) + chr(1730 - 1679) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b110000 + 0o77) + '\063' + '\065' + chr(0b110100), 5852 - 5844)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(0b110101) + '\x30', 56451 - 56443)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'='), chr(0b111 + 0o135) + chr(0b11000 + 0o115) + chr(0b1100011) + '\157' + chr(3139 - 3039) + '\x65')(chr(7935 - 7818) + chr(0b101010 + 0o112) + chr(0b1100110) + chr(0b101101) + chr(2860 - 2804)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def lTrrUiBGBkTq(IEYRJBIy3cfU): if not IEYRJBIy3cfU: return None vuRDEbZiVSjg = FGhnnwoh1Dd8.defaultdict(MVEN8G6CxlvR) for B9vaNCRsIMPK in IEYRJBIy3cfU: bsdJzEjGYYxg = oqhJDdMJfuwx.path.dirname(B9vaNCRsIMPK) XrsjdWaLnbGU = oqhJDdMJfuwx.path.g_1BfC8eoU5Q(B9vaNCRsIMPK) xafqLlk3kkUe(vuRDEbZiVSjg[bsdJzEjGYYxg], xafqLlk3kkUe(SXOLrMavuUCe(b"f\xcc\n\x8a\xfe-z\x1a'\xdc4\xcb"), chr(9021 - 8921) + '\145' + chr(99) + '\x6f' + chr(0b1001011 + 0o31) + '\145')('\x75' + '\x74' + '\x66' + chr(202 - 157) + '\x38'))(XrsjdWaLnbGU) AFwgag4OnLNY = [oqhJDdMJfuwx.path.normcase(WVxHKyX45z_L).rstrip(oqhJDdMJfuwx.sep) for WVxHKyX45z_L in oqhJDdMJfuwx.environ.get(xafqLlk3kkUe(SXOLrMavuUCe(b'C\xc7n\xb3'), '\x64' + chr(0b1100000 + 0o5) + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))('\x75' + chr(116) + chr(102) + chr(0b101101) + chr(3066 - 3010)), xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(7725 - 7625) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(0b11101 + 0o20) + chr(56))).split(oqhJDdMJfuwx.pathsep)] PTDNP5mUkitn = oqhJDdMJfuwx.environ.get(xafqLlk3kkUe(SXOLrMavuUCe(b'C\xcfj\xa4\x97\x17ig2\xdd9\xa8T=\x13'), chr(0b111010 + 0o52) + '\x65' + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(9493 - 9376) + '\164' + '\x66' + '\x2d' + '\070'), a2SYDDomXDZ2.executable) xafqLlk3kkUe(AFwgag4OnLNY, xafqLlk3kkUe(SXOLrMavuUCe(b'r\xf6J\x9e\xa9*'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + '\x74' + '\146' + chr(0b100101 + 0o10) + chr(2074 - 2018)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b"\x7f\xe0N\x88\xb0'dv8\xe9#\x81"), '\x64' + chr(101) + chr(99) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1010000 + 0o45) + '\164' + chr(0b1011100 + 0o12) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'w\xefH\x95\xa6#X'), chr(6579 - 6479) + '\x65' + chr(5611 - 5512) + chr(0b1101111) + '\144' + '\x65')(chr(0b1010100 + 0o41) + chr(116) + chr(102) + chr(0b10100 + 0o31) + '\070'))(PTDNP5mUkitn))) jm1acfVQjqOp = {bsdJzEjGYYxg: IEYRJBIy3cfU for (bsdJzEjGYYxg, IEYRJBIy3cfU) in vuRDEbZiVSjg.NzveIZ3IlSH9() if oqhJDdMJfuwx.path.lftswiYYEzEy(bsdJzEjGYYxg) not in AFwgag4OnLNY} if not jm1acfVQjqOp: return None zvAyzeC0nOsG = [] for (bsdJzEjGYYxg, IEYRJBIy3cfU) in xafqLlk3kkUe(jm1acfVQjqOp, xafqLlk3kkUe(SXOLrMavuUCe(b']\xfcL\x9e\x8e\x14\x0ef\x11\xc0.\xc1'), '\144' + '\x65' + '\143' + '\157' + '\x64' + '\145')('\x75' + chr(8478 - 8362) + chr(0b110011 + 0o63) + chr(45) + chr(2524 - 2468)))(): IEYRJBIy3cfU = vUlqIvNSaRMa(IEYRJBIy3cfU) if c2A0yzQpDQB3(IEYRJBIy3cfU) == ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31', 8): Wo5iu2Trd4oF = xafqLlk3kkUe(SXOLrMavuUCe(b'`\xe5H\x92\xb7:\x1dT\x00\xb3\x0f\x8b'), chr(0b1100100) + chr(1936 - 1835) + chr(0b100110 + 0o75) + chr(0b101000 + 0o107) + chr(0b1100100) + chr(101))(chr(0b1000001 + 0o64) + chr(9466 - 9350) + '\146' + chr(0b101000 + 0o5) + chr(600 - 544)).V4roHaS3Ppej(IEYRJBIy3cfU[ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(48), 16939 - 16931)]) else: Wo5iu2Trd4oF = xafqLlk3kkUe(SXOLrMavuUCe(b'`\xe5H\x92\xb7:N\x0f\x06\xeeF\x99g\x0c'), '\144' + '\145' + '\143' + chr(9931 - 9820) + chr(6258 - 6158) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38').V4roHaS3Ppej(xafqLlk3kkUe(SXOLrMavuUCe(b'?\xa6'), chr(0b1011001 + 0o13) + chr(9408 - 9307) + '\x63' + '\x6f' + chr(0b10110 + 0o116) + chr(0b10111 + 0o116))('\x75' + chr(0b1101000 + 0o14) + chr(0b1100110 + 0o0) + '\055' + '\070')._oWXztVNnqHF(IEYRJBIy3cfU[:-ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(0b110001), 8)]) + xafqLlk3kkUe(SXOLrMavuUCe(b'3\xe7T\x9f\xe7'), '\x64' + chr(6889 - 6788) + '\143' + '\157' + '\144' + chr(5448 - 5347))(chr(0b1110101) + chr(116) + chr(0b1010110 + 0o20) + '\055' + '\x38') + IEYRJBIy3cfU[-ehT0Px3KOsy9(chr(1892 - 1844) + chr(111) + '\x31', 8)]) xafqLlk3kkUe(zvAyzeC0nOsG, xafqLlk3kkUe(SXOLrMavuUCe(b'r\xf6J\x9e\xa9*'), chr(9131 - 9031) + '\x65' + '\143' + '\x6f' + '\144' + '\x65')('\165' + chr(5568 - 5452) + chr(0b1100110) + '\055' + '\x38'))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'G\xee_\xdb\xbc3\x1dF\x13\xe0\x12\x99y\x05>`\x11h\x11\xdd0\x01\xa6\xf3\x82S\xe2CO.w\x0e\x12g\x1d\xed\xaaz\xb2\x823\xd6{\xaf\x8f`'), chr(0b1100100) + '\x65' + chr(99) + '\157' + chr(0b1001000 + 0o34) + chr(0b100001 + 0o104))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(1809 - 1753)), xafqLlk3kkUe(SXOLrMavuUCe(b'E\xb2H\x94\x8f/n\x1c-\xe3\x03\x92'), '\144' + '\x65' + chr(5093 - 4994) + '\x6f' + '\144' + chr(101))('\165' + '\164' + '\146' + chr(45) + chr(0b111000)))(Wo5iu2Trd4oF, bsdJzEjGYYxg)) PPVTpBGl_to_ = xafqLlk3kkUe(SXOLrMavuUCe(b'P\xe9T\x88\xae*X]]\xf2\x02\x9c|\x07<$J|_\x89xZ\x8b\x95\xf6l\xaaE^jw\x0e\x07g\n\xed\xabz\xad\x9ev\xe0_\x89\xe7:R\x0f\x0e\xe6\x16\x88g\x0c(w\x11u\x17\x94dZ\xac\xb5\xd0J\xe3DKjw\x12\x12"S\xaf\xf34\xb2\xc1d\xe7H\x95\xea=^]\x14\xe3\x12\xd5y\x068eEh\x10\x939'), '\x64' + chr(101) + chr(0b1011000 + 0o13) + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\055' + chr(0b111000)) if c2A0yzQpDQB3(zvAyzeC0nOsG) == ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(10572 - 10461) + '\061', 8): xafqLlk3kkUe(zvAyzeC0nOsG, xafqLlk3kkUe(SXOLrMavuUCe(b'r\xf6J\x9e\xa9*'), chr(5084 - 4984) + chr(2881 - 2780) + '\143' + '\157' + chr(9456 - 9356) + chr(101))(chr(0b1110101) + chr(0b1101001 + 0o13) + chr(0b101100 + 0o72) + chr(1666 - 1621) + '\070'))(xafqLlk3kkUe(PPVTpBGl_to_, xafqLlk3kkUe(SXOLrMavuUCe(b'E\xb2H\x94\x8f/n\x1c-\xe3\x03\x92'), chr(7949 - 7849) + chr(101) + chr(99) + chr(111) + chr(100) + '\x65')(chr(0b1001001 + 0o54) + '\x74' + chr(102) + chr(0b101101) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'g\xeeS\x88\xe7*T]\x18\xf0\x12\x97g\x10'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(8673 - 8573) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)))) else: xafqLlk3kkUe(zvAyzeC0nOsG, xafqLlk3kkUe(SXOLrMavuUCe(b'r\xf6J\x9e\xa9*'), chr(1457 - 1357) + '\145' + chr(0b1100011) + chr(11576 - 11465) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(1646 - 1544) + chr(0b101011 + 0o2) + '\x38'))(xafqLlk3kkUe(PPVTpBGl_to_, xafqLlk3kkUe(SXOLrMavuUCe(b'E\xb2H\x94\x8f/n\x1c-\xe3\x03\x92'), chr(1512 - 1412) + chr(4816 - 4715) + '\143' + '\x6f' + '\x64' + '\x65')('\165' + chr(116) + chr(0b1001000 + 0o36) + chr(534 - 489) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'g\xee_\x88\xa2nYF\x0f\xf6\x05\x8cz\x1b2aB'), chr(0b1100100) + chr(0b1100101) + chr(0b1001110 + 0o25) + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + chr(0b1001101 + 0o47) + '\146' + '\055' + '\x38'))) return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x19'), '\x64' + '\x65' + chr(0b1010 + 0o131) + chr(0b1000111 + 0o50) + chr(2846 - 2746) + chr(0b1001001 + 0o34))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(2023 - 1967)), xafqLlk3kkUe(SXOLrMavuUCe(b'L\xe9m\xa3\xbd:ka\x13\xe2.\xbe'), '\x64' + chr(0b110000 + 0o65) + chr(99) + chr(0b1100 + 0o143) + chr(6362 - 6262) + chr(7977 - 7876))(chr(9618 - 9501) + chr(10049 - 9933) + chr(102) + '\055' + chr(0b111000)))(zvAyzeC0nOsG)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
sorted_outrows
def sorted_outrows(outrows): # type: (Iterable[InstalledCSVRow]) -> List[InstalledCSVRow] """ Return the given rows of a RECORD file in sorted order. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows passed to this function, the size can be an integer as an int or string, or the empty string. """ # Normally, there should only be one row per path, in which case the # second and third elements don't come into play when sorting. # However, in cases in the wild where a path might happen to occur twice, # we don't want the sort operation to trigger an error (but still want # determinism). Since the third element can be an int or string, we # coerce each element to a string to avoid a TypeError in this case. # For additional background, see-- # https://github.com/pypa/pip/issues/5868 return sorted(outrows, key=lambda row: tuple(str(x) for x in row))
python
def sorted_outrows(outrows): # type: (Iterable[InstalledCSVRow]) -> List[InstalledCSVRow] """ Return the given rows of a RECORD file in sorted order. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows passed to this function, the size can be an integer as an int or string, or the empty string. """ # Normally, there should only be one row per path, in which case the # second and third elements don't come into play when sorting. # However, in cases in the wild where a path might happen to occur twice, # we don't want the sort operation to trigger an error (but still want # determinism). Since the third element can be an int or string, we # coerce each element to a string to avoid a TypeError in this case. # For additional background, see-- # https://github.com/pypa/pip/issues/5868 return sorted(outrows, key=lambda row: tuple(str(x) for x in row))
[ "def", "sorted_outrows", "(", "outrows", ")", ":", "# type: (Iterable[InstalledCSVRow]) -> List[InstalledCSVRow]", "# Normally, there should only be one row per path, in which case the", "# second and third elements don't come into play when sorting.", "# However, in cases in the wild where a path might happen to occur twice,", "# we don't want the sort operation to trigger an error (but still want", "# determinism). Since the third element can be an int or string, we", "# coerce each element to a string to avoid a TypeError in this case.", "# For additional background, see--", "# https://github.com/pypa/pip/issues/5868", "return", "sorted", "(", "outrows", ",", "key", "=", "lambda", "row", ":", "tuple", "(", "str", "(", "x", ")", "for", "x", "in", "row", ")", ")" ]
Return the given rows of a RECORD file in sorted order. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows passed to this function, the size can be an integer as an int or string, or the empty string.
[ "Return", "the", "given", "rows", "of", "a", "RECORD", "file", "in", "sorted", "order", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L242-L260
train
Returns the given rows of a RECORD file in sorted order.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLm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s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + '\x35' + chr(1893 - 1840), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(7104 - 6993) + chr(0b101010 + 0o7) + '\x30' + chr(2496 - 2445), 20216 - 20208), ehT0Px3KOsy9(chr(110 - 62) + chr(111) + chr(0b1001 + 0o50) + chr(0b1101 + 0o47) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(8468 - 8357) + chr(51) + chr(52) + '\x35', 20593 - 20585), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(0b110100) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\061' + chr(0b10 + 0o65), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101 + 0o55) + '\x33' + chr(0b110001), 48264 - 48256), ehT0Px3KOsy9(chr(1094 - 1046) + chr(0b1101111) + chr(0b110010) + chr(0b110000) + chr(1489 - 1437), 0o10), ehT0Px3KOsy9(chr(2268 - 2220) + chr(11751 - 11640) + '\061' + chr(911 - 857) + chr(0b101100 + 0o7), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\x30' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1011101 + 0o22) + chr(0b110011) + chr(49) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\066' + chr(0b1101 + 0o45), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(256 - 201), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(254 - 205) + '\067' + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(52) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b11100 + 0o123) + chr(50) + chr(0b11100 + 0o24) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\x34' + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10000 + 0o41) + '\x34' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(957 - 846) + '\061' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + chr(0b100011 + 0o16) + chr(2074 - 2019) + chr(0b101111 + 0o6), 0b1000), ehT0Px3KOsy9(chr(48) + chr(2010 - 1899) + chr(50) + chr(53) + '\x32', 0o10), ehT0Px3KOsy9(chr(1540 - 1492) + chr(0b1101111) + '\x31' + chr(0b110011) + chr(55), 0o10), ehT0Px3KOsy9('\060' + chr(963 - 852) + '\065' + chr(150 - 102), 0o10), ehT0Px3KOsy9(chr(870 - 822) + chr(111) + chr(0b110111) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(6801 - 6690) + chr(2037 - 1988) + chr(0b110000) + chr(863 - 810), ord("\x08")), ehT0Px3KOsy9(chr(1293 - 1245) + '\157' + chr(0b11001 + 0o31) + '\x37' + chr(2827 - 2773), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001 + 0o146) + chr(0b110010) + chr(52) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1100 + 0o46) + chr(0b110101) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2567 - 2516) + chr(2255 - 2203) + '\x35', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + '\x32' + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + '\x35' + chr(0b101111 + 0o4), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(52) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b0 + 0o60), 28065 - 28057), ehT0Px3KOsy9('\060' + chr(0b100100 + 0o113) + chr(49) + chr(0b110100) + '\066', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + '\x31' + chr(1792 - 1737), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(1771 - 1723) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(3637 - 3526) + '\064', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(985 - 934) + chr(0b110110) + chr(49), 0b1000), ehT0Px3KOsy9(chr(1443 - 1395) + chr(111) + chr(575 - 524) + chr(53) + chr(50), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(877 - 824) + chr(1087 - 1039), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xc3'), '\x64' + chr(2010 - 1909) + chr(0b1100010 + 0o1) + chr(111) + chr(100) + chr(0b110110 + 0o57))(chr(9073 - 8956) + chr(2038 - 1922) + chr(0b1100110) + chr(45) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def TJa1ml_MMzn9(hk58k8fSkuye): return vUlqIvNSaRMa(hk58k8fSkuye, key=lambda TAK9K32TkBdA: KNyTy8rYcwji((M8_cKLkHVB2V(OeWW0F1dBPRQ) for OeWW0F1dBPRQ in TAK9K32TkBdA)))
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
get_csv_rows_for_installed
def get_csv_rows_for_installed( old_csv_rows, # type: Iterable[List[str]] installed, # type: Dict[str, str] changed, # type: set generated, # type: List[str] lib_dir, # type: str ): # type: (...) -> List[InstalledCSVRow] """ :param installed: A map from archive RECORD path to installation RECORD path. """ installed_rows = [] # type: List[InstalledCSVRow] for row in old_csv_rows: if len(row) > 3: logger.warning( 'RECORD line has more than three elements: {}'.format(row) ) # Make a copy because we are mutating the row. row = list(row) old_path = row[0] new_path = installed.pop(old_path, old_path) row[0] = new_path if new_path in changed: digest, length = rehash(new_path) row[1] = digest row[2] = length installed_rows.append(tuple(row)) for f in generated: digest, length = rehash(f) installed_rows.append((normpath(f, lib_dir), digest, str(length))) for f in installed: installed_rows.append((installed[f], '', '')) return installed_rows
python
def get_csv_rows_for_installed( old_csv_rows, # type: Iterable[List[str]] installed, # type: Dict[str, str] changed, # type: set generated, # type: List[str] lib_dir, # type: str ): # type: (...) -> List[InstalledCSVRow] """ :param installed: A map from archive RECORD path to installation RECORD path. """ installed_rows = [] # type: List[InstalledCSVRow] for row in old_csv_rows: if len(row) > 3: logger.warning( 'RECORD line has more than three elements: {}'.format(row) ) # Make a copy because we are mutating the row. row = list(row) old_path = row[0] new_path = installed.pop(old_path, old_path) row[0] = new_path if new_path in changed: digest, length = rehash(new_path) row[1] = digest row[2] = length installed_rows.append(tuple(row)) for f in generated: digest, length = rehash(f) installed_rows.append((normpath(f, lib_dir), digest, str(length))) for f in installed: installed_rows.append((installed[f], '', '')) return installed_rows
[ "def", "get_csv_rows_for_installed", "(", "old_csv_rows", ",", "# type: Iterable[List[str]]", "installed", ",", "# type: Dict[str, str]", "changed", ",", "# type: set", "generated", ",", "# type: List[str]", "lib_dir", ",", "# type: str", ")", ":", "# type: (...) -> List[InstalledCSVRow]", "installed_rows", "=", "[", "]", "# type: List[InstalledCSVRow]", "for", "row", "in", "old_csv_rows", ":", "if", "len", "(", "row", ")", ">", "3", ":", "logger", ".", "warning", "(", "'RECORD line has more than three elements: {}'", ".", "format", "(", "row", ")", ")", "# Make a copy because we are mutating the row.", "row", "=", "list", "(", "row", ")", "old_path", "=", "row", "[", "0", "]", "new_path", "=", "installed", ".", "pop", "(", "old_path", ",", "old_path", ")", "row", "[", "0", "]", "=", "new_path", "if", "new_path", "in", "changed", ":", "digest", ",", "length", "=", "rehash", "(", "new_path", ")", "row", "[", "1", "]", "=", "digest", "row", "[", "2", "]", "=", "length", "installed_rows", ".", "append", "(", "tuple", "(", "row", ")", ")", "for", "f", "in", "generated", ":", "digest", ",", "length", "=", "rehash", "(", "f", ")", "installed_rows", ".", "append", "(", "(", "normpath", "(", "f", ",", "lib_dir", ")", ",", "digest", ",", "str", "(", "length", ")", ")", ")", "for", "f", "in", "installed", ":", "installed_rows", ".", "append", "(", "(", "installed", "[", "f", "]", ",", "''", ",", "''", ")", ")", "return", "installed_rows" ]
:param installed: A map from archive RECORD path to installation RECORD path.
[ ":", "param", "installed", ":", "A", "map", "from", "archive", "RECORD", "path", "to", "installation", "RECORD", "path", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L263-L296
train
Returns a list of tuples where each tuple is a row of the CSV file that is used to install the RECORD.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqMqV,WTxpD_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wji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(1285 - 1236) + chr(54) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + '\x37' + '\x36', 1231 - 1223), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\x6f' + '\062' + '\x31' + '\x33', 17656 - 17648), ehT0Px3KOsy9(chr(421 - 373) + chr(0b1100101 + 0o12) + chr(0b101101 + 0o4) + chr(1605 - 1556) + '\x32', 17098 - 17090), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101101 + 0o2) + '\x33' + '\064' + chr(333 - 280), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(1873 - 1820) + chr(0b111 + 0o60), 0b1000), ehT0Px3KOsy9(chr(1740 - 1692) + '\157' + chr(50) + chr(0b100111 + 0o13) + chr(2654 - 2599), 0o10), ehT0Px3KOsy9('\x30' + chr(388 - 277) + '\x31' + '\x34' + chr(55), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\x6f' + chr(0b110010) + '\x31' + '\x35', 0b1000), ehT0Px3KOsy9(chr(462 - 414) + chr(0b1101111) + chr(0b11001 + 0o30) + '\061' + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + '\x34' + chr(0b10101 + 0o40), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b11100 + 0o123) + chr(847 - 798) + chr(1723 - 1669) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(851 - 800) + chr(372 - 318) + chr(2566 - 2511), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(0b11100 + 0o31) + chr(972 - 923), 0o10), ehT0Px3KOsy9(chr(2075 - 2027) + chr(5169 - 5058) + chr(52) + chr(0b100000 + 0o23), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1000011 + 0o54) + chr(0b110001) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8084 - 7973) + chr(300 - 249) + chr(48) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + chr(51) + chr(0b11000 + 0o30), 0o10), ehT0Px3KOsy9('\060' + chr(9598 - 9487) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(10939 - 10828) + chr(0b110011) + chr(2216 - 2162) + chr(625 - 571), ord("\x08")), ehT0Px3KOsy9(chr(1799 - 1751) + chr(111) + chr(0b110000 + 0o2) + chr(2595 - 2540) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5649 - 5538) + chr(0b110011) + '\064', 47680 - 47672), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(53) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b10111 + 0o130) + chr(717 - 668) + chr(0b110010) + chr(0b110001), 62594 - 62586), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110 + 0o54) + chr(0b110001) + '\x34', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001100 + 0o43) + chr(0b110010) + '\066' + chr(1364 - 1311), 0b1000), ehT0Px3KOsy9('\060' + chr(8641 - 8530) + chr(50) + chr(49) + chr(55), 22595 - 22587), ehT0Px3KOsy9(chr(48) + chr(1927 - 1816) + '\063' + '\x36' + chr(1851 - 1802), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(51) + chr(50), 33796 - 33788), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1696 - 1647) + chr(0b110011) + chr(0b110101 + 0o1), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110000 + 0o2) + chr(54) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001001 + 0o46) + '\x33' + '\066' + chr(0b101101 + 0o12), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\064' + '\x36', 0o10), ehT0Px3KOsy9('\x30' + chr(5264 - 5153) + '\061' + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(9907 - 9796) + chr(49) + '\x35' + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(637 - 526) + '\x31' + chr(1246 - 1192) + chr(0b110010 + 0o0), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + '\x30' + chr(53), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(2234 - 2185) + '\064' + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o56) + chr(0b110001 + 0o4) + chr(0b110011), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(111) + '\x35' + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\\'), chr(100) + '\x65' + '\143' + chr(0b1010010 + 0o35) + chr(100) + chr(0b1100101))(chr(0b100010 + 0o123) + chr(0b1110100) + chr(4268 - 4166) + chr(0b10101 + 0o30) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def APZXurgy9vWS(Gywbu1jmGyXL, cOc_X43ZEx8t, RJdwDxnc5RKV, CwkuOBODao4M, Fq1mS6RVRCed): MfCJD1B9mW5B = [] for TAK9K32TkBdA in Gywbu1jmGyXL: if c2A0yzQpDQB3(TAK9K32TkBdA) > ehT0Px3KOsy9('\x30' + chr(6515 - 6404) + chr(0b1010 + 0o51), ord("\x08")): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x05\x1f\xf9$\x8cA\xf0'), chr(0b1100100) + chr(7723 - 7622) + chr(99) + '\157' + chr(0b1001110 + 0o26) + '\x65')(chr(0b1010001 + 0o44) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b10001 + 0o47)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b' ;\xc8\x05\xb7k\xb7\x0b\xe4#\xc0P\x9f\xc8P-\xab\xf7r\x93\x9ch\x850\xe2\x95\xfb\x99\xe8;\xd22\x92\x8aj\x07\x17\xab\x16\xd8H^\xf07'), chr(2591 - 2491) + chr(10010 - 9909) + chr(0b1100011) + '\x6f' + chr(0b1001001 + 0o33) + chr(101))(chr(0b1110101) + '\164' + '\146' + chr(45) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'$J\xf9%\xadN\xc4T\xdd=\xc0\x1a'), '\x64' + chr(0b1100101) + chr(0b111000 + 0o53) + chr(111) + chr(9260 - 9160) + '\145')(chr(0b111 + 0o156) + chr(0b1000 + 0o154) + chr(0b1001101 + 0o31) + chr(45) + chr(56)))(TAK9K32TkBdA)) TAK9K32TkBdA = YyaZ4tpXu4lf(TAK9K32TkBdA) _GlFq2DErM6g = TAK9K32TkBdA[ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(111) + '\x30', 8)] EDbutuN8kt72 = cOc_X43ZEx8t.pop(_GlFq2DErM6g, _GlFq2DErM6g) TAK9K32TkBdA[ehT0Px3KOsy9(chr(1971 - 1923) + '\x6f' + chr(0b10100 + 0o34), 8)] = EDbutuN8kt72 if EDbutuN8kt72 in RJdwDxnc5RKV: (iZmz0GueQtBv, CHAOgk5VCHH_) = Th9LDR4ZMa2i(EDbutuN8kt72) TAK9K32TkBdA[ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\157' + '\061', 0o10)] = iZmz0GueQtBv TAK9K32TkBdA[ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1827 - 1777), ord("\x08"))] = CHAOgk5VCHH_ xafqLlk3kkUe(MfCJD1B9mW5B, xafqLlk3kkUe(SXOLrMavuUCe(b'\x13\x0e\xfb/\x8bK'), '\x64' + chr(0b1100101) + '\x63' + chr(0b111101 + 0o62) + chr(4964 - 4864) + chr(4790 - 4689))('\165' + chr(0b100010 + 0o122) + chr(0b1011010 + 0o14) + chr(945 - 900) + '\070'))(KNyTy8rYcwji(TAK9K32TkBdA)) for EGyt1xfPT1P6 in CwkuOBODao4M: (iZmz0GueQtBv, CHAOgk5VCHH_) = Th9LDR4ZMa2i(EGyt1xfPT1P6) xafqLlk3kkUe(MfCJD1B9mW5B, xafqLlk3kkUe(SXOLrMavuUCe(b'\x13\x0e\xfb/\x8bK'), chr(100) + chr(9051 - 8950) + chr(0b1100011) + chr(6969 - 6858) + '\x64' + '\x65')('\x75' + chr(9660 - 9544) + chr(0b1100110) + chr(45) + '\x38'))((dSYLXt0kkBCZ(EGyt1xfPT1P6, Fq1mS6RVRCed), iZmz0GueQtBv, M8_cKLkHVB2V(CHAOgk5VCHH_))) for EGyt1xfPT1P6 in cOc_X43ZEx8t: xafqLlk3kkUe(MfCJD1B9mW5B, xafqLlk3kkUe(SXOLrMavuUCe(b'\x13\x0e\xfb/\x8bK'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + '\144' + '\x65')(chr(2600 - 2483) + '\x74' + chr(4196 - 4094) + chr(0b100010 + 0o13) + '\070'))((cOc_X43ZEx8t[EGyt1xfPT1P6], xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b1011000 + 0o14) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(2000 - 1900) + chr(101))(chr(6506 - 6389) + '\x74' + chr(0b101110 + 0o70) + chr(45) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + chr(0b101101 + 0o70) + '\x63' + chr(0b1101111) + chr(0b10100 + 0o120) + chr(0b1000111 + 0o36))(chr(0b11000 + 0o135) + chr(0b1110100) + '\146' + chr(189 - 144) + '\x38'))) return MfCJD1B9mW5B
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
move_wheel_files
def move_wheel_files( name, # type: str req, # type: Requirement wheeldir, # type: str user=False, # type: bool home=None, # type: Optional[str] root=None, # type: Optional[str] pycompile=True, # type: bool scheme=None, # type: Optional[Mapping[str, str]] isolated=False, # type: bool prefix=None, # type: Optional[str] warn_script_location=True # type: bool ): # type: (...) -> None """Install a wheel""" # TODO: Investigate and break this up. # TODO: Look into moving this into a dedicated class for representing an # installation. if not scheme: scheme = distutils_scheme( name, user=user, home=home, root=root, isolated=isolated, prefix=prefix, ) if root_is_purelib(name, wheeldir): lib_dir = scheme['purelib'] else: lib_dir = scheme['platlib'] info_dir = [] # type: List[str] data_dirs = [] source = wheeldir.rstrip(os.path.sep) + os.path.sep # Record details of the files moved # installed = files copied from the wheel to the destination # changed = files changed while installing (scripts #! line typically) # generated = files newly generated during the install (script wrappers) installed = {} # type: Dict[str, str] changed = set() generated = [] # type: List[str] # Compile all of the pyc files that we're going to be installing if pycompile: with captured_stdout() as stdout: with warnings.catch_warnings(): warnings.filterwarnings('ignore') compileall.compile_dir(source, force=True, quiet=True) logger.debug(stdout.getvalue()) def record_installed(srcfile, destfile, modified=False): """Map archive RECORD paths to installation RECORD paths.""" oldpath = normpath(srcfile, wheeldir) newpath = normpath(destfile, lib_dir) installed[oldpath] = newpath if modified: changed.add(destfile) def clobber(source, dest, is_base, fixer=None, filter=None): ensure_dir(dest) # common for the 'include' path for dir, subdirs, files in os.walk(source): basedir = dir[len(source):].lstrip(os.path.sep) destdir = os.path.join(dest, basedir) if is_base and basedir.split(os.path.sep, 1)[0].endswith('.data'): continue for s in subdirs: destsubdir = os.path.join(dest, basedir, s) if is_base and basedir == '' and destsubdir.endswith('.data'): data_dirs.append(s) continue elif (is_base and s.endswith('.dist-info') and canonicalize_name(s).startswith( canonicalize_name(req.name))): assert not info_dir, ('Multiple .dist-info directories: ' + destsubdir + ', ' + ', '.join(info_dir)) info_dir.append(destsubdir) for f in files: # Skip unwanted files if filter and filter(f): continue srcfile = os.path.join(dir, f) destfile = os.path.join(dest, basedir, f) # directory creation is lazy and after the file filtering above # to ensure we don't install empty dirs; empty dirs can't be # uninstalled. ensure_dir(destdir) # copyfile (called below) truncates the destination if it # exists and then writes the new contents. This is fine in most # cases, but can cause a segfault if pip has loaded a shared # object (e.g. from pyopenssl through its vendored urllib3) # Since the shared object is mmap'd an attempt to call a # symbol in it will then cause a segfault. Unlinking the file # allows writing of new contents while allowing the process to # continue to use the old copy. if os.path.exists(destfile): os.unlink(destfile) # We use copyfile (not move, copy, or copy2) to be extra sure # that we are not moving directories over (copyfile fails for # directories) as well as to ensure that we are not copying # over any metadata because we want more control over what # metadata we actually copy over. shutil.copyfile(srcfile, destfile) # Copy over the metadata for the file, currently this only # includes the atime and mtime. st = os.stat(srcfile) if hasattr(os, "utime"): os.utime(destfile, (st.st_atime, st.st_mtime)) # If our file is executable, then make our destination file # executable. if os.access(srcfile, os.X_OK): st = os.stat(srcfile) permissions = ( st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH ) os.chmod(destfile, permissions) changed = False if fixer: changed = fixer(destfile) record_installed(srcfile, destfile, changed) clobber(source, lib_dir, True) assert info_dir, "%s .dist-info directory not found" % req # Get the defined entry points ep_file = os.path.join(info_dir[0], 'entry_points.txt') console, gui = get_entrypoints(ep_file) def is_entrypoint_wrapper(name): # EP, EP.exe and EP-script.py are scripts generated for # entry point EP by setuptools if name.lower().endswith('.exe'): matchname = name[:-4] elif name.lower().endswith('-script.py'): matchname = name[:-10] elif name.lower().endswith(".pya"): matchname = name[:-4] else: matchname = name # Ignore setuptools-generated scripts return (matchname in console or matchname in gui) for datadir in data_dirs: fixer = None filter = None for subdir in os.listdir(os.path.join(wheeldir, datadir)): fixer = None if subdir == 'scripts': fixer = fix_script filter = is_entrypoint_wrapper source = os.path.join(wheeldir, datadir, subdir) dest = scheme[subdir] clobber(source, dest, False, fixer=fixer, filter=filter) maker = ScriptMaker(None, scheme['scripts']) # Ensure old scripts are overwritten. # See https://github.com/pypa/pip/issues/1800 maker.clobber = True # Ensure we don't generate any variants for scripts because this is almost # never what somebody wants. # See https://bitbucket.org/pypa/distlib/issue/35/ maker.variants = {''} # This is required because otherwise distlib creates scripts that are not # executable. # See https://bitbucket.org/pypa/distlib/issue/32/ maker.set_mode = True # Simplify the script and fix the fact that the default script swallows # every single stack trace. # See https://bitbucket.org/pypa/distlib/issue/34/ # See https://bitbucket.org/pypa/distlib/issue/33/ def _get_script_text(entry): if entry.suffix is None: raise InstallationError( "Invalid script entry point: %s for req: %s - A callable " "suffix is required. Cf https://packaging.python.org/en/" "latest/distributing.html#console-scripts for more " "information." % (entry, req) ) return maker.script_template % { "module": entry.prefix, "import_name": entry.suffix.split(".")[0], "func": entry.suffix, } # ignore type, because mypy disallows assigning to a method, # see https://github.com/python/mypy/issues/2427 maker._get_script_text = _get_script_text # type: ignore maker.script_template = r"""# -*- coding: utf-8 -*- import re import sys from %(module)s import %(import_name)s if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(%(func)s()) """ # Special case pip and setuptools to generate versioned wrappers # # The issue is that some projects (specifically, pip and setuptools) use # code in setup.py to create "versioned" entry points - pip2.7 on Python # 2.7, pip3.3 on Python 3.3, etc. But these entry points are baked into # the wheel metadata at build time, and so if the wheel is installed with # a *different* version of Python the entry points will be wrong. The # correct fix for this is to enhance the metadata to be able to describe # such versioned entry points, but that won't happen till Metadata 2.0 is # available. # In the meantime, projects using versioned entry points will either have # incorrect versioned entry points, or they will not be able to distribute # "universal" wheels (i.e., they will need a wheel per Python version). # # Because setuptools and pip are bundled with _ensurepip and virtualenv, # we need to use universal wheels. So, as a stopgap until Metadata 2.0, we # override the versioned entry points in the wheel and generate the # correct ones. This code is purely a short-term measure until Metadata 2.0 # is available. # # To add the level of hack in this section of code, in order to support # ensurepip this code will look for an ``ENSUREPIP_OPTIONS`` environment # variable which will control which version scripts get installed. # # ENSUREPIP_OPTIONS=altinstall # - Only pipX.Y and easy_install-X.Y will be generated and installed # ENSUREPIP_OPTIONS=install # - pipX.Y, pipX, easy_install-X.Y will be generated and installed. Note # that this option is technically if ENSUREPIP_OPTIONS is set and is # not altinstall # DEFAULT # - The default behavior is to install pip, pipX, pipX.Y, easy_install # and easy_install-X.Y. pip_script = console.pop('pip', None) if pip_script: if "ENSUREPIP_OPTIONS" not in os.environ: spec = 'pip = ' + pip_script generated.extend(maker.make(spec)) if os.environ.get("ENSUREPIP_OPTIONS", "") != "altinstall": spec = 'pip%s = %s' % (sys.version[:1], pip_script) generated.extend(maker.make(spec)) spec = 'pip%s = %s' % (sys.version[:3], pip_script) generated.extend(maker.make(spec)) # Delete any other versioned pip entry points pip_ep = [k for k in console if re.match(r'pip(\d(\.\d)?)?$', k)] for k in pip_ep: del console[k] easy_install_script = console.pop('easy_install', None) if easy_install_script: if "ENSUREPIP_OPTIONS" not in os.environ: spec = 'easy_install = ' + easy_install_script generated.extend(maker.make(spec)) spec = 'easy_install-%s = %s' % (sys.version[:3], easy_install_script) generated.extend(maker.make(spec)) # Delete any other versioned easy_install entry points easy_install_ep = [ k for k in console if re.match(r'easy_install(-\d\.\d)?$', k) ] for k in easy_install_ep: del console[k] # Generate the console and GUI entry points specified in the wheel if len(console) > 0: generated_console_scripts = maker.make_multiple( ['%s = %s' % kv for kv in console.items()] ) generated.extend(generated_console_scripts) if warn_script_location: msg = message_about_scripts_not_on_PATH(generated_console_scripts) if msg is not None: logger.warning(msg) if len(gui) > 0: generated.extend( maker.make_multiple( ['%s = %s' % kv for kv in gui.items()], {'gui': True} ) ) # Record pip as the installer installer = os.path.join(info_dir[0], 'INSTALLER') temp_installer = os.path.join(info_dir[0], 'INSTALLER.pip') with open(temp_installer, 'wb') as installer_file: installer_file.write(b'pip\n') shutil.move(temp_installer, installer) generated.append(installer) # Record details of all files installed record = os.path.join(info_dir[0], 'RECORD') temp_record = os.path.join(info_dir[0], 'RECORD.pip') with open_for_csv(record, 'r') as record_in: with open_for_csv(temp_record, 'w+') as record_out: reader = csv.reader(record_in) outrows = get_csv_rows_for_installed( reader, installed=installed, changed=changed, generated=generated, lib_dir=lib_dir, ) writer = csv.writer(record_out) # Sort to simplify testing. for row in sorted_outrows(outrows): writer.writerow(row) shutil.move(temp_record, record)
python
def move_wheel_files( name, # type: str req, # type: Requirement wheeldir, # type: str user=False, # type: bool home=None, # type: Optional[str] root=None, # type: Optional[str] pycompile=True, # type: bool scheme=None, # type: Optional[Mapping[str, str]] isolated=False, # type: bool prefix=None, # type: Optional[str] warn_script_location=True # type: bool ): # type: (...) -> None """Install a wheel""" # TODO: Investigate and break this up. # TODO: Look into moving this into a dedicated class for representing an # installation. if not scheme: scheme = distutils_scheme( name, user=user, home=home, root=root, isolated=isolated, prefix=prefix, ) if root_is_purelib(name, wheeldir): lib_dir = scheme['purelib'] else: lib_dir = scheme['platlib'] info_dir = [] # type: List[str] data_dirs = [] source = wheeldir.rstrip(os.path.sep) + os.path.sep # Record details of the files moved # installed = files copied from the wheel to the destination # changed = files changed while installing (scripts #! line typically) # generated = files newly generated during the install (script wrappers) installed = {} # type: Dict[str, str] changed = set() generated = [] # type: List[str] # Compile all of the pyc files that we're going to be installing if pycompile: with captured_stdout() as stdout: with warnings.catch_warnings(): warnings.filterwarnings('ignore') compileall.compile_dir(source, force=True, quiet=True) logger.debug(stdout.getvalue()) def record_installed(srcfile, destfile, modified=False): """Map archive RECORD paths to installation RECORD paths.""" oldpath = normpath(srcfile, wheeldir) newpath = normpath(destfile, lib_dir) installed[oldpath] = newpath if modified: changed.add(destfile) def clobber(source, dest, is_base, fixer=None, filter=None): ensure_dir(dest) # common for the 'include' path for dir, subdirs, files in os.walk(source): basedir = dir[len(source):].lstrip(os.path.sep) destdir = os.path.join(dest, basedir) if is_base and basedir.split(os.path.sep, 1)[0].endswith('.data'): continue for s in subdirs: destsubdir = os.path.join(dest, basedir, s) if is_base and basedir == '' and destsubdir.endswith('.data'): data_dirs.append(s) continue elif (is_base and s.endswith('.dist-info') and canonicalize_name(s).startswith( canonicalize_name(req.name))): assert not info_dir, ('Multiple .dist-info directories: ' + destsubdir + ', ' + ', '.join(info_dir)) info_dir.append(destsubdir) for f in files: # Skip unwanted files if filter and filter(f): continue srcfile = os.path.join(dir, f) destfile = os.path.join(dest, basedir, f) # directory creation is lazy and after the file filtering above # to ensure we don't install empty dirs; empty dirs can't be # uninstalled. ensure_dir(destdir) # copyfile (called below) truncates the destination if it # exists and then writes the new contents. This is fine in most # cases, but can cause a segfault if pip has loaded a shared # object (e.g. from pyopenssl through its vendored urllib3) # Since the shared object is mmap'd an attempt to call a # symbol in it will then cause a segfault. Unlinking the file # allows writing of new contents while allowing the process to # continue to use the old copy. if os.path.exists(destfile): os.unlink(destfile) # We use copyfile (not move, copy, or copy2) to be extra sure # that we are not moving directories over (copyfile fails for # directories) as well as to ensure that we are not copying # over any metadata because we want more control over what # metadata we actually copy over. shutil.copyfile(srcfile, destfile) # Copy over the metadata for the file, currently this only # includes the atime and mtime. st = os.stat(srcfile) if hasattr(os, "utime"): os.utime(destfile, (st.st_atime, st.st_mtime)) # If our file is executable, then make our destination file # executable. if os.access(srcfile, os.X_OK): st = os.stat(srcfile) permissions = ( st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH ) os.chmod(destfile, permissions) changed = False if fixer: changed = fixer(destfile) record_installed(srcfile, destfile, changed) clobber(source, lib_dir, True) assert info_dir, "%s .dist-info directory not found" % req # Get the defined entry points ep_file = os.path.join(info_dir[0], 'entry_points.txt') console, gui = get_entrypoints(ep_file) def is_entrypoint_wrapper(name): # EP, EP.exe and EP-script.py are scripts generated for # entry point EP by setuptools if name.lower().endswith('.exe'): matchname = name[:-4] elif name.lower().endswith('-script.py'): matchname = name[:-10] elif name.lower().endswith(".pya"): matchname = name[:-4] else: matchname = name # Ignore setuptools-generated scripts return (matchname in console or matchname in gui) for datadir in data_dirs: fixer = None filter = None for subdir in os.listdir(os.path.join(wheeldir, datadir)): fixer = None if subdir == 'scripts': fixer = fix_script filter = is_entrypoint_wrapper source = os.path.join(wheeldir, datadir, subdir) dest = scheme[subdir] clobber(source, dest, False, fixer=fixer, filter=filter) maker = ScriptMaker(None, scheme['scripts']) # Ensure old scripts are overwritten. # See https://github.com/pypa/pip/issues/1800 maker.clobber = True # Ensure we don't generate any variants for scripts because this is almost # never what somebody wants. # See https://bitbucket.org/pypa/distlib/issue/35/ maker.variants = {''} # This is required because otherwise distlib creates scripts that are not # executable. # See https://bitbucket.org/pypa/distlib/issue/32/ maker.set_mode = True # Simplify the script and fix the fact that the default script swallows # every single stack trace. # See https://bitbucket.org/pypa/distlib/issue/34/ # See https://bitbucket.org/pypa/distlib/issue/33/ def _get_script_text(entry): if entry.suffix is None: raise InstallationError( "Invalid script entry point: %s for req: %s - A callable " "suffix is required. Cf https://packaging.python.org/en/" "latest/distributing.html#console-scripts for more " "information." % (entry, req) ) return maker.script_template % { "module": entry.prefix, "import_name": entry.suffix.split(".")[0], "func": entry.suffix, } # ignore type, because mypy disallows assigning to a method, # see https://github.com/python/mypy/issues/2427 maker._get_script_text = _get_script_text # type: ignore maker.script_template = r"""# -*- coding: utf-8 -*- import re import sys from %(module)s import %(import_name)s if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(%(func)s()) """ # Special case pip and setuptools to generate versioned wrappers # # The issue is that some projects (specifically, pip and setuptools) use # code in setup.py to create "versioned" entry points - pip2.7 on Python # 2.7, pip3.3 on Python 3.3, etc. But these entry points are baked into # the wheel metadata at build time, and so if the wheel is installed with # a *different* version of Python the entry points will be wrong. The # correct fix for this is to enhance the metadata to be able to describe # such versioned entry points, but that won't happen till Metadata 2.0 is # available. # In the meantime, projects using versioned entry points will either have # incorrect versioned entry points, or they will not be able to distribute # "universal" wheels (i.e., they will need a wheel per Python version). # # Because setuptools and pip are bundled with _ensurepip and virtualenv, # we need to use universal wheels. So, as a stopgap until Metadata 2.0, we # override the versioned entry points in the wheel and generate the # correct ones. This code is purely a short-term measure until Metadata 2.0 # is available. # # To add the level of hack in this section of code, in order to support # ensurepip this code will look for an ``ENSUREPIP_OPTIONS`` environment # variable which will control which version scripts get installed. # # ENSUREPIP_OPTIONS=altinstall # - Only pipX.Y and easy_install-X.Y will be generated and installed # ENSUREPIP_OPTIONS=install # - pipX.Y, pipX, easy_install-X.Y will be generated and installed. Note # that this option is technically if ENSUREPIP_OPTIONS is set and is # not altinstall # DEFAULT # - The default behavior is to install pip, pipX, pipX.Y, easy_install # and easy_install-X.Y. pip_script = console.pop('pip', None) if pip_script: if "ENSUREPIP_OPTIONS" not in os.environ: spec = 'pip = ' + pip_script generated.extend(maker.make(spec)) if os.environ.get("ENSUREPIP_OPTIONS", "") != "altinstall": spec = 'pip%s = %s' % (sys.version[:1], pip_script) generated.extend(maker.make(spec)) spec = 'pip%s = %s' % (sys.version[:3], pip_script) generated.extend(maker.make(spec)) # Delete any other versioned pip entry points pip_ep = [k for k in console if re.match(r'pip(\d(\.\d)?)?$', k)] for k in pip_ep: del console[k] easy_install_script = console.pop('easy_install', None) if easy_install_script: if "ENSUREPIP_OPTIONS" not in os.environ: spec = 'easy_install = ' + easy_install_script generated.extend(maker.make(spec)) spec = 'easy_install-%s = %s' % (sys.version[:3], easy_install_script) generated.extend(maker.make(spec)) # Delete any other versioned easy_install entry points easy_install_ep = [ k for k in console if re.match(r'easy_install(-\d\.\d)?$', k) ] for k in easy_install_ep: del console[k] # Generate the console and GUI entry points specified in the wheel if len(console) > 0: generated_console_scripts = maker.make_multiple( ['%s = %s' % kv for kv in console.items()] ) generated.extend(generated_console_scripts) if warn_script_location: msg = message_about_scripts_not_on_PATH(generated_console_scripts) if msg is not None: logger.warning(msg) if len(gui) > 0: generated.extend( maker.make_multiple( ['%s = %s' % kv for kv in gui.items()], {'gui': True} ) ) # Record pip as the installer installer = os.path.join(info_dir[0], 'INSTALLER') temp_installer = os.path.join(info_dir[0], 'INSTALLER.pip') with open(temp_installer, 'wb') as installer_file: installer_file.write(b'pip\n') shutil.move(temp_installer, installer) generated.append(installer) # Record details of all files installed record = os.path.join(info_dir[0], 'RECORD') temp_record = os.path.join(info_dir[0], 'RECORD.pip') with open_for_csv(record, 'r') as record_in: with open_for_csv(temp_record, 'w+') as record_out: reader = csv.reader(record_in) outrows = get_csv_rows_for_installed( reader, installed=installed, changed=changed, generated=generated, lib_dir=lib_dir, ) writer = csv.writer(record_out) # Sort to simplify testing. for row in sorted_outrows(outrows): writer.writerow(row) shutil.move(temp_record, record)
[ "def", "move_wheel_files", "(", "name", ",", "# type: str", "req", ",", "# type: Requirement", "wheeldir", ",", "# type: str", "user", "=", "False", ",", "# type: bool", "home", "=", "None", ",", "# type: Optional[str]", "root", "=", "None", ",", "# type: Optional[str]", "pycompile", "=", "True", ",", "# type: bool", "scheme", "=", "None", ",", "# type: Optional[Mapping[str, str]]", "isolated", "=", "False", ",", "# type: bool", "prefix", "=", "None", ",", "# type: Optional[str]", "warn_script_location", "=", "True", "# type: bool", ")", ":", "# type: (...) -> None", "# TODO: Investigate and break this up.", "# TODO: Look into moving this into a dedicated class for representing an", "# installation.", "if", "not", "scheme", ":", "scheme", "=", "distutils_scheme", "(", "name", ",", "user", "=", "user", ",", "home", "=", "home", ",", "root", "=", "root", ",", "isolated", "=", "isolated", ",", "prefix", "=", "prefix", ",", ")", "if", "root_is_purelib", "(", "name", ",", "wheeldir", ")", ":", "lib_dir", "=", "scheme", "[", "'purelib'", "]", "else", ":", "lib_dir", "=", "scheme", "[", "'platlib'", "]", "info_dir", "=", "[", "]", "# type: List[str]", "data_dirs", "=", "[", "]", "source", "=", "wheeldir", ".", "rstrip", "(", "os", ".", "path", ".", "sep", ")", "+", "os", ".", "path", ".", "sep", "# Record details of the files moved", "# installed = files copied from the wheel to the destination", "# changed = files changed while installing (scripts #! line typically)", "# generated = files newly generated during the install (script wrappers)", "installed", "=", "{", "}", "# type: Dict[str, str]", "changed", "=", "set", "(", ")", "generated", "=", "[", "]", "# type: List[str]", "# Compile all of the pyc files that we're going to be installing", "if", "pycompile", ":", "with", "captured_stdout", "(", ")", "as", "stdout", ":", "with", "warnings", ".", "catch_warnings", "(", ")", ":", "warnings", ".", "filterwarnings", "(", "'ignore'", ")", "compileall", ".", "compile_dir", "(", "source", ",", "force", "=", "True", ",", "quiet", "=", "True", ")", "logger", ".", "debug", "(", "stdout", ".", "getvalue", "(", ")", ")", "def", "record_installed", "(", "srcfile", ",", "destfile", ",", "modified", "=", "False", ")", ":", "\"\"\"Map archive RECORD paths to installation RECORD paths.\"\"\"", "oldpath", "=", "normpath", "(", "srcfile", ",", "wheeldir", ")", "newpath", "=", "normpath", "(", "destfile", ",", "lib_dir", ")", "installed", "[", "oldpath", "]", "=", "newpath", "if", "modified", ":", "changed", ".", "add", "(", "destfile", ")", "def", "clobber", "(", "source", ",", "dest", ",", "is_base", ",", "fixer", "=", "None", ",", "filter", "=", "None", ")", ":", "ensure_dir", "(", "dest", ")", "# common for the 'include' path", "for", "dir", ",", "subdirs", ",", "files", "in", "os", ".", "walk", "(", "source", ")", ":", "basedir", "=", "dir", "[", "len", "(", "source", ")", ":", "]", ".", "lstrip", "(", "os", ".", "path", ".", "sep", ")", "destdir", "=", "os", ".", "path", ".", "join", "(", "dest", ",", "basedir", ")", "if", "is_base", "and", "basedir", ".", "split", "(", "os", ".", "path", ".", "sep", ",", "1", ")", "[", "0", "]", ".", "endswith", "(", "'.data'", ")", ":", "continue", "for", "s", "in", "subdirs", ":", "destsubdir", "=", "os", ".", "path", ".", "join", "(", "dest", ",", "basedir", ",", "s", ")", "if", "is_base", "and", "basedir", "==", "''", "and", "destsubdir", ".", "endswith", "(", "'.data'", ")", ":", "data_dirs", ".", "append", "(", "s", ")", "continue", "elif", "(", "is_base", "and", "s", ".", "endswith", "(", "'.dist-info'", ")", "and", "canonicalize_name", "(", "s", ")", ".", "startswith", "(", "canonicalize_name", "(", "req", ".", "name", ")", ")", ")", ":", "assert", "not", "info_dir", ",", "(", "'Multiple .dist-info directories: '", "+", "destsubdir", "+", "', '", "+", "', '", ".", "join", "(", "info_dir", ")", ")", "info_dir", ".", "append", "(", "destsubdir", ")", "for", "f", "in", "files", ":", "# Skip unwanted files", "if", "filter", "and", "filter", "(", "f", ")", ":", "continue", "srcfile", "=", "os", ".", "path", ".", "join", "(", "dir", ",", "f", ")", "destfile", "=", "os", ".", "path", ".", "join", "(", "dest", ",", "basedir", ",", "f", ")", "# directory creation is lazy and after the file filtering above", "# to ensure we don't install empty dirs; empty dirs can't be", "# uninstalled.", "ensure_dir", "(", "destdir", ")", "# copyfile (called below) truncates the destination if it", "# exists and then writes the new contents. This is fine in most", "# cases, but can cause a segfault if pip has loaded a shared", "# object (e.g. from pyopenssl through its vendored urllib3)", "# Since the shared object is mmap'd an attempt to call a", "# symbol in it will then cause a segfault. Unlinking the file", "# allows writing of new contents while allowing the process to", "# continue to use the old copy.", "if", "os", ".", "path", ".", "exists", "(", "destfile", ")", ":", "os", ".", "unlink", "(", "destfile", ")", "# We use copyfile (not move, copy, or copy2) to be extra sure", "# that we are not moving directories over (copyfile fails for", "# directories) as well as to ensure that we are not copying", "# over any metadata because we want more control over what", "# metadata we actually copy over.", "shutil", ".", "copyfile", "(", "srcfile", ",", "destfile", ")", "# Copy over the metadata for the file, currently this only", "# includes the atime and mtime.", "st", "=", "os", ".", "stat", "(", "srcfile", ")", "if", "hasattr", "(", "os", ",", "\"utime\"", ")", ":", "os", ".", "utime", "(", "destfile", ",", "(", "st", ".", "st_atime", ",", "st", ".", "st_mtime", ")", ")", "# If our file is executable, then make our destination file", "# executable.", "if", "os", ".", "access", "(", "srcfile", ",", "os", ".", "X_OK", ")", ":", "st", "=", "os", ".", "stat", "(", "srcfile", ")", "permissions", "=", "(", "st", ".", "st_mode", "|", "stat", ".", "S_IXUSR", "|", "stat", ".", "S_IXGRP", "|", "stat", ".", "S_IXOTH", ")", "os", ".", "chmod", "(", "destfile", ",", "permissions", ")", "changed", "=", "False", "if", "fixer", ":", "changed", "=", "fixer", "(", "destfile", ")", "record_installed", "(", "srcfile", ",", "destfile", ",", "changed", ")", "clobber", "(", "source", ",", "lib_dir", ",", "True", ")", "assert", "info_dir", ",", "\"%s .dist-info directory not found\"", "%", "req", "# Get the defined entry points", "ep_file", "=", "os", ".", "path", ".", "join", "(", "info_dir", "[", "0", "]", ",", "'entry_points.txt'", ")", "console", ",", "gui", "=", "get_entrypoints", "(", "ep_file", ")", "def", "is_entrypoint_wrapper", "(", "name", ")", ":", "# EP, EP.exe and EP-script.py are scripts generated for", "# entry point EP by setuptools", "if", "name", ".", "lower", "(", ")", ".", "endswith", "(", "'.exe'", ")", ":", "matchname", "=", "name", "[", ":", "-", "4", "]", "elif", "name", ".", "lower", "(", ")", ".", "endswith", "(", "'-script.py'", ")", ":", "matchname", "=", "name", "[", ":", "-", "10", "]", "elif", "name", ".", "lower", "(", ")", ".", "endswith", "(", "\".pya\"", ")", ":", "matchname", "=", "name", "[", ":", "-", "4", "]", "else", ":", "matchname", "=", "name", "# Ignore setuptools-generated scripts", "return", "(", "matchname", "in", "console", "or", "matchname", "in", "gui", ")", "for", "datadir", "in", "data_dirs", ":", "fixer", "=", "None", "filter", "=", "None", "for", "subdir", "in", "os", ".", "listdir", "(", "os", ".", "path", ".", "join", "(", "wheeldir", ",", "datadir", ")", ")", ":", "fixer", "=", "None", "if", "subdir", "==", "'scripts'", ":", "fixer", "=", "fix_script", "filter", "=", "is_entrypoint_wrapper", "source", "=", "os", ".", "path", ".", "join", "(", "wheeldir", ",", "datadir", ",", "subdir", ")", "dest", "=", "scheme", "[", "subdir", "]", "clobber", "(", "source", ",", "dest", ",", "False", ",", "fixer", "=", "fixer", ",", "filter", "=", "filter", ")", "maker", "=", "ScriptMaker", "(", "None", ",", "scheme", "[", "'scripts'", "]", ")", "# Ensure old scripts are overwritten.", "# See https://github.com/pypa/pip/issues/1800", "maker", ".", "clobber", "=", "True", "# Ensure we don't generate any variants for scripts because this is almost", "# never what somebody wants.", "# See https://bitbucket.org/pypa/distlib/issue/35/", "maker", ".", "variants", "=", "{", "''", "}", "# This is required because otherwise distlib creates scripts that are not", "# executable.", "# See https://bitbucket.org/pypa/distlib/issue/32/", "maker", ".", "set_mode", "=", "True", "# Simplify the script and fix the fact that the default script swallows", "# every single stack trace.", "# See https://bitbucket.org/pypa/distlib/issue/34/", "# See https://bitbucket.org/pypa/distlib/issue/33/", "def", "_get_script_text", "(", "entry", ")", ":", "if", "entry", ".", "suffix", "is", "None", ":", "raise", "InstallationError", "(", "\"Invalid script entry point: %s for req: %s - A callable \"", "\"suffix is required. Cf https://packaging.python.org/en/\"", "\"latest/distributing.html#console-scripts for more \"", "\"information.\"", "%", "(", "entry", ",", "req", ")", ")", "return", "maker", ".", "script_template", "%", "{", "\"module\"", ":", "entry", ".", "prefix", ",", "\"import_name\"", ":", "entry", ".", "suffix", ".", "split", "(", "\".\"", ")", "[", "0", "]", ",", "\"func\"", ":", "entry", ".", "suffix", ",", "}", "# ignore type, because mypy disallows assigning to a method,", "# see https://github.com/python/mypy/issues/2427", "maker", ".", "_get_script_text", "=", "_get_script_text", "# type: ignore", "maker", ".", "script_template", "=", "r\"\"\"# -*- coding: utf-8 -*-\nimport re\nimport sys\n\nfrom %(module)s import %(import_name)s\n\nif __name__ == '__main__':\n sys.argv[0] = re.sub(r'(-script\\.pyw?|\\.exe)?$', '', sys.argv[0])\n sys.exit(%(func)s())\n\"\"\"", "# Special case pip and setuptools to generate versioned wrappers", "#", "# The issue is that some projects (specifically, pip and setuptools) use", "# code in setup.py to create \"versioned\" entry points - pip2.7 on Python", "# 2.7, pip3.3 on Python 3.3, etc. But these entry points are baked into", "# the wheel metadata at build time, and so if the wheel is installed with", "# a *different* version of Python the entry points will be wrong. The", "# correct fix for this is to enhance the metadata to be able to describe", "# such versioned entry points, but that won't happen till Metadata 2.0 is", "# available.", "# In the meantime, projects using versioned entry points will either have", "# incorrect versioned entry points, or they will not be able to distribute", "# \"universal\" wheels (i.e., they will need a wheel per Python version).", "#", "# Because setuptools and pip are bundled with _ensurepip and virtualenv,", "# we need to use universal wheels. So, as a stopgap until Metadata 2.0, we", "# override the versioned entry points in the wheel and generate the", "# correct ones. This code is purely a short-term measure until Metadata 2.0", "# is available.", "#", "# To add the level of hack in this section of code, in order to support", "# ensurepip this code will look for an ``ENSUREPIP_OPTIONS`` environment", "# variable which will control which version scripts get installed.", "#", "# ENSUREPIP_OPTIONS=altinstall", "# - Only pipX.Y and easy_install-X.Y will be generated and installed", "# ENSUREPIP_OPTIONS=install", "# - pipX.Y, pipX, easy_install-X.Y will be generated and installed. Note", "# that this option is technically if ENSUREPIP_OPTIONS is set and is", "# not altinstall", "# DEFAULT", "# - The default behavior is to install pip, pipX, pipX.Y, easy_install", "# and easy_install-X.Y.", "pip_script", "=", "console", ".", "pop", "(", "'pip'", ",", "None", ")", "if", "pip_script", ":", "if", "\"ENSUREPIP_OPTIONS\"", "not", "in", "os", ".", "environ", ":", "spec", "=", "'pip = '", "+", "pip_script", "generated", ".", "extend", "(", "maker", ".", "make", "(", "spec", ")", ")", "if", "os", ".", "environ", ".", "get", "(", "\"ENSUREPIP_OPTIONS\"", ",", "\"\"", ")", "!=", "\"altinstall\"", ":", "spec", "=", "'pip%s = %s'", "%", "(", "sys", ".", "version", "[", ":", "1", "]", ",", "pip_script", ")", "generated", ".", "extend", "(", "maker", ".", "make", "(", "spec", ")", ")", "spec", "=", "'pip%s = %s'", "%", "(", "sys", ".", "version", "[", ":", "3", "]", ",", "pip_script", ")", "generated", ".", "extend", "(", "maker", ".", "make", "(", "spec", ")", ")", "# Delete any other versioned pip entry points", "pip_ep", "=", "[", "k", "for", "k", "in", "console", "if", "re", ".", "match", "(", "r'pip(\\d(\\.\\d)?)?$'", ",", "k", ")", "]", "for", "k", "in", "pip_ep", ":", "del", "console", "[", "k", "]", "easy_install_script", "=", "console", ".", "pop", "(", "'easy_install'", ",", "None", ")", "if", "easy_install_script", ":", "if", "\"ENSUREPIP_OPTIONS\"", "not", "in", "os", ".", "environ", ":", "spec", "=", "'easy_install = '", "+", "easy_install_script", "generated", ".", "extend", "(", "maker", ".", "make", "(", "spec", ")", ")", "spec", "=", "'easy_install-%s = %s'", "%", "(", "sys", ".", "version", "[", ":", "3", "]", ",", "easy_install_script", ")", "generated", ".", "extend", "(", "maker", ".", "make", "(", "spec", ")", ")", "# Delete any other versioned easy_install entry points", "easy_install_ep", "=", "[", "k", "for", "k", "in", "console", "if", "re", ".", "match", "(", "r'easy_install(-\\d\\.\\d)?$'", ",", "k", ")", "]", "for", "k", "in", "easy_install_ep", ":", "del", "console", "[", "k", "]", "# Generate the console and GUI entry points specified in the wheel", "if", "len", "(", "console", ")", ">", "0", ":", "generated_console_scripts", "=", "maker", ".", "make_multiple", "(", "[", "'%s = %s'", "%", "kv", "for", "kv", "in", "console", ".", "items", "(", ")", "]", ")", "generated", ".", "extend", "(", "generated_console_scripts", ")", "if", "warn_script_location", ":", "msg", "=", "message_about_scripts_not_on_PATH", "(", "generated_console_scripts", ")", "if", "msg", "is", "not", "None", ":", "logger", ".", "warning", "(", "msg", ")", "if", "len", "(", "gui", ")", ">", "0", ":", "generated", ".", "extend", "(", "maker", ".", "make_multiple", "(", "[", "'%s = %s'", "%", "kv", "for", "kv", "in", "gui", ".", "items", "(", ")", "]", ",", "{", "'gui'", ":", "True", "}", ")", ")", "# Record pip as the installer", "installer", "=", "os", ".", "path", ".", "join", "(", "info_dir", "[", "0", "]", ",", "'INSTALLER'", ")", "temp_installer", "=", "os", ".", "path", ".", "join", "(", "info_dir", "[", "0", "]", ",", "'INSTALLER.pip'", ")", "with", "open", "(", "temp_installer", ",", "'wb'", ")", "as", "installer_file", ":", "installer_file", ".", "write", "(", "b'pip\\n'", ")", "shutil", ".", "move", "(", "temp_installer", ",", "installer", ")", "generated", ".", "append", "(", "installer", ")", "# Record details of all files installed", "record", "=", "os", ".", "path", ".", "join", "(", "info_dir", "[", "0", "]", ",", "'RECORD'", ")", "temp_record", "=", "os", ".", "path", ".", "join", "(", "info_dir", "[", "0", "]", ",", "'RECORD.pip'", ")", "with", "open_for_csv", "(", "record", ",", "'r'", ")", "as", "record_in", ":", "with", "open_for_csv", "(", "temp_record", ",", "'w+'", ")", "as", "record_out", ":", "reader", "=", "csv", ".", "reader", "(", "record_in", ")", "outrows", "=", "get_csv_rows_for_installed", "(", "reader", ",", "installed", "=", "installed", ",", "changed", "=", "changed", ",", "generated", "=", "generated", ",", "lib_dir", "=", "lib_dir", ",", ")", "writer", "=", "csv", ".", "writer", "(", "record_out", ")", "# Sort to simplify testing.", "for", "row", "in", "sorted_outrows", "(", "outrows", ")", ":", "writer", ".", "writerow", "(", "row", ")", "shutil", ".", "move", "(", "temp_record", ",", "record", ")" ]
Install a wheel
[ "Install", "a", "wheel" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L299-L614
train
Move a wheel to a new version of the current version of the current version.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnb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ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(3955 - 3844) + '\x33' + chr(51) + chr(0b100101 + 0o21), 9972 - 9964), ehT0Px3KOsy9('\x30' + chr(776 - 665) + chr(469 - 420) + '\066' + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(4194 - 4083) + '\062' + chr(54 - 2) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + '\067' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(2154 - 2106) + chr(0b111111 + 0o60) + chr(0b110010) + '\x33' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b110001 + 0o76) + chr(0b110010) + chr(48) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(1268 - 1213) + '\065', 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + chr(0b10101 + 0o36) + chr(50) + chr(0b100111 + 0o20), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11111 + 0o23) + chr(2377 - 2327) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100101 + 0o14) + '\061' + '\066', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x35' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(1075 - 1027) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10110 + 0o131) + '\x31' + '\065' + chr(0b101111 + 0o6), 20193 - 20185), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(0b101100 + 0o5) + chr(0b110011), 40076 - 40068), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(55) + chr(53), 8), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b110010) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1100111 + 0o10) + chr(49) + chr(125 - 72) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110 + 0o57) + '\x34', 48733 - 48725), ehT0Px3KOsy9('\x30' + chr(5644 - 5533) + chr(49) + chr(55) + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000110 + 0o51) + chr(49) + '\x36' + chr(0b1001 + 0o56), 3851 - 3843), ehT0Px3KOsy9('\x30' + chr(382 - 271) + '\x32' + chr(0b110001) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(54) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(0b110100) + chr(49), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(0b110000) + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\062' + chr(0b110001) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(52), 14614 - 14606), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b0 + 0o62) + chr(0b110111) + '\061', 17732 - 17724), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b111 + 0o51) + chr(54), 51513 - 51505), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1101111) + chr(1566 - 1516) + '\x30' + '\064', 0o10), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(9107 - 8996) + chr(0b11000 + 0o33) + chr(0b110010) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(9098 - 8987) + chr(750 - 701) + '\x35' + '\063', 46615 - 46607), ehT0Px3KOsy9(chr(0b110000) + chr(571 - 460) + '\067' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(982 - 932) + chr(0b110011) + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b111011 + 0o64) + chr(112 - 62) + chr(50) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1011 + 0o144) + chr(0b110001) + chr(0b11111 + 0o23) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1000010 + 0o55) + '\x32' + chr(48) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100000 + 0o117) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(790 - 679) + chr(53) + '\067', 63630 - 63622), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\157' + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(0b101111 + 0o3) + chr(0b1 + 0o57), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110101) + '\x30', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0'), '\x64' + '\x65' + chr(99) + chr(10138 - 10027) + '\144' + '\145')('\x75' + chr(5877 - 5761) + chr(649 - 547) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PrS0jAVgKSAm(AIvJRzLdDfgF, RaJ10cX5BL3G, dTQLHeFjriXY, FMTb8DewMQDd=ehT0Px3KOsy9(chr(1039 - 991) + chr(0b1101111) + chr(0b101110 + 0o2), ord("\x08")), vDGcSVCDpdSc=None, FiL2Xt3u2AMN=None, LsheKSS3BBsK=ehT0Px3KOsy9('\x30' + chr(1307 - 1196) + chr(49), 0o10), nh0h0JN0W0q6=None, fXNeWgnEy73B=ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1110 + 0o42), 8), K1Ha0XjJTAE7=None, jh1Zg4GcNTj_=ehT0Px3KOsy9(chr(669 - 621) + chr(0b1000001 + 0o56) + chr(49), 8)): if not nh0h0JN0W0q6: nh0h0JN0W0q6 = fGytOtTJrQXc(AIvJRzLdDfgF, user=FMTb8DewMQDd, home=vDGcSVCDpdSc, root=FiL2Xt3u2AMN, isolated=fXNeWgnEy73B, prefix=K1Ha0XjJTAE7) if PIKYQzg0uClI(AIvJRzLdDfgF, dTQLHeFjriXY): Fq1mS6RVRCed = nh0h0JN0W0q6[xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x05\xd4\xdb\xf6\xe8\x9f'), '\x64' + chr(0b1011111 + 0o6) + '\143' + chr(0b1101111) + '\x64' + chr(5329 - 5228))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000))] else: Fq1mS6RVRCed = nh0h0JN0W0q6[xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x1c\xc7\xca\xf6\xe8\x9f'), chr(2070 - 1970) + '\145' + chr(6879 - 6780) + '\157' + '\144' + chr(0b101 + 0o140))(chr(117) + chr(0b1110100) + '\146' + chr(0b1001 + 0o44) + chr(0b111000))] E9KESNlaZHGI = [] nyhvK2VYQvlU = [] Qas9W3D0Xbzi = dTQLHeFjriXY.rstrip(oqhJDdMJfuwx.path.sep) + oqhJDdMJfuwx.path.sep cOc_X43ZEx8t = {} RJdwDxnc5RKV = MVEN8G6CxlvR() CwkuOBODao4M = [] if LsheKSS3BBsK: with k2sykGUsZXqT() as GnvYj2DgYjeo: with xafqLlk3kkUe(fJoTPf8D_opC, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x11\xd2\xdd\xf2\xde\x8a\xb6\xe3 A\xac\n\xf8'), '\144' + '\145' + '\143' + chr(0b110100 + 0o73) + '\144' + chr(0b1001101 + 0o30))('\x75' + chr(116) + chr(102) + '\x2d' + chr(56)))(): xafqLlk3kkUe(fJoTPf8D_opC, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8\x19\xca\xca\xff\xf3\x8a\xb6\xe3 A\xac\n\xf8'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(13148 - 13031) + chr(0b1011100 + 0o30) + '\x66' + chr(0b1000 + 0o45) + chr(0b10011 + 0o45)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7\x17\xc8\xd1\xe8\xe4'), chr(0b1100100) + chr(0b1000010 + 0o43) + chr(0b11111 + 0o104) + chr(3419 - 3308) + chr(0b110011 + 0o61) + chr(831 - 730))('\165' + chr(116) + chr(5558 - 5456) + '\x2d' + chr(0b101001 + 0o17))) xafqLlk3kkUe(Kwnly0TQP37h, xafqLlk3kkUe(SXOLrMavuUCe(b"\xbd\x1f\xcb\xce\xf3\xed\x98\x88\xf5'Z"), chr(0b1001001 + 0o33) + chr(101) + chr(0b10000 + 0o123) + chr(0b1101111) + chr(0b100110 + 0o76) + chr(0b1100 + 0o131))('\x75' + chr(0b10101 + 0o137) + '\x66' + '\055' + chr(0b101100 + 0o14)))(Qas9W3D0Xbzi, force=ehT0Px3KOsy9(chr(647 - 599) + '\x6f' + chr(49), 8), quiet=ehT0Px3KOsy9(chr(48) + '\x6f' + chr(172 - 123), 8)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xba\x15\xc4\xcb\xfd'), '\x64' + chr(101) + chr(4490 - 4391) + chr(10261 - 10150) + chr(0b1100100) + '\x65')(chr(2963 - 2846) + '\164' + chr(102) + chr(45) + chr(0b111000)))(xafqLlk3kkUe(GnvYj2DgYjeo, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9\x15\xd2\xc8\xfb\xed\x88\xb2'), chr(8566 - 8466) + '\x65' + chr(5031 - 4932) + chr(0b110010 + 0o75) + chr(0b11010 + 0o112) + chr(5275 - 5174))(chr(0b1110101) + chr(0b1010000 + 0o44) + '\146' + '\x2d' + chr(56)))()) def GNRksDrpt7w_(VZgmc07IzXZy, B9vaNCRsIMPK, VjQc3DrZRpXl=ehT0Px3KOsy9(chr(0b110000) + chr(5968 - 5857) + '\060', 8)): Jq3pTk8KfhrS = dSYLXt0kkBCZ(VZgmc07IzXZy, dTQLHeFjriXY) keb0RbED49M9 = dSYLXt0kkBCZ(B9vaNCRsIMPK, Fq1mS6RVRCed) cOc_X43ZEx8t[Jq3pTk8KfhrS] = keb0RbED49M9 if VjQc3DrZRpXl: xafqLlk3kkUe(RJdwDxnc5RKV, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab:\x96\xcf\xa3\xe2\xba\xe2\xcb\x01z\xf1'), chr(100) + '\145' + chr(99) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(1263 - 1147) + '\x66' + '\055' + chr(1375 - 1319)))(B9vaNCRsIMPK) def iXc6w0W9UvRp(Qas9W3D0Xbzi, r6aMMPMZwN9t, xKwppuMFs6wy, dq6sPDtEcggT=None, hi1V0ySZcNds=None): p1r5RgRRsC1D(r6aMMPMZwN9t) for (g1Uy6IV0tyJQ, Vvyk8EF5LzTX, uyc48vokp5OE) in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x11\xca\xd5'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(10977 - 10866) + chr(713 - 613) + chr(101))('\x75' + '\x74' + '\x66' + chr(0b1100 + 0o41) + '\070'))(Qas9W3D0Xbzi): X2ombfwjF35O = g1Uy6IV0tyJQ[c2A0yzQpDQB3(Qas9W3D0Xbzi):].lstrip(oqhJDdMJfuwx.path.sep) oeXjlAIe74lF = oqhJDdMJfuwx.path._oWXztVNnqHF(r6aMMPMZwN9t, X2ombfwjF35O) if xKwppuMFs6wy and xafqLlk3kkUe(X2ombfwjF35O.split(oqhJDdMJfuwx.path.sep, ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2306 - 2257), 8))[ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + chr(1761 - 1713), 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), chr(0b110001 + 0o63) + chr(3418 - 3317) + '\143' + chr(0b10100 + 0o133) + chr(0b1111 + 0o125) + '\x65')(chr(0b1110101) + chr(6343 - 6227) + '\x66' + '\055' + chr(2570 - 2514)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x14\xc7\xca\xfb'), chr(0b1100100) + chr(7283 - 7182) + chr(0b101 + 0o136) + '\x6f' + '\x64' + chr(0b101111 + 0o66))(chr(0b1001010 + 0o53) + '\x74' + chr(0b10111 + 0o117) + '\x2d' + chr(0b1111 + 0o51))): continue for vGrByMSYMp9h in Vvyk8EF5LzTX: zmBkAhkj7Uhn = oqhJDdMJfuwx.path._oWXztVNnqHF(r6aMMPMZwN9t, X2ombfwjF35O, vGrByMSYMp9h) if xKwppuMFs6wy and X2ombfwjF35O == xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + '\145' + chr(5551 - 5452) + chr(8576 - 8465) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(0b1100110) + '\055' + chr(0b1 + 0o67)) and xafqLlk3kkUe(zmBkAhkj7Uhn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), '\x64' + chr(101) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(11512 - 11396) + chr(3993 - 3891) + chr(45) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x14\xc7\xca\xfb'), chr(0b1100100) + chr(7380 - 7279) + chr(0b1100011) + '\x6f' + chr(0b1000111 + 0o35) + '\145')(chr(10808 - 10691) + '\x74' + '\x66' + chr(0b101101) + chr(2977 - 2921))): xafqLlk3kkUe(nyhvK2VYQvlU, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\x00\xd6\xdb\xf4\xe5'), '\144' + chr(0b1100011 + 0o2) + chr(0b1100011) + chr(0b1101111) + chr(0b11101 + 0o107) + chr(101))('\x75' + chr(0b1110100) + chr(0b11011 + 0o113) + chr(0b101101) + chr(56)))(vGrByMSYMp9h) continue elif xKwppuMFs6wy and xafqLlk3kkUe(vGrByMSYMp9h, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), '\144' + chr(101) + chr(0b10100 + 0o117) + chr(4822 - 4711) + chr(0b1100100) + chr(6929 - 6828))(chr(7651 - 7534) + chr(116) + chr(0b111 + 0o137) + chr(0b11111 + 0o16) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x14\xcf\xcd\xee\xac\x94\xb9\xf7!'), chr(100) + chr(0b1100101) + '\143' + chr(111) + '\x64' + chr(0b10010 + 0o123))(chr(0b1110101) + chr(116) + '\146' + chr(45) + '\070')) and xafqLlk3kkUe(b_5TrtxayUo8(vGrByMSYMp9h), xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x04\xc7\xcc\xee\xf2\x8a\xbe\xe5&'), chr(100) + chr(0b110011 + 0o62) + chr(99) + chr(111) + chr(100) + chr(4212 - 4111))('\x75' + chr(3486 - 3370) + chr(0b1100110) + chr(45) + chr(56)))(b_5TrtxayUo8(xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f9\xd0\xf4\xc8\xfb\xb1\xb3\xd5(O\x84'), '\x64' + chr(101) + '\x63' + '\157' + chr(100) + chr(2207 - 2106))(chr(0b10100 + 0o141) + chr(0b10110 + 0o136) + '\146' + '\x2d' + '\x38')))): assert not E9KESNlaZHGI, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93\x05\xca\xca\xf3\xf1\x91\xb2\xb1`L\xab\x1e\xff\xd08\x06J\x17W\xeb\x18S\xe0\xebp\xd64\xed\xb1\x18\x07\xbf'), chr(2559 - 2459) + chr(9756 - 9655) + '\x63' + chr(0b1000010 + 0o55) + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b111000)) + zmBkAhkj7Uhn + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2P'), chr(0b10 + 0o142) + chr(438 - 337) + '\x63' + chr(10628 - 10517) + chr(2856 - 2756) + chr(0b1100101))(chr(0b1111 + 0o146) + '\164' + chr(102) + '\x2d' + '\x38') + xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2P'), chr(0b1100100) + '\x65' + chr(6111 - 6012) + chr(4121 - 4010) + chr(3776 - 3676) + chr(8197 - 8096))('\165' + '\164' + chr(0b1100110) + chr(45) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x81\x1f\xf1\xe6\xe0\xf5\xab\x99\xff?`\x84'), chr(7476 - 7376) + chr(101) + chr(0b1010111 + 0o14) + '\x6f' + chr(3370 - 3270) + chr(7086 - 6985))(chr(8531 - 8414) + '\164' + '\146' + '\x2d' + chr(56)))(E9KESNlaZHGI) xafqLlk3kkUe(E9KESNlaZHGI, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\x00\xd6\xdb\xf4\xe5'), '\144' + chr(0b1100101) + chr(4703 - 4604) + chr(111) + chr(0b100010 + 0o102) + chr(0b1100 + 0o131))(chr(3531 - 3414) + '\164' + '\146' + chr(0b10101 + 0o30) + chr(0b111000)))(zmBkAhkj7Uhn) for EGyt1xfPT1P6 in uyc48vokp5OE: if hi1V0ySZcNds and hi1V0ySZcNds(EGyt1xfPT1P6): continue VZgmc07IzXZy = oqhJDdMJfuwx.path._oWXztVNnqHF(g1Uy6IV0tyJQ, EGyt1xfPT1P6) B9vaNCRsIMPK = oqhJDdMJfuwx.path._oWXztVNnqHF(r6aMMPMZwN9t, X2ombfwjF35O, EGyt1xfPT1P6) p1r5RgRRsC1D(oeXjlAIe74lF) if xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xcf\xcd\xee\xf2'), chr(100) + '\x65' + '\x63' + '\x6f' + chr(7584 - 7484) + chr(0b1100101))('\x75' + chr(1041 - 925) + chr(0b1100110) + '\055' + chr(56)))(B9vaNCRsIMPK): xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\x1e\xca\xd7\xf4\xea'), chr(100) + '\x65' + '\143' + chr(111) + '\144' + '\x65')('\x75' + '\164' + chr(0b1100110) + '\055' + '\x38'))(B9vaNCRsIMPK) xafqLlk3kkUe(DSLq_IS6e6IX, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x1f\xd6\xc7\xfc\xe8\x91\xb2'), '\x64' + chr(101) + chr(334 - 235) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + '\x38'))(VZgmc07IzXZy, B9vaNCRsIMPK) GA0rwKqOQUOd = oqhJDdMJfuwx.stat(VZgmc07IzXZy) if lot1PSoAwYhj(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\x04\xcf\xd3\xff'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(0b1010001 + 0o23) + chr(0b1100101))(chr(117) + chr(116) + chr(102) + chr(45) + '\x38')): xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\x04\xcf\xd3\xff'), '\x64' + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b1100100 + 0o20) + '\x66' + '\055' + chr(56)))(B9vaNCRsIMPK, (xafqLlk3kkUe(GA0rwKqOQUOd, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x04\xf9\xdf\xee\xe8\x90\xb2'), chr(0b1100100) + '\x65' + chr(3549 - 3450) + chr(111) + '\x64' + chr(0b1100101))('\165' + '\164' + chr(5607 - 5505) + '\055' + chr(56))), xafqLlk3kkUe(GA0rwKqOQUOd, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x04\xf9\xd3\xee\xe8\x90\xb2'), chr(5353 - 5253) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1011 + 0o131) + chr(0b10010 + 0o123))(chr(117) + '\x74' + chr(102) + chr(45) + chr(0b111000))))) if xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\x13\xc5\xdb\xe9\xf2'), '\144' + chr(6170 - 6069) + chr(0b1011110 + 0o5) + '\x6f' + '\x64' + '\145')('\x75' + '\164' + chr(3660 - 3558) + chr(0b101101) + chr(0b1011 + 0o55)))(VZgmc07IzXZy, xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\x86/\xe9\xf5'), '\x64' + chr(0b1100101) + '\x63' + chr(0b100101 + 0o112) + chr(0b1100100) + chr(101))(chr(0b110 + 0o157) + chr(0b1110100) + chr(0b1100110) + chr(0b10110 + 0o27) + chr(0b111000)))): GA0rwKqOQUOd = oqhJDdMJfuwx.stat(VZgmc07IzXZy) Rm5AxuvmuBEr = GA0rwKqOQUOd.st_mode | KDNtFi7Uc6bo.S_IXUSR | KDNtFi7Uc6bo.S_IXGRP | KDNtFi7Uc6bo.S_IXOTH xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbd\x18\xcb\xd1\xfe'), '\144' + chr(0b100101 + 0o100) + chr(0b1100011) + '\157' + '\x64' + chr(7599 - 7498))(chr(0b1110101) + '\164' + '\146' + chr(871 - 826) + chr(0b100100 + 0o24)))(B9vaNCRsIMPK, Rm5AxuvmuBEr) RJdwDxnc5RKV = ehT0Px3KOsy9('\060' + chr(5397 - 5286) + chr(0b110000), 8) if dq6sPDtEcggT: RJdwDxnc5RKV = dq6sPDtEcggT(B9vaNCRsIMPK) GNRksDrpt7w_(VZgmc07IzXZy, B9vaNCRsIMPK, RJdwDxnc5RKV) iXc6w0W9UvRp(Qas9W3D0Xbzi, Fq1mS6RVRCed, ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(111) + '\061', 8)) assert E9KESNlaZHGI, xafqLlk3kkUe(SXOLrMavuUCe(b"\xfb\x03\x86\x90\xfe\xe8\x8e\xa3\xbc'F\xa4\x02\xab\x998\x1aI\x1b\x03\xe0\x03X\xa5\xe6k\xcdf\xe2\xbb\x1eS\xfb"), chr(0b1010010 + 0o22) + chr(0b1001 + 0o134) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(6938 - 6836) + chr(0b101101) + chr(0b111000)) % RaJ10cX5BL3G C9O2RwGsVeex = oqhJDdMJfuwx.path._oWXztVNnqHF(E9KESNlaZHGI[ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b10101 + 0o132) + chr(0b110000), 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xd2\xcc\xe3\xde\x8d\xb8\xf8 \\\xb1C\xff\x85%'), chr(1931 - 1831) + chr(9194 - 9093) + '\x63' + chr(111) + '\144' + chr(101))(chr(13491 - 13374) + '\x74' + chr(102) + chr(0b101101) + chr(0b101110 + 0o12))) (togHjo7N1cl0, S4_of8_KdOlx) = UUEPFEuxHqTu(C9O2RwGsVeex) def WS3bgvrHsihM(AIvJRzLdDfgF): if xafqLlk3kkUe(AIvJRzLdDfgF.lower(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), chr(0b101011 + 0o71) + '\x65' + '\143' + chr(0b1101111) + chr(991 - 891) + chr(101))(chr(0b10100 + 0o141) + chr(0b1110100) + chr(4959 - 4857) + chr(45) + chr(2452 - 2396)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x15\xde\xdb'), chr(3777 - 3677) + chr(0b1001 + 0o134) + '\x63' + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(1791 - 1746) + '\x38')): Ixbw8BetjmlL = AIvJRzLdDfgF[:-ehT0Px3KOsy9('\060' + '\x6f' + chr(2633 - 2581), 8)] elif xafqLlk3kkUe(AIvJRzLdDfgF.lower(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), chr(100) + chr(0b111101 + 0o50) + '\143' + '\157' + chr(0b1100100) + chr(3593 - 3492))(chr(0b1001111 + 0o46) + chr(116) + '\146' + chr(0b101101 + 0o0) + chr(0b1001 + 0o57)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\x03\xc5\xcc\xf3\xf1\x89\xf9\xe17'), chr(100) + chr(0b1100101) + '\x63' + chr(0b100 + 0o153) + chr(2308 - 2208) + chr(6791 - 6690))(chr(0b1001111 + 0o46) + chr(0b1110001 + 0o3) + chr(8681 - 8579) + chr(0b1 + 0o54) + chr(0b110 + 0o62))): Ixbw8BetjmlL = AIvJRzLdDfgF[:-ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(0b110010), ord("\x08"))] elif xafqLlk3kkUe(AIvJRzLdDfgF.lower(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x1e\xc2\xcd\xed\xe8\x89\xbf'), chr(0b1010110 + 0o16) + chr(1205 - 1104) + chr(0b1100 + 0o127) + chr(0b1101111) + chr(4024 - 3924) + '\x65')(chr(0b110001 + 0o104) + chr(0b1111 + 0o145) + chr(0b110100 + 0o62) + chr(0b10001 + 0o34) + chr(0b110010 + 0o6)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x00\xdf\xdf'), '\144' + '\x65' + chr(0b11 + 0o140) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(553 - 451) + chr(239 - 194) + '\070')): Ixbw8BetjmlL = AIvJRzLdDfgF[:-ehT0Px3KOsy9(chr(1188 - 1140) + chr(111) + chr(0b110100), 8)] else: Ixbw8BetjmlL = AIvJRzLdDfgF return Ixbw8BetjmlL in togHjo7N1cl0 or Ixbw8BetjmlL in S4_of8_KdOlx for RRqlyca6GZkP in nyhvK2VYQvlU: dq6sPDtEcggT = None hi1V0ySZcNds = None for LOQ33RWbsQRm in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\x19\xd5\xca\xfe\xe8\x8f'), '\144' + '\145' + '\143' + chr(111) + chr(0b1100100) + chr(0b101110 + 0o67))(chr(117) + chr(4842 - 4726) + '\x66' + chr(1894 - 1849) + '\070'))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\x81\x1f\xf1\xe6\xe0\xf5\xab\x99\xff?`\x84'), '\x64' + chr(101) + chr(99) + chr(947 - 836) + chr(100) + '\x65')('\x75' + chr(6405 - 6289) + '\146' + chr(0b101101) + chr(0b100000 + 0o30)))(dTQLHeFjriXY, RRqlyca6GZkP)): dq6sPDtEcggT = None if LOQ33RWbsQRm == xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x13\xd4\xd7\xea\xf5\x8e'), chr(100) + '\145' + '\143' + '\x6f' + chr(100) + chr(0b1100010 + 0o3))('\165' + '\164' + '\146' + chr(0b11101 + 0o20) + chr(0b111000)): dq6sPDtEcggT = xr7ZaXTcuk0l hi1V0ySZcNds = WS3bgvrHsihM Qas9W3D0Xbzi = oqhJDdMJfuwx.path._oWXztVNnqHF(dTQLHeFjriXY, RRqlyca6GZkP, LOQ33RWbsQRm) r6aMMPMZwN9t = nh0h0JN0W0q6[LOQ33RWbsQRm] iXc6w0W9UvRp(Qas9W3D0Xbzi, r6aMMPMZwN9t, ehT0Px3KOsy9('\060' + chr(0b1011100 + 0o23) + '\x30', 8), fixer=dq6sPDtEcggT, filter=hi1V0ySZcNds) t0JSC1JYGSYq = oKJsAdqgdte6(None, nh0h0JN0W0q6[xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x13\xd4\xd7\xea\xf5\x8e'), '\144' + chr(101) + '\143' + chr(2197 - 2086) + '\x64' + chr(0b1100101))(chr(0b10100 + 0o141) + chr(0b1110100) + chr(0b1100110) + chr(1743 - 1698) + chr(0b111000))]) t0JSC1JYGSYq.iXc6w0W9UvRp = ehT0Px3KOsy9('\060' + chr(111) + '\061', 8) t0JSC1JYGSYq.DV9J1pVm6RdW = {xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b110011 + 0o61) + chr(101) + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(117) + '\164' + chr(0b1011010 + 0o14) + '\x2d' + '\070')} t0JSC1JYGSYq.TtFAsiR8IOG5 = ehT0Px3KOsy9(chr(1560 - 1512) + '\157' + '\061', 8) def HBflUqZQQ1Oa(DuP5x7rEFa7R): if xafqLlk3kkUe(DuP5x7rEFa7R, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x05\xc0\xd8\xf3\xf9'), chr(373 - 273) + chr(9183 - 9082) + chr(0b1100011) + chr(7882 - 7771) + chr(0b1011 + 0o131) + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + '\055' + chr(0b100011 + 0o25))) is None: raise _wibqW2FhkQ9(xafqLlk3kkUe(SXOLrMavuUCe(b'\x97\x1e\xd0\xdf\xf6\xe8\x99\xf7\xe2-Z\xab\x1d\xff\xdd4\x06X\n\x0e\xaf\x01N\xec\xe6p\x83f\xa1\xa7K[\xf0\xe7r\xf0g^<0\xfb\x03\x86\x93\xba\xc0\xdd\xb4\xf0"D\xa3\x0f\xe7\x98q\x1bY\x1e\x11\xe6\t\x01\xec\xfb$\xcb#\xf5\xa1\x02O\xfa\xf1|\xa2AI&x\xaa\x04\xd6\xcd\xa0\xae\xd2\xa7\xf0-C\xa3\n\xe2\x936F\\\x01\x03\xe7\x1eO\xab\xe7v\xdei\xe1\xbaDQ\xfe\xe17\xf1v\x00by\xad\x04\xd4\xd7\xf8\xf4\x89\xbe\xff)\x06\xaa\x19\xe6\x91r\x0bC\x16\x04\xe0\x1dD\xa8\xfbg\xcb/\xf4\xa0\x18\x1d\xf9\xfa \xa2o@tu\xfe\x19\xc8\xd8\xf5\xf3\x90\xb6\xe5\'G\xacC'), chr(6529 - 6429) + chr(0b110010 + 0o63) + chr(0b1000001 + 0o42) + '\x6f' + '\x64' + '\145')(chr(0b110001 + 0o104) + '\164' + chr(102) + '\x2d' + '\070') % (DuP5x7rEFa7R, RaJ10cX5BL3G)) return xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x13\xd4\xd7\xea\xf5\xa2\xa3\xf4#X\xae\x0c\xff\x98'), '\144' + chr(1707 - 1606) + chr(787 - 688) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110010 + 0o2) + chr(4084 - 3982) + chr(45) + chr(56))) % {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x1f\xc2\xcb\xf6\xe4'), chr(0b1011001 + 0o13) + chr(4644 - 4543) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1010010 + 0o23))('\x75' + chr(13318 - 13202) + '\x66' + chr(45) + '\x38'): xafqLlk3kkUe(DuP5x7rEFa7R, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95A\xee\xdf\xaa\xd9\x97\x9d\xc5\x0fm\xf5'), '\144' + chr(0b1100101) + chr(6526 - 6427) + chr(1530 - 1419) + chr(1758 - 1658) + '\145')(chr(0b1110101) + chr(4460 - 4344) + chr(102) + chr(45) + chr(0b111000))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xb7\x1d\xd6\xd1\xe8\xf5\xa2\xb9\xf0#M'), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(979 - 879) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070'): xafqLlk3kkUe(DuP5x7rEFa7R.suffix, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x00\xca\xd7\xee'), chr(0b101110 + 0o66) + chr(0b1011011 + 0o12) + chr(0b0 + 0o143) + '\x6f' + chr(0b101011 + 0o71) + '\x65')(chr(0b1110101) + '\164' + chr(0b10100 + 0o122) + '\055' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b110100 + 0o73) + chr(3776 - 3676) + chr(0b1100101))('\x75' + '\164' + chr(102) + chr(1703 - 1658) + chr(56)))[ehT0Px3KOsy9(chr(410 - 362) + chr(111) + chr(0b10001 + 0o37), 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8\x05\xc8\xdd'), chr(0b1100100) + chr(101) + '\x63' + '\157' + '\144' + chr(7734 - 7633))(chr(6560 - 6443) + chr(11920 - 11804) + chr(7497 - 7395) + chr(0b101101) + '\070'): xafqLlk3kkUe(DuP5x7rEFa7R, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad\x05\xc0\xd8\xf3\xf9'), chr(6539 - 6439) + chr(0b100101 + 0o100) + '\143' + chr(0b100100 + 0o113) + chr(0b111101 + 0o47) + chr(1228 - 1127))('\165' + chr(0b1110100) + chr(0b100 + 0o142) + chr(45) + chr(0b111000)))} t0JSC1JYGSYq.HBflUqZQQ1Oa = HBflUqZQQ1Oa t0JSC1JYGSYq.V051EIzBb_Ez = xafqLlk3kkUe(SXOLrMavuUCe(b'\xfdP\x8b\x94\xb7\xa1\x9e\xb8\xf5\'F\xa5W\xab\x88%\x0e\x01@W\xa2[\x0c\x8f\xe1i\xc9)\xf6\xa0KO\xfa\x9f;\xefr@td\xfe\x03\xdf\xcd\x90\x8b\x9b\xa5\xfe#\x08\xe7E\xe6\x925\x1d@\x1d^\xfcQH\xe8\xf8k\xcb2\xa4\xf1CT\xf2\xe5=\xf0vphq\xb3\x15\x8f\xcd\x90\x8b\x94\xb1\xb1\x11w\xac\x0c\xe6\x98\x0e7\x0cEJ\xafV~\xda\xe5e\xd0(\xdb\x8bL\x07\x95\xb5r\xa2"\\\x7fc\xf0\x11\xd4\xd9\xec\xda\xcd\x8a\xb1s\x08\xb0\x08\xa5\x8e$\n\x04\nP\xa7\\R\xe6\xfam\xc92\xd8\xfa\x1bD\xe8\xaa.\xde,J~u\xf7O\x82\x99\xb6\xa1\xda\xf0\xbdn[\xbb\x1e\xa5\x9c#\x0fZ#G\xd2X+\xa5\xa8$\x995\xfd\xa7EX\xe7\xfc&\xaa\'\x07`e\xb0\x13\x8f\xcd\xb2\xa8\xd4\xdd'), chr(0b101000 + 0o74) + chr(101) + chr(0b111 + 0o134) + chr(111) + chr(8247 - 8147) + chr(0b1100101))('\x75' + '\164' + chr(102) + chr(0b111 + 0o46) + '\x38') SlrabqFnqwYd = togHjo7N1cl0.pop(xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x19\xd6'), '\144' + chr(0b1011011 + 0o12) + '\x63' + '\157' + chr(5684 - 5584) + chr(2151 - 2050))('\165' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)), None) if SlrabqFnqwYd: if xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b>\xf5\xeb\xc8\xc4\xad\x9e\xc1\x11g\x929\xc2\xb2\x1f;'), chr(0b1100100) + '\145' + '\x63' + chr(111) + '\144' + chr(5957 - 5856))('\165' + chr(0b1011101 + 0o27) + chr(4992 - 4890) + chr(0b101101) + chr(2974 - 2918)) not in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac>\xed\x88\xaa\xca\xa7\xe1\xa6 p\x80'), '\144' + chr(8900 - 8799) + '\x63' + '\157' + chr(0b1000110 + 0o36) + chr(0b1010010 + 0o23))(chr(117) + chr(0b111110 + 0o66) + chr(102) + chr(1677 - 1632) + chr(1033 - 977))): IH4wfF5htxM9 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x19\xd6\x9e\xa7\xa1'), chr(100) + chr(0b11000 + 0o115) + chr(630 - 531) + '\x6f' + '\144' + chr(101))(chr(117) + '\x74' + '\x66' + chr(603 - 558) + chr(56)) + SlrabqFnqwYd xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(117) + chr(0b1001110 + 0o46) + '\146' + '\055' + '\070'))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x11\xcd\xdb'), chr(0b1100100) + '\145' + chr(3867 - 3768) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(0b11011 + 0o113) + chr(0b110 + 0o47) + chr(0b111000)))(IH4wfF5htxM9)) if xafqLlk3kkUe(oqhJDdMJfuwx.environ, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9\x15\xd2'), chr(0b110101 + 0o57) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1010 + 0o132) + chr(0b1011 + 0o132))('\x75' + chr(0b1110100) + chr(0b10000 + 0o126) + chr(0b10001 + 0o34) + chr(1424 - 1368)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b>\xf5\xeb\xc8\xc4\xad\x9e\xc1\x11g\x929\xc2\xb2\x1f;'), chr(100) + '\x65' + chr(0b101 + 0o136) + chr(111) + '\x64' + '\145')('\x75' + '\x74' + chr(0b110011 + 0o63) + chr(45) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(1731 - 1631) + chr(0b1100101) + chr(0b1001000 + 0o33) + chr(7536 - 7425) + '\144' + '\145')('\x75' + '\x74' + chr(1962 - 1860) + chr(45) + chr(0b111000))) != xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\x1c\xd2\xd7\xf4\xf2\x89\xb6\xfd"'), chr(7643 - 7543) + chr(101) + chr(0b11110 + 0o105) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101 + 0o0) + '\164' + '\x66' + chr(0b101101) + chr(0b111000)): IH4wfF5htxM9 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x19\xd6\x9b\xe9\xa1\xc0\xf7\xb4='), chr(100) + '\145' + '\x63' + '\x6f' + chr(0b11000 + 0o114) + chr(0b1100101))(chr(117) + chr(9638 - 9522) + chr(102) + '\x2d' + chr(0b11110 + 0o32)) % (a2SYDDomXDZ2.cpMfQ_4_Vb7C[:ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001), 8)], SlrabqFnqwYd) xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), chr(0b1100100) + chr(0b1100101) + chr(7334 - 7235) + '\x6f' + '\x64' + '\x65')('\165' + chr(116) + '\x66' + chr(45) + '\070'))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x11\xcd\xdb'), chr(6378 - 6278) + '\x65' + '\143' + chr(5570 - 5459) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + '\x2d' + '\x38'))(IH4wfF5htxM9)) IH4wfF5htxM9 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x19\xd6\x9b\xe9\xa1\xc0\xf7\xb4='), '\x64' + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')('\x75' + chr(0b1001100 + 0o50) + '\x66' + chr(462 - 417) + chr(1599 - 1543)) % (a2SYDDomXDZ2.cpMfQ_4_Vb7C[:ehT0Px3KOsy9(chr(0b110000) + chr(11327 - 11216) + chr(0b100110 + 0o15), 18649 - 18641)], SlrabqFnqwYd) xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101001 + 0o6) + chr(100) + '\x65')('\165' + chr(116) + '\146' + chr(45) + chr(0b101111 + 0o11)))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x11\xcd\xdb'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(1939 - 1839) + chr(0b100 + 0o141))('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(0b10 + 0o66)))(IH4wfF5htxM9)) MzHYXK0JdjxD = [OolUPRJhRaJd for OolUPRJhRaJd in togHjo7N1cl0 if _7u55U49WwX2.match(xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x19\xd6\x96\xc6\xe5\xd5\x8b\xbf\x12L\xebR\xa2\xc2u'), chr(0b1100100) + chr(0b100101 + 0o100) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + '\070'), OolUPRJhRaJd)] for OolUPRJhRaJd in MzHYXK0JdjxD: del togHjo7N1cl0[OolUPRJhRaJd] zXDJIdnW355V = togHjo7N1cl0.pop(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x11\xd5\xc7\xc5\xe8\x93\xa4\xe5/D\xae'), chr(0b101001 + 0o73) + chr(101) + chr(0b1100011) + chr(0b1100001 + 0o16) + chr(0b100010 + 0o102) + chr(0b1100101))(chr(2454 - 2337) + '\164' + chr(0b111101 + 0o51) + chr(45) + '\070'), None) if zXDJIdnW355V: if xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b>\xf5\xeb\xc8\xc4\xad\x9e\xc1\x11g\x929\xc2\xb2\x1f;'), chr(6975 - 6875) + chr(101) + chr(99) + '\x6f' + chr(0b111 + 0o135) + chr(2464 - 2363))(chr(9171 - 9054) + chr(0b1110100) + chr(0b11110 + 0o110) + chr(0b1101 + 0o40) + '\x38') not in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac>\xed\x88\xaa\xca\xa7\xe1\xa6 p\x80'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + chr(6158 - 6058) + chr(2103 - 2002))(chr(0b100111 + 0o116) + chr(116) + chr(0b1100110) + '\x2d' + '\070')): IH4wfF5htxM9 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x11\xd5\xc7\xc5\xe8\x93\xa4\xe5/D\xaeM\xb6\xdd'), '\x64' + chr(0b110 + 0o137) + '\x63' + chr(0b1101110 + 0o1) + chr(0b101101 + 0o67) + chr(0b0 + 0o145))(chr(117) + '\x74' + chr(0b1100110) + chr(0b100011 + 0o12) + chr(1478 - 1422)) + zXDJIdnW355V xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), chr(0b1111 + 0o125) + chr(101) + chr(99) + chr(111) + chr(100) + chr(0b1100101 + 0o0))(chr(0b10101 + 0o140) + chr(3340 - 3224) + chr(0b1000110 + 0o40) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x11\xcd\xdb'), '\x64' + chr(101) + chr(0b1010111 + 0o14) + chr(0b1100001 + 0o16) + chr(100) + '\145')(chr(0b1101110 + 0o7) + chr(0b1001101 + 0o47) + '\146' + chr(1423 - 1378) + '\x38'))(IH4wfF5htxM9)) IH4wfF5htxM9 = xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x11\xd5\xc7\xc5\xe8\x93\xa4\xe5/D\xae@\xae\x8eqU\x0c]\x04'), '\x64' + chr(0b1100101) + chr(7183 - 7084) + chr(111) + '\144' + chr(0b1100101 + 0o0))('\165' + '\164' + '\x66' + '\055' + chr(0b1 + 0o67)) % (a2SYDDomXDZ2.cpMfQ_4_Vb7C[:ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100100 + 0o17), 8)], zXDJIdnW355V) xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), chr(100) + '\145' + chr(341 - 242) + chr(0b11101 + 0o122) + chr(100) + chr(101))('\x75' + chr(116) + chr(8301 - 8199) + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x11\xcd\xdb'), chr(0b1000101 + 0o37) + chr(719 - 618) + '\143' + chr(0b1101111) + chr(4019 - 3919) + '\145')(chr(0b11100 + 0o131) + chr(0b1110100) + '\146' + chr(0b101101) + chr(1841 - 1785)))(IH4wfF5htxM9)) zDeuypOlNQ2F = [OolUPRJhRaJd for OolUPRJhRaJd in togHjo7N1cl0 if _7u55U49WwX2.match(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x11\xd5\xc7\xc5\xe8\x93\xa4\xe5/D\xaeE\xa6\xa154\x02$\x13\xa6N\x05'), chr(0b101111 + 0o65) + chr(0b1100101) + chr(0b11101 + 0o106) + chr(8654 - 8543) + '\144' + '\145')(chr(117) + chr(10429 - 10313) + '\146' + '\x2d' + chr(0b111000)), OolUPRJhRaJd)] for OolUPRJhRaJd in zDeuypOlNQ2F: del togHjo7N1cl0[OolUPRJhRaJd] if c2A0yzQpDQB3(togHjo7N1cl0) > ehT0Px3KOsy9('\060' + chr(5919 - 5808) + '\x30', 8): UYpGjucao2bU = t0JSC1JYGSYq.make_multiple([xafqLlk3kkUe(SXOLrMavuUCe(b'\xfb\x03\x86\x83\xba\xa4\x8e'), chr(3281 - 3181) + chr(0b100 + 0o141) + '\x63' + chr(0b10001 + 0o136) + '\x64' + chr(4982 - 4881))(chr(0b1110101) + chr(6013 - 5897) + '\x66' + '\055' + chr(1341 - 1285)) % oG9AO0uxBJ0V for oG9AO0uxBJ0V in togHjo7N1cl0.NzveIZ3IlSH9()]) xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), '\x64' + chr(1253 - 1152) + chr(0b101110 + 0o65) + chr(111) + '\x64' + '\145')('\x75' + '\164' + chr(0b1011011 + 0o13) + '\x2d' + chr(462 - 406)))(UYpGjucao2bU) if jh1Zg4GcNTj_: jtbovtaIYjRB = lTrrUiBGBkTq(UYpGjucao2bU) if jtbovtaIYjRB is not None: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x11\xd4\xd0\xf3\xef\x9a'), chr(0b1100100) + chr(101) + chr(0b101001 + 0o72) + '\x6f' + '\x64' + chr(3514 - 3413))('\165' + '\x74' + '\x66' + chr(45) + chr(0b0 + 0o70)))(jtbovtaIYjRB) if c2A0yzQpDQB3(S4_of8_KdOlx) > ehT0Px3KOsy9(chr(1965 - 1917) + chr(111) + '\x30', 8): xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x08\xd2\xdb\xf4\xe5'), chr(100) + '\x65' + chr(3595 - 3496) + chr(111) + '\x64' + '\x65')(chr(0b1000010 + 0o63) + chr(116) + chr(0b1010111 + 0o17) + chr(0b101101) + chr(0b110011 + 0o5)))(xafqLlk3kkUe(t0JSC1JYGSYq, xafqLlk3kkUe(SXOLrMavuUCe(b"\xb3\x11\xcd\xdb\xc5\xec\x88\xbb\xe5'X\xae\x08"), chr(0b110011 + 0o61) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b101110 + 0o12)))([xafqLlk3kkUe(SXOLrMavuUCe(b'\xfb\x03\x86\x83\xba\xa4\x8e'), chr(0b1100100) + chr(101) + '\143' + chr(1369 - 1258) + chr(2359 - 2259) + chr(0b1100101))('\x75' + chr(0b111100 + 0o70) + chr(0b111110 + 0o50) + '\x2d' + chr(2446 - 2390)) % oG9AO0uxBJ0V for oG9AO0uxBJ0V in xafqLlk3kkUe(S4_of8_KdOlx, xafqLlk3kkUe(SXOLrMavuUCe(b'\x90\n\xd0\xdb\xd3\xdb\xce\x9e\xfd\x1d`\xfb'), '\x64' + '\145' + '\x63' + chr(111) + '\x64' + chr(0b111000 + 0o55))(chr(0b1110101) + '\164' + chr(0b11111 + 0o107) + chr(45) + chr(0b11010 + 0o36)))()], {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9\x05\xcf'), '\x64' + '\x65' + '\x63' + chr(111) + '\x64' + '\x65')(chr(11436 - 11319) + chr(116) + chr(5598 - 5496) + chr(0b101101) + chr(1145 - 1089)): ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001), 8)})) odE89ZQrbnyi = oqhJDdMJfuwx.path._oWXztVNnqHF(E9KESNlaZHGI[ehT0Px3KOsy9(chr(48) + chr(111) + '\x30', 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\x97>\xf5\xea\xdb\xcd\xb1\x92\xc3'), chr(5287 - 5187) + '\145' + chr(0b1000011 + 0o40) + chr(5479 - 5368) + '\144' + chr(8374 - 8273))(chr(117) + '\x74' + '\146' + '\055' + chr(56))) v_bNYa2f7bhl = oqhJDdMJfuwx.path._oWXztVNnqHF(E9KESNlaZHGI[ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100 + 0o54), 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\x97>\xf5\xea\xdb\xcd\xb1\x92\xc3`X\xab\x1d'), chr(5574 - 5474) + chr(10134 - 10033) + '\x63' + chr(0b11001 + 0o126) + chr(2890 - 2790) + chr(0b110 + 0o137))('\x75' + chr(12890 - 12774) + chr(5793 - 5691) + chr(0b100010 + 0o13) + chr(0b1100 + 0o54))) with _fwkIVCGgtAN(v_bNYa2f7bhl, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x12'), '\144' + chr(0b1100101) + chr(0b1010010 + 0o21) + '\157' + '\144' + '\145')('\x75' + chr(9229 - 9113) + '\146' + chr(0b101101) + chr(215 - 159))) as edvRrZgJM35_: xafqLlk3kkUe(edvRrZgJM35_, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x02\xcf\xca\xff'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b10110 + 0o137) + chr(8450 - 8334) + '\x66' + '\x2d' + '\070'))(SXOLrMavuUCe(b'\xae\x19\xd6\xb4')) xafqLlk3kkUe(DSLq_IS6e6IX, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x1f\xd0\xdb'), chr(100) + '\145' + chr(99) + chr(5717 - 5606) + chr(0b1100100) + chr(0b1100101))(chr(6319 - 6202) + '\x74' + '\x66' + chr(881 - 836) + chr(0b100011 + 0o25)))(v_bNYa2f7bhl, odE89ZQrbnyi) xafqLlk3kkUe(CwkuOBODao4M, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\x00\xd6\xdb\xf4\xe5'), chr(8542 - 8442) + '\145' + chr(4294 - 4195) + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + '\x66' + chr(128 - 83) + chr(0b111000)))(odE89ZQrbnyi) SIWbn6wzltxD = oqhJDdMJfuwx.path._oWXztVNnqHF(E9KESNlaZHGI[ehT0Px3KOsy9('\060' + '\x6f' + chr(1863 - 1815), 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c5\xe5\xf1\xc8\xc5'), chr(0b110111 + 0o55) + '\145' + '\x63' + chr(0b1101111) + chr(7141 - 7041) + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b11100 + 0o21) + chr(658 - 602))) F1JsL09eqIhu = oqhJDdMJfuwx.path._oWXztVNnqHF(E9KESNlaZHGI[ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x30', 8)], xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c5\xe5\xf1\xc8\xc5\xd3\xa7\xf8>'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(0b1000 + 0o134) + '\x65')(chr(4291 - 4174) + chr(0b1110100) + chr(0b111100 + 0o52) + chr(1014 - 969) + chr(0b1100 + 0o54))) with CeLUdqjZej18(SIWbn6wzltxD, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b111011 + 0o51) + chr(0b1100101))(chr(13589 - 13472) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38')) as m2zAs7E2BTni: with CeLUdqjZej18(F1JsL09eqIhu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9['), chr(4686 - 4586) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(6446 - 6345))(chr(0b110101 + 0o100) + chr(0b1110100) + chr(0b1011001 + 0o15) + '\x2d' + chr(0b10110 + 0o42))) as am4WmXeHr8xq: Yt95jqiXKpBv = CU5kosqFIwDx.reader(m2zAs7E2BTni) hk58k8fSkuye = APZXurgy9vWS(Yt95jqiXKpBv, installed=cOc_X43ZEx8t, changed=RJdwDxnc5RKV, generated=CwkuOBODao4M, lib_dir=Fq1mS6RVRCed) AkL2ZqopDgiR = CU5kosqFIwDx.AkL2ZqopDgiR(am4WmXeHr8xq) for TAK9K32TkBdA in TJa1ml_MMzn9(hk58k8fSkuye): xafqLlk3kkUe(AkL2ZqopDgiR, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9\x02\xcf\xca\xff\xf3\x92\xa0'), chr(0b110110 + 0o56) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b100000 + 0o124) + chr(0b1100110) + '\055' + chr(0b101000 + 0o20)))(TAK9K32TkBdA) xafqLlk3kkUe(DSLq_IS6e6IX, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\x1f\xd0\xdb'), chr(0b1010 + 0o132) + '\145' + chr(99) + chr(0b1010 + 0o145) + chr(100) + chr(101))(chr(145 - 28) + chr(0b1000101 + 0o57) + '\x66' + '\x2d' + chr(0b110110 + 0o2)))(F1JsL09eqIhu, SIWbn6wzltxD)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
wheel_version
def wheel_version(source_dir): # type: (Optional[str]) -> Optional[Tuple[int, ...]] """ Return the Wheel-Version of an extracted wheel, if possible. Otherwise, return None if we couldn't parse / extract it. """ try: dist = [d for d in pkg_resources.find_on_path(None, source_dir)][0] wheel_data = dist.get_metadata('WHEEL') wheel_data = Parser().parsestr(wheel_data) version = wheel_data['Wheel-Version'].strip() version = tuple(map(int, version.split('.'))) return version except Exception: return None
python
def wheel_version(source_dir): # type: (Optional[str]) -> Optional[Tuple[int, ...]] """ Return the Wheel-Version of an extracted wheel, if possible. Otherwise, return None if we couldn't parse / extract it. """ try: dist = [d for d in pkg_resources.find_on_path(None, source_dir)][0] wheel_data = dist.get_metadata('WHEEL') wheel_data = Parser().parsestr(wheel_data) version = wheel_data['Wheel-Version'].strip() version = tuple(map(int, version.split('.'))) return version except Exception: return None
[ "def", "wheel_version", "(", "source_dir", ")", ":", "# type: (Optional[str]) -> Optional[Tuple[int, ...]]", "try", ":", "dist", "=", "[", "d", "for", "d", "in", "pkg_resources", ".", "find_on_path", "(", "None", ",", "source_dir", ")", "]", "[", "0", "]", "wheel_data", "=", "dist", ".", "get_metadata", "(", "'WHEEL'", ")", "wheel_data", "=", "Parser", "(", ")", ".", "parsestr", "(", "wheel_data", ")", "version", "=", "wheel_data", "[", "'Wheel-Version'", "]", ".", "strip", "(", ")", "version", "=", "tuple", "(", "map", "(", "int", ",", "version", ".", "split", "(", "'.'", ")", ")", ")", "return", "version", "except", "Exception", ":", "return", "None" ]
Return the Wheel-Version of an extracted wheel, if possible. Otherwise, return None if we couldn't parse / extract it.
[ "Return", "the", "Wheel", "-", "Version", "of", "an", "extracted", "wheel", "if", "possible", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L617-L634
train
Returns the Wheel - Version of an extracted wheel if possible.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3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(832 - 721) + '\x34' + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(0b110011) + '\061', 0o10), ehT0Px3KOsy9(chr(499 - 451) + chr(0b1101111) + chr(55) + chr(52), 0o10), ehT0Px3KOsy9(chr(2126 - 2078) + chr(5567 - 5456) + '\x32' + '\x36' + '\x36', 0o10), ehT0Px3KOsy9(chr(1423 - 1375) + '\x6f' + chr(0b100000 + 0o22) + chr(49) + chr(0b100010 + 0o21), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b111000 + 0o67) + chr(0b100011 + 0o17) + chr(0b100010 + 0o17) + chr(0b11100 + 0o33), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\063' + '\x37' + chr(0b1000 + 0o50), 0b1000), ehT0Px3KOsy9(chr(48) + chr(3831 - 3720) + chr(1062 - 1012) + chr(825 - 773) + chr(0b100110 + 0o14), 0b1000), ehT0Px3KOsy9('\060' + chr(6707 - 6596) + chr(0b110001) + chr(55) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(369 - 319) + chr(0b110110) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011000 + 0o27) + '\x33' + chr(55), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + chr(720 - 667) + chr(0b110011), 26072 - 26064), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(479 - 426) + chr(809 - 760), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(429 - 318) + chr(0b110010) + chr(0b101101 + 0o12), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2414 - 2363) + chr(0b110001) + chr(2071 - 2018), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10 + 0o57) + '\x31' + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x33' + '\x37' + '\063', 18728 - 18720), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001) + chr(1063 - 1015) + '\064', 25608 - 25600), ehT0Px3KOsy9(chr(0b110000) + chr(0b10100 + 0o133) + chr(0b110011) + '\060' + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + '\067' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(53), 23481 - 23473), ehT0Px3KOsy9('\x30' + chr(10256 - 10145) + chr(0b101010 + 0o14), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b0 + 0o61) + chr(0b110111), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11000 + 0o32) + '\x37' + chr(602 - 554), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + '\061' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1 + 0o60) + '\x34' + chr(2498 - 2447), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\066' + '\061', 0o10), ehT0Px3KOsy9(chr(1993 - 1945) + '\157' + chr(0b10110 + 0o35) + '\x33' + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1011 + 0o47) + chr(0b110111) + chr(0b1011 + 0o54), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1925 - 1874) + chr(50) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b111100 + 0o63) + chr(0b110011) + chr(55) + '\x37', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(1031 - 981) + '\066' + chr(1468 - 1415), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(2593 - 2542) + chr(0b110110) + chr(1914 - 1865), 58000 - 57992), ehT0Px3KOsy9('\x30' + chr(10048 - 9937) + chr(51) + chr(0b110100 + 0o0) + chr(0b110000 + 0o1), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(51) + chr(1446 - 1393), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(111) + chr(0b11001 + 0o30) + chr(49) + chr(444 - 392), 8), ehT0Px3KOsy9('\x30' + chr(3799 - 3688) + chr(1672 - 1622) + '\064' + '\064', 0o10), ehT0Px3KOsy9(chr(51 - 3) + '\x6f' + '\063' + chr(423 - 373) + '\x31', 6228 - 6220)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + '\x35' + chr(1249 - 1201), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\n'), chr(0b111010 + 0o52) + chr(101) + chr(99) + chr(0b1010101 + 0o32) + chr(0b1100100) + chr(101))(chr(0b1010101 + 0o40) + chr(0b1110100) + chr(0b1011000 + 0o16) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def FjTc8XtJCEmd(gcatodHcv5an): try: ydho_1U2EnKK = [pd3lxn9vqWxp for pd3lxn9vqWxp in SedyUXfqv7Ho.find_on_path(None, gcatodHcv5an)][ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10011 + 0o35), 0b1000)] plz6ek1_EBqv = ydho_1U2EnKK.get_metadata(xafqLlk3kkUe(SXOLrMavuUCe(b'sQy\xf3\xc7'), '\144' + chr(0b1100101) + chr(725 - 626) + chr(0b1101111) + chr(0b111010 + 0o52) + '\145')(chr(6554 - 6437) + chr(0b1110100) + chr(7816 - 7714) + chr(1866 - 1821) + chr(56))) plz6ek1_EBqv = dE5EyB_iQEYW().parsestr(plz6ek1_EBqv) cpMfQ_4_Vb7C = plz6ek1_EBqv[xafqLlk3kkUe(SXOLrMavuUCe(b'sqY\xd3\xe7\xa2\xae\xc7\x0b\xc7v\xc4\x07'), chr(3274 - 3174) + chr(8828 - 8727) + chr(0b1100011) + chr(0b1001 + 0o146) + chr(0b101 + 0o137) + chr(101))(chr(117) + chr(116) + chr(6470 - 6368) + chr(0b101101) + chr(0b10000 + 0o50))].VmIJF6Fy6LrX() cpMfQ_4_Vb7C = KNyTy8rYcwji(abA97kOQKaLo(ehT0Px3KOsy9, cpMfQ_4_Vb7C.split(xafqLlk3kkUe(SXOLrMavuUCe(b'\n'), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b100111 + 0o116) + chr(116) + '\146' + '\055' + chr(56))))) return cpMfQ_4_Vb7C except jLmadlzMdunT: return None
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
_contains_egg_info
def _contains_egg_info( s, _egg_info_re=re.compile(r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)', re.I)): """Determine whether the string looks like an egg_info. :param s: The string to parse. E.g. foo-2.1 """ return bool(_egg_info_re.search(s))
python
def _contains_egg_info( s, _egg_info_re=re.compile(r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)', re.I)): """Determine whether the string looks like an egg_info. :param s: The string to parse. E.g. foo-2.1 """ return bool(_egg_info_re.search(s))
[ "def", "_contains_egg_info", "(", "s", ",", "_egg_info_re", "=", "re", ".", "compile", "(", "r'([a-z0-9_.]+)-([a-z0-9_.!+-]+)'", ",", "re", ".", "I", ")", ")", ":", "return", "bool", "(", "_egg_info_re", ".", "search", "(", "s", ")", ")" ]
Determine whether the string looks like an egg_info. :param s: The string to parse. E.g. foo-2.1
[ "Determine", "whether", "the", "string", "looks", "like", "an", "egg_info", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L727-L733
train
Returns True if the string looks like an egg_info. .
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qR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,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(2905 - 2794) + chr(51) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x35' + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(2513 - 2461) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(1543 - 1495) + '\157' + '\061' + chr(54) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(10398 - 10287) + '\063' + chr(0b110001) + chr(49), 33335 - 33327), ehT0Px3KOsy9(chr(2048 - 2000) + '\x6f' + chr(737 - 687) + '\x31' + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1198 - 1148) + chr(2205 - 2156) + chr(1012 - 963), 0o10), ehT0Px3KOsy9(chr(906 - 858) + '\x6f' + chr(0b10 + 0o61) + '\067' + '\065', 14570 - 14562), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101001 + 0o10) + chr(0b110001), 27701 - 27693), ehT0Px3KOsy9('\060' + chr(0b1001 + 0o146) + chr(0b110010) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + '\064' + chr(2198 - 2148), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(164 - 112) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(7423 - 7312) + '\061' + '\066' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(947 - 899) + chr(0b1101111) + chr(0b110001) + chr(0b110000) + chr(0b10 + 0o61), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b110111) + chr(1257 - 1207), 0b1000), ehT0Px3KOsy9('\x30' + chr(6958 - 6847) + '\061' + chr(55) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b110100 + 0o73) + chr(2460 - 2410) + '\x33', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + '\064' + chr(53), 64080 - 64072), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + '\x32' + chr(1028 - 978), 36763 - 36755), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2220 - 2171) + chr(0b1 + 0o64) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b100011 + 0o114) + chr(0b10110 + 0o36) + chr(759 - 707), 10130 - 10122), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(66 - 15) + '\066' + chr(265 - 217), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(6714 - 6603) + '\062' + chr(54) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(51) + chr(0b11 + 0o61), 17510 - 17502), ehT0Px3KOsy9(chr(1592 - 1544) + chr(0b1010 + 0o145) + chr(0b10000 + 0o42) + '\x34' + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(2859 - 2748) + '\062' + chr(0b110010) + chr(2237 - 2188), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(2019 - 1970) + chr(0b11010 + 0o32) + chr(1147 - 1092), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + '\067' + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5235 - 5124) + chr(0b101011 + 0o10) + '\060' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b101111 + 0o3) + chr(51) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(1357 - 1308) + chr(997 - 949), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + '\060' + chr(0b11100 + 0o26), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(2264 - 2213) + chr(53) + chr(2365 - 2310), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(55) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + '\061' + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(966 - 855) + '\x32' + '\x32' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + '\063' + '\061', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(0b11101 + 0o23) + chr(0b110000 + 0o7), 20054 - 20046)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + '\x35' + chr(0b11101 + 0o23), 25751 - 25743)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'6'), chr(8366 - 8266) + chr(0b111001 + 0o54) + chr(99) + chr(0b1011011 + 0o24) + chr(0b1100011 + 0o1) + '\x65')(chr(0b0 + 0o165) + chr(0b11010 + 0o132) + '\x66' + chr(0b101101) + chr(0b1111 + 0o51)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def ajiCo7IzFNyJ(vGrByMSYMp9h, BUEYxl8aE0cE=xafqLlk3kkUe(_7u55U49WwX2, xafqLlk3kkUe(SXOLrMavuUCe(b'{BJ\x02\xa0\xe4\xec'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(0b1011100 + 0o10) + chr(0b11 + 0o142))(chr(0b1100001 + 0o24) + '\164' + '\146' + chr(0b10100 + 0o31) + chr(2041 - 1985)))(xafqLlk3kkUe(SXOLrMavuUCe(b'0vF_\xb3\xb8\xa4\xc4V>\xff\xcf\\n\x92$r\xc8|\xe2C\x1d\xaf\x9b}\x8b\xbc:\xd4)'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(1061 - 950) + '\x64' + '\145')(chr(0b1110101) + chr(0b1000011 + 0o61) + '\x66' + '\x2d' + chr(56)), xafqLlk3kkUe(_7u55U49WwX2, xafqLlk3kkUe(SXOLrMavuUCe(b'Q'), chr(0b1010000 + 0o24) + chr(7049 - 6948) + chr(7763 - 7664) + chr(2319 - 2208) + '\144' + chr(101))(chr(0b1001111 + 0o46) + chr(116) + '\x66' + chr(0b10011 + 0o32) + chr(1014 - 958))))): return WbBjf8Y7v9VN(xafqLlk3kkUe(BUEYxl8aE0cE, xafqLlk3kkUe(SXOLrMavuUCe(b'kHF\x00\xaa\xe0'), '\144' + '\x65' + chr(0b101 + 0o136) + chr(9366 - 9255) + chr(0b1100100) + chr(0b1011001 + 0o14))(chr(0b11110 + 0o127) + chr(0b1101001 + 0o13) + '\146' + chr(0b10000 + 0o35) + '\x38'))(vGrByMSYMp9h))
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
should_use_ephemeral_cache
def should_use_ephemeral_cache( req, # type: InstallRequirement format_control, # type: FormatControl autobuilding, # type: bool cache_available # type: bool ): # type: (...) -> Optional[bool] """ Return whether to build an InstallRequirement object using the ephemeral cache. :param cache_available: whether a cache directory is available for the autobuilding=True case. :return: True or False to build the requirement with ephem_cache=True or False, respectively; or None not to build the requirement. """ if req.constraint: return None if req.is_wheel: if not autobuilding: logger.info( 'Skipping %s, due to already being wheel.', req.name, ) return None if not autobuilding: return False if req.editable or not req.source_dir: return None if req.link and not req.link.is_artifact: # VCS checkout. Build wheel just for this run. return True if "binary" not in format_control.get_allowed_formats( canonicalize_name(req.name)): logger.info( "Skipping bdist_wheel for %s, due to binaries " "being disabled for it.", req.name, ) return None link = req.link base, ext = link.splitext() if cache_available and _contains_egg_info(base): return False # Otherwise, build the wheel just for this run using the ephemeral # cache since we are either in the case of e.g. a local directory, or # no cache directory is available to use. return True
python
def should_use_ephemeral_cache( req, # type: InstallRequirement format_control, # type: FormatControl autobuilding, # type: bool cache_available # type: bool ): # type: (...) -> Optional[bool] """ Return whether to build an InstallRequirement object using the ephemeral cache. :param cache_available: whether a cache directory is available for the autobuilding=True case. :return: True or False to build the requirement with ephem_cache=True or False, respectively; or None not to build the requirement. """ if req.constraint: return None if req.is_wheel: if not autobuilding: logger.info( 'Skipping %s, due to already being wheel.', req.name, ) return None if not autobuilding: return False if req.editable or not req.source_dir: return None if req.link and not req.link.is_artifact: # VCS checkout. Build wheel just for this run. return True if "binary" not in format_control.get_allowed_formats( canonicalize_name(req.name)): logger.info( "Skipping bdist_wheel for %s, due to binaries " "being disabled for it.", req.name, ) return None link = req.link base, ext = link.splitext() if cache_available and _contains_egg_info(base): return False # Otherwise, build the wheel just for this run using the ephemeral # cache since we are either in the case of e.g. a local directory, or # no cache directory is available to use. return True
[ "def", "should_use_ephemeral_cache", "(", "req", ",", "# type: InstallRequirement", "format_control", ",", "# type: FormatControl", "autobuilding", ",", "# type: bool", "cache_available", "# type: bool", ")", ":", "# type: (...) -> Optional[bool]", "if", "req", ".", "constraint", ":", "return", "None", "if", "req", ".", "is_wheel", ":", "if", "not", "autobuilding", ":", "logger", ".", "info", "(", "'Skipping %s, due to already being wheel.'", ",", "req", ".", "name", ",", ")", "return", "None", "if", "not", "autobuilding", ":", "return", "False", "if", "req", ".", "editable", "or", "not", "req", ".", "source_dir", ":", "return", "None", "if", "req", ".", "link", "and", "not", "req", ".", "link", ".", "is_artifact", ":", "# VCS checkout. Build wheel just for this run.", "return", "True", "if", "\"binary\"", "not", "in", "format_control", ".", "get_allowed_formats", "(", "canonicalize_name", "(", "req", ".", "name", ")", ")", ":", "logger", ".", "info", "(", "\"Skipping bdist_wheel for %s, due to binaries \"", "\"being disabled for it.\"", ",", "req", ".", "name", ",", ")", "return", "None", "link", "=", "req", ".", "link", "base", ",", "ext", "=", "link", ".", "splitext", "(", ")", "if", "cache_available", "and", "_contains_egg_info", "(", "base", ")", ":", "return", "False", "# Otherwise, build the wheel just for this run using the ephemeral", "# cache since we are either in the case of e.g. a local directory, or", "# no cache directory is available to use.", "return", "True" ]
Return whether to build an InstallRequirement object using the ephemeral cache. :param cache_available: whether a cache directory is available for the autobuilding=True case. :return: True or False to build the requirement with ephem_cache=True or False, respectively; or None not to build the requirement.
[ "Return", "whether", "to", "build", "an", "InstallRequirement", "object", "using", "the", "ephemeral", "cache", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L736-L787
train
Determines if the given InstallRequirement object should be used for ephemeral cache.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqMqV,WTxpD_zsEOh2,LgE_IO_t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,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1813 - 1763) + '\x32' + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(55) + chr(756 - 701), ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + '\x33' + '\062' + chr(0b1011 + 0o54), 0b1000), ehT0Px3KOsy9(chr(1782 - 1734) + chr(5733 - 5622) + chr(737 - 688) + '\060', 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(4631 - 4520) + chr(49) + '\065' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(671 - 623) + chr(0b100100 + 0o16), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\063' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1745 - 1696) + '\066', 0o10), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\x6f' + chr(50) + chr(0b110010) + chr(566 - 516), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110100) + chr(0b110111), 59105 - 59097), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(490 - 438) + chr(1870 - 1817), 0o10), ehT0Px3KOsy9(chr(205 - 157) + chr(0b1101111) + '\x31' + chr(0b110011) + chr(2550 - 2496), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b1110 + 0o50) + '\x31', 19103 - 19095), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(130 - 79) + '\066', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(0b100101 + 0o13) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6689 - 6578) + '\063' + chr(0b110001) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(0b100101 + 0o14) + chr(55), 42215 - 42207), ehT0Px3KOsy9('\060' + chr(963 - 852) + chr(49) + '\x33' + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(1149 - 1038) + chr(0b110001) + chr(49) + chr(0b1010 + 0o53), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(53) + chr(1426 - 1373), 57954 - 57946), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010 + 0o1) + chr(0b110101) + chr(55), 0b1000), ehT0Px3KOsy9(chr(907 - 859) + chr(0b1101111) + chr(0b110010) + '\067' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011001 + 0o26) + chr(108 - 53) + chr(795 - 743), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b10110 + 0o41), 44814 - 44806), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000111 + 0o50) + '\066' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(1995 - 1947) + chr(3292 - 3181) + chr(50) + '\x35', 41058 - 41050), ehT0Px3KOsy9(chr(1877 - 1829) + chr(0b1101111) + chr(0b110011) + chr(54) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101010 + 0o5) + '\061' + chr(0b110010) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(0b10001 + 0o41) + '\x35', 0o10), ehT0Px3KOsy9(chr(59 - 11) + chr(0b100011 + 0o114) + chr(1576 - 1526) + chr(80 - 25) + chr(55), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + chr(0b110001) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(1713 - 1665) + chr(0b1101111) + chr(0b110001) + chr(0b110110) + '\060', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(0b100100 + 0o21) + chr(400 - 351), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + '\x37' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(2228 - 2180) + chr(111) + chr(0b0 + 0o66) + '\065', 0o10), ehT0Px3KOsy9(chr(1455 - 1407) + chr(0b1101111) + chr(51) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100010 + 0o115) + chr(2522 - 2471) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(1299 - 1251) + chr(111) + chr(0b110010) + chr(1834 - 1783) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b1100 + 0o47) + chr(0b110 + 0o57) + '\066', 0b1000), ehT0Px3KOsy9(chr(389 - 341) + chr(0b1101111) + chr(0b110101) + chr(1178 - 1129), 62412 - 62404)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101111) + '\x35' + chr(48), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xba'), chr(100) + '\145' + chr(99) + '\x6f' + chr(0b100101 + 0o77) + chr(0b1001000 + 0o35))('\x75' + chr(0b111110 + 0o66) + chr(1703 - 1601) + chr(943 - 898) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def NQs3Ddwa3Hxr(RaJ10cX5BL3G, ME2lOzEP2bGJ, PP45RoMBlhHZ, hBm7IRUH1IJS): if xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7P\xb9{\x18\xb0\xb8g\xfcS'), chr(7022 - 6922) + '\145' + chr(0b1100011) + chr(0b101001 + 0o106) + '\144' + chr(0b1000111 + 0o36))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + '\x38')): return None if xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfdL\x88\x7f\x04\xa7\xbcb'), chr(3492 - 3392) + chr(101) + chr(0b1100011) + chr(614 - 503) + chr(0b1001101 + 0o27) + chr(101))(chr(117) + chr(0b1010111 + 0o35) + '\x66' + '\x2d' + chr(0b100101 + 0o23))): if not PP45RoMBlhHZ: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc7\x08\x9fp\x19\xa1\xbe9\xf8K\xff5'), '\x64' + chr(730 - 629) + chr(3128 - 3029) + chr(111) + '\144' + '\x65')(chr(0b100110 + 0o117) + chr(0b1110100) + chr(102) + chr(0b1000 + 0o45) + chr(0b100010 + 0o26)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc7T\xbex\x1c\xab\xb7i\xb2\x02\xd6r\xd1:\xb6\xafo+"\r\x8e\xd2NzPq\x8bv\xb7\xda#\x1e\x8e]Bv|\xfd\x82\x07'), '\144' + chr(1483 - 1382) + chr(6747 - 6648) + '\157' + chr(100) + '\145')('\165' + chr(1476 - 1360) + chr(0b1000101 + 0o41) + '\x2d' + '\070'), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd5v\xa1B>\xb8\x95j\xd6A\xc2\x18'), chr(0b1100100) + chr(8982 - 8881) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1110101) + chr(11057 - 10941) + '\146' + chr(45) + chr(0b1001 + 0o57)))) return None if not PP45RoMBlhHZ: return ehT0Px3KOsy9('\060' + chr(0b1101111) + '\060', ord("\x08")) if xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf1[\xbe|\r\xa0\xb5k'), chr(7467 - 7367) + chr(0b1100101) + chr(99) + chr(10660 - 10549) + '\144' + chr(101))(chr(9578 - 9461) + '\164' + chr(9314 - 9212) + chr(590 - 545) + chr(0b110 + 0o62))) or not xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7P\xa2z\x0f\xa7\x86j\xfbU'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\x6f' + chr(7151 - 7051) + chr(0b1001000 + 0o35))(chr(0b1001100 + 0o51) + '\164' + '\146' + chr(828 - 783) + chr(1858 - 1802))): return None if xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdct\x8fi\x15\x9d\xa1=\xe2}\xcek'), chr(100) + chr(7245 - 7144) + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(117) + chr(0b1001100 + 0o50) + chr(0b1100110) + '\055' + chr(0b111000))) and (not xafqLlk3kkUe(RaJ10cX5BL3G.link, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfdL\x88i\x1e\xb6\xb0h\xf3D\xd1'), '\x64' + '\145' + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(0b111000)))): return ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(0b10 + 0o155) + chr(49), ord("\x08")) if xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6V\xb9i\x1e\xbb'), '\144' + '\x65' + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + chr(116) + chr(0b1010101 + 0o21) + chr(711 - 666) + chr(136 - 80)) not in xafqLlk3kkUe(ME2lOzEP2bGJ, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3Z\xa3W\r\xae\xb5a\xe5B\xc1\x01\x971\xb1\xa7.+>'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(1141 - 1030) + '\144' + '\x65')(chr(8263 - 8146) + chr(9856 - 9740) + chr(102) + chr(0b100001 + 0o14) + chr(2668 - 2612)))(b_5TrtxayUo8(xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd5v\xa1B>\xb8\x95j\xd6A\xc2\x18'), chr(0b1100100) + chr(0b111010 + 0o53) + chr(0b1100011) + '\x6f' + chr(2650 - 2550) + chr(0b1100101))('\165' + chr(0b1000101 + 0o57) + '\x66' + '\055' + '\x38')))): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc7\x08\x9fp\x19\xa1\xbe9\xf8K\xff5'), chr(0b1100100) + chr(3864 - 3763) + chr(99) + chr(6802 - 6691) + '\144' + chr(0b10 + 0o143))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b"\xc7T\xbex\x1c\xab\xb7i\xb2E\xc17\x82*\x9c\xbd':(A\xcf\xd8Sm\x110\x81z\xf5\xdb?\x15\xc9\tZ>{\xf1\x80H\xe6V\xb2{L\xa0\xbcg\xfc@\x85:\x98-\xa2\xa8#:)\r\x89\xd1N?Xa\xdc"), chr(0b1100100) + chr(0b110000 + 0o65) + '\143' + chr(0b1101111) + chr(0b11 + 0o141) + chr(0b1000010 + 0o43))(chr(0b100 + 0o161) + '\164' + chr(0b1100101 + 0o1) + chr(0b101101) + chr(56)), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd5v\xa1B>\xb8\x95j\xd6A\xc2\x18'), chr(4059 - 3959) + chr(0b1100011 + 0o2) + chr(99) + chr(0b111011 + 0o64) + chr(0b100111 + 0o75) + '\145')(chr(0b1101 + 0o150) + '\164' + '\146' + chr(45) + chr(1804 - 1748)))) return None HKXay_x3pZk5 = RaJ10cX5BL3G.HKXay_x3pZk5 (XLXqkmM_0GVx, gC4CNOEOq9Vm) = HKXay_x3pZk5.splitext() if hBm7IRUH1IJS and ajiCo7IzFNyJ(XLXqkmM_0GVx): return ehT0Px3KOsy9(chr(1259 - 1211) + '\x6f' + chr(1164 - 1116), 8) return ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31', 8)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
format_command
def format_command( command_args, # type: List[str] command_output, # type: str ): # type: (...) -> str """ Format command information for logging. """ text = 'Command arguments: {}\n'.format(command_args) if not command_output: text += 'Command output: None' elif logger.getEffectiveLevel() > logging.DEBUG: text += 'Command output: [use --verbose to show]' else: if not command_output.endswith('\n'): command_output += '\n' text += ( 'Command output:\n{}' '-----------------------------------------' ).format(command_output) return text
python
def format_command( command_args, # type: List[str] command_output, # type: str ): # type: (...) -> str """ Format command information for logging. """ text = 'Command arguments: {}\n'.format(command_args) if not command_output: text += 'Command output: None' elif logger.getEffectiveLevel() > logging.DEBUG: text += 'Command output: [use --verbose to show]' else: if not command_output.endswith('\n'): command_output += '\n' text += ( 'Command output:\n{}' '-----------------------------------------' ).format(command_output) return text
[ "def", "format_command", "(", "command_args", ",", "# type: List[str]", "command_output", ",", "# type: str", ")", ":", "# type: (...) -> str", "text", "=", "'Command arguments: {}\\n'", ".", "format", "(", "command_args", ")", "if", "not", "command_output", ":", "text", "+=", "'Command output: None'", "elif", "logger", ".", "getEffectiveLevel", "(", ")", ">", "logging", ".", "DEBUG", ":", "text", "+=", "'Command output: [use --verbose to show]'", "else", ":", "if", "not", "command_output", ".", "endswith", "(", "'\\n'", ")", ":", "command_output", "+=", "'\\n'", "text", "+=", "(", "'Command output:\\n{}'", "'-----------------------------------------'", ")", ".", "format", "(", "command_output", ")", "return", "text" ]
Format command information for logging.
[ "Format", "command", "information", "for", "logging", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L790-L812
train
Formats the command information for logging.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prt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l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + '\x36' + chr(1068 - 1016), 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(11739 - 11628) + chr(52) + '\x30', 7334 - 7326), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + '\x34' + '\x34', 37616 - 37608), ehT0Px3KOsy9('\060' + '\157' + chr(1042 - 990) + chr(48), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + chr(54) + chr(0b1100 + 0o45), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(791 - 742) + chr(382 - 333) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(5732 - 5621) + chr(50) + chr(48) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1000111 + 0o50) + '\062' + chr(49) + chr(2429 - 2377), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + chr(0b110110) + chr(2006 - 1955), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010 + 0o5) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100001 + 0o21) + chr(0b110000) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(0b110001) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8968 - 8857) + '\063' + chr(0b110100) + '\x33', 62218 - 62210), ehT0Px3KOsy9(chr(0b110000) + chr(6431 - 6320) + chr(0b10000 + 0o41) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\067' + chr(0b11100 + 0o30), 8), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(5521 - 5410) + chr(0b110101) + chr(278 - 223), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10001 + 0o42) + '\064' + chr(52), 0o10), ehT0Px3KOsy9(chr(2245 - 2197) + '\157' + '\x33' + chr(0b11101 + 0o30) + chr(0b10000 + 0o41), 22516 - 22508), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + chr(0b1000 + 0o57) + '\067', 27752 - 27744), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + '\x31' + chr(0b110000) + '\x33', 0o10), ehT0Px3KOsy9(chr(1485 - 1437) + chr(111) + chr(0b110011), 39926 - 39918), ehT0Px3KOsy9(chr(48) + chr(5851 - 5740) + chr(51) + chr(50) + chr(1712 - 1662), 17565 - 17557), ehT0Px3KOsy9(chr(1943 - 1895) + chr(0b1101111) + '\061' + '\x37' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(8549 - 8438) + chr(51) + chr(55) + '\061', 0b1000), ehT0Px3KOsy9(chr(1286 - 1238) + chr(0b1101111) + chr(0b110100) + chr(55), 39092 - 39084), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\x6f' + chr(51) + '\067' + '\066', ord("\x08")), ehT0Px3KOsy9(chr(499 - 451) + chr(5985 - 5874) + '\x35' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1100001 + 0o16) + chr(0b110011) + chr(0b101101 + 0o11) + chr(0b10101 + 0o35), 14764 - 14756), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(1401 - 1348) + chr(0b110 + 0o61), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b110101) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\157' + chr(0b101110 + 0o4) + chr(0b110010) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(1603 - 1555) + chr(111) + chr(50) + chr(527 - 477) + '\065', 0b1000), ehT0Px3KOsy9(chr(392 - 344) + chr(0b110111 + 0o70) + chr(0b110001) + chr(0b110001) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(52) + chr(0b110110), 10118 - 10110), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1 + 0o62) + chr(0b10010 + 0o44) + '\064', 15050 - 15042), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(6758 - 6647) + '\062' + '\x36' + chr(0b110111), 36079 - 36071), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1001 + 0o51) + chr(0b110011) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(111) + chr(0b101100 + 0o6) + chr(2217 - 2164) + '\065', 46747 - 46739), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001001 + 0o46) + '\067' + chr(0b10 + 0o60), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + '\x35' + chr(0b11001 + 0o27), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')('\x75' + chr(3065 - 2949) + '\x66' + chr(1151 - 1106) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def IjKCJoGp52U5(kpkjUvTolXD1, RlSkLsy103P3): Ah1rInvg48Hb = xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7O\tM\xd0$\xe6\xac\x12N\xe7>\x8eoR[\x97\xd3\xdf8~\xd8'), chr(1994 - 1894) + chr(101) + chr(3551 - 3452) + chr(111) + chr(4231 - 4131) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)).V4roHaS3Ppej(kpkjUvTolXD1) if not RlSkLsy103P3: Ah1rInvg48Hb += xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7O\tM\xd0$\xe6\xac\x1cI\xf4;\x96~\x06\x0f\xaa\x86\x91&'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(8452 - 8352) + chr(0b1100101))(chr(117) + '\x74' + chr(0b0 + 0o146) + chr(1188 - 1143) + chr(2027 - 1971)) elif xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3E\x10e\xd7,\xe7\xef\x07U\xf6.\xafoJJ\x88'), '\x64' + chr(101) + chr(0b111111 + 0o44) + '\157' + '\144' + '\145')(chr(117) + chr(7265 - 7149) + chr(102) + chr(295 - 250) + chr(0b101000 + 0o20)))() > xafqLlk3kkUe(UeotCCWOPSQS, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0e&u\xf6'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(8149 - 8049) + chr(101))('\165' + chr(116) + chr(102) + chr(45) + chr(56))): Ah1rInvg48Hb += xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7O\tM\xd0$\xe6\xac\x1cI\xf4;\x96~\x06\x0f\xbf\x9c\x8c&#\xffU\x8fBc\x9cD\x81\xca\xc8\xe7\xfalU\x9c\xd8\xef\xf0'), '\144' + '\x65' + chr(0b1101 + 0o126) + chr(111) + '\144' + chr(101))(chr(9821 - 9704) + '\164' + chr(1406 - 1304) + chr(0b1001 + 0o44) + chr(0b101111 + 0o11)) else: if not xafqLlk3kkUe(RlSkLsy103P3, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd1N\x00S\xc6#\xf6\xe4'), chr(8247 - 8147) + '\x65' + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(45) + chr(0b1111 + 0o51)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe'), chr(1329 - 1229) + chr(101) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(117) + chr(116) + chr(102) + chr(281 - 236) + chr(0b111000))): RlSkLsy103P3 += xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe'), '\144' + chr(0b111010 + 0o53) + '\143' + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1001000 + 0o54) + '\146' + chr(45) + chr(56)) Ah1rInvg48Hb += xafqLlk3kkUe(SXOLrMavuUCe(b"\xf7O\tM\xd0$\xe6\xac\x1cI\xf4;\x96~\x06%\x9f\x94\xd2n.\xffU\xd4\n<\xd3\x06\xdf\x82\xc5\xbe\xb8a\x0b\xd9\x9a\xb5\x80\x17\x99\rI\r\x9cg\xaf\xa1^\x11\xadf\xce'\x11\x02\xc9\xc4\xd2"), chr(4225 - 4125) + chr(0b1100101) + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b110000 + 0o105) + chr(0b111110 + 0o66) + chr(2069 - 1967) + '\x2d' + chr(56)).V4roHaS3Ppej(RlSkLsy103P3) return Ah1rInvg48Hb
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
get_legacy_build_wheel_path
def get_legacy_build_wheel_path( names, # type: List[str] temp_dir, # type: str req, # type: InstallRequirement command_args, # type: List[str] command_output, # type: str ): # type: (...) -> Optional[str] """ Return the path to the wheel in the temporary build directory. """ # Sort for determinism. names = sorted(names) if not names: msg = ( 'Legacy build of wheel for {!r} created no files.\n' ).format(req.name) msg += format_command(command_args, command_output) logger.warning(msg) return None if len(names) > 1: msg = ( 'Legacy build of wheel for {!r} created more than one file.\n' 'Filenames (choosing first): {}\n' ).format(req.name, names) msg += format_command(command_args, command_output) logger.warning(msg) return os.path.join(temp_dir, names[0])
python
def get_legacy_build_wheel_path( names, # type: List[str] temp_dir, # type: str req, # type: InstallRequirement command_args, # type: List[str] command_output, # type: str ): # type: (...) -> Optional[str] """ Return the path to the wheel in the temporary build directory. """ # Sort for determinism. names = sorted(names) if not names: msg = ( 'Legacy build of wheel for {!r} created no files.\n' ).format(req.name) msg += format_command(command_args, command_output) logger.warning(msg) return None if len(names) > 1: msg = ( 'Legacy build of wheel for {!r} created more than one file.\n' 'Filenames (choosing first): {}\n' ).format(req.name, names) msg += format_command(command_args, command_output) logger.warning(msg) return os.path.join(temp_dir, names[0])
[ "def", "get_legacy_build_wheel_path", "(", "names", ",", "# type: List[str]", "temp_dir", ",", "# type: str", "req", ",", "# type: InstallRequirement", "command_args", ",", "# type: List[str]", "command_output", ",", "# type: str", ")", ":", "# type: (...) -> Optional[str]", "# Sort for determinism.", "names", "=", "sorted", "(", "names", ")", "if", "not", "names", ":", "msg", "=", "(", "'Legacy build of wheel for {!r} created no files.\\n'", ")", ".", "format", "(", "req", ".", "name", ")", "msg", "+=", "format_command", "(", "command_args", ",", "command_output", ")", "logger", ".", "warning", "(", "msg", ")", "return", "None", "if", "len", "(", "names", ")", ">", "1", ":", "msg", "=", "(", "'Legacy build of wheel for {!r} created more than one file.\\n'", "'Filenames (choosing first): {}\\n'", ")", ".", "format", "(", "req", ".", "name", ",", "names", ")", "msg", "+=", "format_command", "(", "command_args", ",", "command_output", ")", "logger", ".", "warning", "(", "msg", ")", "return", "os", ".", "path", ".", "join", "(", "temp_dir", ",", "names", "[", "0", "]", ")" ]
Return the path to the wheel in the temporary build directory.
[ "Return", "the", "path", "to", "the", "wheel", "in", "the", "temporary", "build", "directory", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L815-L844
train
Return the path to the wheel in the temporary build directory.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,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ZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(10986 - 10875) + chr(553 - 499) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(7184 - 7073) + chr(2423 - 2368) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5232 - 5121) + chr(50) + '\x35' + chr(54), 12740 - 12732), ehT0Px3KOsy9(chr(1821 - 1773) + chr(6746 - 6635) + '\062' + chr(53) + '\065', 0b1000), ehT0Px3KOsy9(chr(757 - 709) + '\x6f' + chr(0b110001) + chr(2118 - 2065) + '\065', 0o10), ehT0Px3KOsy9(chr(429 - 381) + '\x6f' + chr(51) + '\066' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(1246 - 1198) + chr(111) + chr(0b110010) + chr(0b1101 + 0o46) + chr(0b110001), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\064' + chr(1886 - 1837), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b1101 + 0o45) + chr(53) + chr(0b110010), 24135 - 24127), ehT0Px3KOsy9(chr(0b110000) + chr(0b110000 + 0o77) + chr(0b11010 + 0o33) + '\x37', 49476 - 49468), ehT0Px3KOsy9('\060' + chr(0b101110 + 0o101) + '\063' + chr(0b11111 + 0o26) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + '\066' + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x34' + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b11100 + 0o32) + chr(2135 - 2081), 8), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b101011 + 0o104) + chr(50) + chr(0b10011 + 0o44) + '\061', 5190 - 5182), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110001) + chr(52), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2256 - 2203) + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110110) + '\x32', 0o10), ehT0Px3KOsy9(chr(495 - 447) + '\157' + chr(0b110010) + '\061' + chr(0b10001 + 0o37), 44342 - 44334), ehT0Px3KOsy9('\060' + chr(6393 - 6282) + chr(1642 - 1592) + chr(52) + chr(54), 25584 - 25576), ehT0Px3KOsy9('\060' + chr(0b10101 + 0o132) + chr(50) + chr(1059 - 1008) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(6360 - 6249) + chr(0b110110) + chr(2008 - 1955), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + '\064' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(2149 - 2101) + '\157' + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101011 + 0o4) + '\066' + chr(48), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110000 + 0o1) + chr(0b110011) + chr(55), 760 - 752), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + '\067' + '\x36', 53912 - 53904), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10000 + 0o47) + '\060', 32209 - 32201), ehT0Px3KOsy9(chr(0b110000) + chr(2003 - 1892) + chr(1053 - 998), ord("\x08")), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(0b110001) + '\x31' + chr(386 - 338), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b101101 + 0o102) + chr(51) + '\x36' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100101 + 0o15) + chr(2039 - 1984) + '\x32', 56358 - 56350), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\157' + '\062' + '\067' + chr(0b10111 + 0o32), 8), ehT0Px3KOsy9('\x30' + chr(1497 - 1386) + chr(0b10 + 0o60) + chr(0b110000) + '\066', 22469 - 22461), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b110111) + '\061', 8), ehT0Px3KOsy9(chr(635 - 587) + chr(0b1100010 + 0o15) + chr(0b101101 + 0o4) + '\060' + chr(0b1110 + 0o47), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(529 - 478) + chr(0b110000) + chr(55), 30469 - 30461), ehT0Px3KOsy9(chr(261 - 213) + chr(1480 - 1369) + chr(0b110001) + '\064' + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(3054 - 2943) + chr(0b110111) + chr(0b11100 + 0o33), 57016 - 57008), ehT0Px3KOsy9(chr(0b110000) + chr(9519 - 9408) + chr(0b1111 + 0o42) + chr(471 - 422) + chr(0b101100 + 0o4), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(2263 - 2215) + chr(0b111000 + 0o67) + chr(0b100110 + 0o17) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x18'), chr(100) + '\145' + chr(0b1010110 + 0o15) + chr(0b1101111) + '\144' + chr(9272 - 9171))(chr(524 - 407) + chr(116) + '\146' + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def HDjENY6700uf(OcnR1hZ7pGdr, D5zvfopPAzlX, RaJ10cX5BL3G, kpkjUvTolXD1, RlSkLsy103P3): OcnR1hZ7pGdr = vUlqIvNSaRMa(OcnR1hZ7pGdr) if not OcnR1hZ7pGdr: jtbovtaIYjRB = xafqLlk3kkUe(SXOLrMavuUCe(b'zY\xc9\xcc\x0e\x89\xb9C\xdfF\x84\x16\x04Y\xdfl]Z\xed\xc3\xf6\x15\xc3jB\x7f\x05\x19u5\xd1\xd9\xcb\xe3\xd81\xa2\x04\x1f&Y\x1c\xc8\xc4\x01\x95\xea\x0f\xa0'), '\144' + chr(2546 - 2445) + chr(0b1100011) + chr(0b1101111) + '\144' + '\x65')(chr(117) + chr(0b11010 + 0o132) + chr(6911 - 6809) + chr(0b1101 + 0o40) + chr(0b111000)).V4roHaS3Ppej(RaJ10cX5BL3G.AIvJRzLdDfgF) jtbovtaIYjRB += IjKCJoGp52U5(kpkjUvTolXD1, RlSkLsy103P3) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'A]\xdc\xc3\x04\x9e\xfe'), chr(100) + '\145' + chr(0b1100011) + '\157' + chr(0b100111 + 0o75) + chr(9117 - 9016))(chr(0b1010000 + 0o45) + '\164' + chr(0b11010 + 0o114) + chr(0b101101) + chr(0b111000)))(jtbovtaIYjRB) return None if c2A0yzQpDQB3(OcnR1hZ7pGdr) > ehT0Px3KOsy9('\060' + chr(111) + '\x31', 0b1000): jtbovtaIYjRB = xafqLlk3kkUe(SXOLrMavuUCe(b"zY\xc9\xcc\x0e\x89\xb9C\xdfF\x84\x16\x04Y\xdfl]Z\xed\xc3\xf6\x15\xc3jB\x7f\x05\x19u5\xd1\xd9\xcb\xe3\xd81\xa2\x04\x1f%YN\xcb\x8d\x19\x98\xf8O\x8a@\x86\x17\x04P\xd0 O\x1c\x82\xe0\xf3Y\xc0kQ2\x1bK'`\x92\xd2\xd6\xe9\xca,\xa9\x07\x1f._N\xdd\xd9D\xca\xb9Z\xd7%"), chr(100) + chr(0b1100101) + chr(5767 - 5668) + chr(111) + chr(0b100101 + 0o77) + '\145')(chr(0b1101000 + 0o15) + '\164' + chr(3906 - 3804) + chr(986 - 941) + chr(2544 - 2488)).V4roHaS3Ppej(RaJ10cX5BL3G.AIvJRzLdDfgF, OcnR1hZ7pGdr) jtbovtaIYjRB += IjKCJoGp52U5(kpkjUvTolXD1, RlSkLsy103P3) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'A]\xdc\xc3\x04\x9e\xfe'), chr(3056 - 2956) + chr(0b1100101) + chr(0b100010 + 0o101) + '\157' + chr(0b1011011 + 0o11) + '\145')(chr(0b101011 + 0o112) + '\164' + chr(9272 - 9170) + chr(315 - 270) + chr(56)))(jtbovtaIYjRB) return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'iS\xf9\xf5\x17\x84\xcfo\xc4^\xa04'), chr(237 - 137) + '\x65' + '\x63' + '\157' + chr(100) + '\x65')(chr(0b1110101) + chr(0b110010 + 0o102) + '\x66' + chr(0b101101) + '\x38'))(D5zvfopPAzlX, OcnR1hZ7pGdr[ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\x6f' + '\x30', ord("\x08"))])
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
Wheel.support_index_min
def support_index_min(self, tags=None): # type: (Optional[List[Pep425Tag]]) -> Optional[int] """ Return the lowest index that one of the wheel's file_tag combinations achieves in the supported_tags list e.g. if there are 8 supported tags, and one of the file tags is first in the list, then return 0. Returns None is the wheel is not supported. """ if tags is None: # for mock tags = pep425tags.get_supported() indexes = [tags.index(c) for c in self.file_tags if c in tags] return min(indexes) if indexes else None
python
def support_index_min(self, tags=None): # type: (Optional[List[Pep425Tag]]) -> Optional[int] """ Return the lowest index that one of the wheel's file_tag combinations achieves in the supported_tags list e.g. if there are 8 supported tags, and one of the file tags is first in the list, then return 0. Returns None is the wheel is not supported. """ if tags is None: # for mock tags = pep425tags.get_supported() indexes = [tags.index(c) for c in self.file_tags if c in tags] return min(indexes) if indexes else None
[ "def", "support_index_min", "(", "self", ",", "tags", "=", "None", ")", ":", "# type: (Optional[List[Pep425Tag]]) -> Optional[int]", "if", "tags", "is", "None", ":", "# for mock", "tags", "=", "pep425tags", ".", "get_supported", "(", ")", "indexes", "=", "[", "tags", ".", "index", "(", "c", ")", "for", "c", "in", "self", ".", "file_tags", "if", "c", "in", "tags", "]", "return", "min", "(", "indexes", ")", "if", "indexes", "else", "None" ]
Return the lowest index that one of the wheel's file_tag combinations achieves in the supported_tags list e.g. if there are 8 supported tags, and one of the file tags is first in the list, then return 0. Returns None is the wheel is not supported.
[ "Return", "the", "lowest", "index", "that", "one", "of", "the", "wheel", "s", "file_tag", "combinations", "achieves", "in", "the", "supported_tags", "list", "e", ".", "g", ".", "if", "there", "are", "8", "supported", "tags", "and", "one", "of", "the", "file", "tags", "is", "first", "in", "the", "list", "then", "return", "0", ".", "Returns", "None", "is", "the", "wheel", "is", "not", "supported", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L706-L717
train
Returns the lowest index that one of the wheel s file_tag combinations achieves in the supported_tags list e. g. 0 if the wheel is not supported.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvg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kUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(52) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(2286 - 2238) + chr(10837 - 10726) + chr(51) + chr(48) + chr(0b110001), 63488 - 63480), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(111) + chr(0b110 + 0o54) + chr(55) + chr(49), 0o10), ehT0Px3KOsy9(chr(1202 - 1154) + chr(111) + '\061' + '\x37' + chr(1865 - 1814), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + '\060' + chr(0b1011 + 0o47), 38966 - 38958), ehT0Px3KOsy9(chr(639 - 591) + '\157' + chr(0b110100) + chr(52), 0o10), ehT0Px3KOsy9(chr(1386 - 1338) + chr(111) + chr(985 - 936) + '\064' + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(11923 - 11812) + '\x31' + chr(0b100 + 0o54) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11010 + 0o27) + chr(0b110110) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b100101 + 0o112) + '\x33' + chr(1244 - 1192) + chr(919 - 869), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000 + 0o1), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1011001 + 0o26) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + chr(5789 - 5678) + chr(0b100001 + 0o22) + chr(1359 - 1309) + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + chr(9613 - 9502) + '\062' + chr(1216 - 1168) + '\061', 20983 - 20975), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\x31' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5312 - 5201) + '\062' + chr(693 - 639) + chr(2730 - 2677), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1110 + 0o44) + '\x32' + chr(0b1010 + 0o51), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101100 + 0o3) + chr(0b110001) + '\x34' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + '\x34' + chr(1663 - 1615), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b101010 + 0o105) + chr(0b110010) + chr(0b110000) + chr(1363 - 1308), 0o10), ehT0Px3KOsy9(chr(420 - 372) + chr(0b1011101 + 0o22) + '\x33' + chr(0b110110) + chr(0b1001 + 0o52), 35058 - 35050), ehT0Px3KOsy9(chr(2099 - 2051) + '\157' + chr(0b110 + 0o54) + chr(0b11111 + 0o25) + '\060', 31818 - 31810), ehT0Px3KOsy9(chr(0b101000 + 0o10) + '\157' + chr(0b110010) + '\x37' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(79 - 31) + chr(111) + '\061' + '\061' + chr(0b101000 + 0o10), 16883 - 16875), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + chr(0b110011 + 0o0) + chr(50) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(583 - 535) + '\x6f' + '\062' + chr(204 - 150) + '\067', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1011001 + 0o26) + chr(2045 - 1995) + '\x32', 36706 - 36698), ehT0Px3KOsy9(chr(48) + '\157' + '\x37' + chr(0b100110 + 0o20), 0o10), ehT0Px3KOsy9('\x30' + chr(10922 - 10811) + chr(1472 - 1421) + chr(0b10100 + 0o35) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010010 + 0o35) + '\060', 0b1000), ehT0Px3KOsy9(chr(1799 - 1751) + chr(111) + chr(431 - 380) + '\x37', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + '\x33' + '\064', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b100100 + 0o15) + '\064' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(794 - 746) + chr(111) + chr(0b110001) + '\065' + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b101001 + 0o106) + '\062' + chr(0b11010 + 0o35) + chr(0b101010 + 0o10), ord("\x08")), ehT0Px3KOsy9(chr(1793 - 1745) + '\x6f' + chr(0b110010) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(11461 - 11350) + chr(0b1101 + 0o44) + chr(49) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(51 - 3) + chr(0b1101000 + 0o7) + chr(50) + chr(48) + chr(0b110110), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1677 - 1624) + '\x30', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb'), chr(100) + chr(101) + '\x63' + chr(111) + chr(0b1000111 + 0o35) + chr(0b110101 + 0o60))('\x75' + chr(0b1110100) + chr(4948 - 4846) + chr(1780 - 1735) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def EMbBfNHqRf2P(oVre8I6UXc3b, MRGa81KE7QCh=None): if MRGa81KE7QCh is None: MRGa81KE7QCh = er8C4CvZjYUj.get_supported() AjrnLNzw5Jx9 = [MRGa81KE7QCh.XdowRbJKZWL9(qzn1Ctg9WgNh) for qzn1Ctg9WgNh in oVre8I6UXc3b.file_tags if qzn1Ctg9WgNh in MRGa81KE7QCh] return Dx22bkKPdt5d(AjrnLNzw5Jx9) if AjrnLNzw5Jx9 else None
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
Wheel.supported
def supported(self, tags=None): # type: (Optional[List[Pep425Tag]]) -> bool """Is this wheel supported on this system?""" if tags is None: # for mock tags = pep425tags.get_supported() return bool(set(tags).intersection(self.file_tags))
python
def supported(self, tags=None): # type: (Optional[List[Pep425Tag]]) -> bool """Is this wheel supported on this system?""" if tags is None: # for mock tags = pep425tags.get_supported() return bool(set(tags).intersection(self.file_tags))
[ "def", "supported", "(", "self", ",", "tags", "=", "None", ")", ":", "# type: (Optional[List[Pep425Tag]]) -> bool", "if", "tags", "is", "None", ":", "# for mock", "tags", "=", "pep425tags", ".", "get_supported", "(", ")", "return", "bool", "(", "set", "(", "tags", ")", ".", "intersection", "(", "self", ".", "file_tags", ")", ")" ]
Is this wheel supported on this system?
[ "Is", "this", "wheel", "supported", "on", "this", "system?" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L719-L724
train
Is this wheel supported on this system?
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKt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Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(5587 - 5476) + chr(0b11110 + 0o25) + chr(1062 - 1011), ord("\x08")), ehT0Px3KOsy9(chr(1070 - 1022) + chr(111) + chr(2942 - 2887) + chr(1324 - 1276), 0b1000), ehT0Px3KOsy9(chr(318 - 270) + chr(0b100011 + 0o114) + chr(0b101101 + 0o5) + '\x37' + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(2747 - 2636) + chr(0b10 + 0o57) + chr(0b11110 + 0o22) + chr(0b100 + 0o63), 54338 - 54330), ehT0Px3KOsy9('\060' + chr(0b111000 + 0o67) + chr(0b101000 + 0o11) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1011 - 962) + chr(54) + '\066', 9308 - 9300), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110110) + chr(0b1010 + 0o50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(11168 - 11057) + '\062' + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(54) + chr(0b110011), 40908 - 40900), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b1101111) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001 + 0o1) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + chr(55) + chr(0b110011), 35105 - 35097), ehT0Px3KOsy9('\060' + chr(111) + chr(166 - 117) + '\x36' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1000010 + 0o55) + chr(2331 - 2281) + chr(0b101001 + 0o12) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1495 - 1445) + '\062', 0b1000), ehT0Px3KOsy9(chr(474 - 426) + chr(8441 - 8330) + chr(0b101111 + 0o3) + chr(0b110111) + chr(51), 8), ehT0Px3KOsy9('\x30' + chr(6298 - 6187) + chr(1189 - 1134) + chr(1996 - 1947), 0o10), ehT0Px3KOsy9('\060' + chr(12082 - 11971) + chr(49) + chr(0b100110 + 0o21) + chr(0b110111), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(2295 - 2247) + chr(919 - 867), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b101000 + 0o107) + '\x31' + chr(48) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(1683 - 1635) + chr(10516 - 10405) + '\x31' + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(53), 1120 - 1112), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b101010 + 0o105) + '\067' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b110011) + chr(0b1001 + 0o47), 33487 - 33479), ehT0Px3KOsy9(chr(1673 - 1625) + chr(111) + chr(235 - 186) + '\x36' + '\x36', 8), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1100100 + 0o13) + '\063' + chr(0b1111 + 0o43) + chr(0b110000), 14064 - 14056), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(9000 - 8889) + '\063' + chr(894 - 841) + '\061', 35523 - 35515), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(3567 - 3456) + '\062' + chr(0b100101 + 0o13) + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(3240 - 3129) + '\x30', 58231 - 58223), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1010 + 0o50) + '\064' + '\x36', 11320 - 11312), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b0 + 0o61) + '\067' + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\067' + chr(55), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(53) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1010000 + 0o37) + chr(50) + '\063' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1088 - 1035) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(12290 - 12179) + chr(0b110001) + chr(0b100011 + 0o24) + chr(0b101100 + 0o4), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x36' + chr(1303 - 1254), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10164 - 10053) + '\x31' + '\060' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(49) + chr(0b11011 + 0o27), 62602 - 62594)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + '\065' + chr(48), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'5'), chr(100) + '\x65' + chr(8271 - 8172) + chr(111) + chr(100) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def mCt2bJFgNi7X(oVre8I6UXc3b, MRGa81KE7QCh=None): if MRGa81KE7QCh is None: MRGa81KE7QCh = er8C4CvZjYUj.get_supported() return WbBjf8Y7v9VN(xafqLlk3kkUe(MVEN8G6CxlvR(MRGa81KE7QCh), xafqLlk3kkUe(SXOLrMavuUCe(b'rV\xc8"x\x05\xd7u\x07o{\xd5'), '\x64' + chr(0b1100101) + chr(4931 - 4832) + chr(0b1001001 + 0o46) + chr(100) + chr(0b1100101))(chr(1708 - 1591) + chr(0b1110100) + '\x66' + '\055' + chr(0b111000)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'}Q\xd0"U\x02\xd3q\x00'), chr(100) + chr(0b11101 + 0o110) + '\143' + chr(0b1110 + 0o141) + '\144' + chr(5474 - 5373))(chr(2437 - 2320) + chr(0b1000101 + 0o57) + chr(0b1100110) + chr(0b101101) + chr(0b100101 + 0o23)))))
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
WheelBuilder._build_one
def _build_one(self, req, output_dir, python_tag=None): """Build one wheel. :return: The filename of the built wheel, or None if the build failed. """ # Install build deps into temporary directory (PEP 518) with req.build_env: return self._build_one_inside_env(req, output_dir, python_tag=python_tag)
python
def _build_one(self, req, output_dir, python_tag=None): """Build one wheel. :return: The filename of the built wheel, or None if the build failed. """ # Install build deps into temporary directory (PEP 518) with req.build_env: return self._build_one_inside_env(req, output_dir, python_tag=python_tag)
[ "def", "_build_one", "(", "self", ",", "req", ",", "output_dir", ",", "python_tag", "=", "None", ")", ":", "# Install build deps into temporary directory (PEP 518)", "with", "req", ".", "build_env", ":", "return", "self", ".", "_build_one_inside_env", "(", "req", ",", "output_dir", ",", "python_tag", "=", "python_tag", ")" ]
Build one wheel. :return: The filename of the built wheel, or None if the build failed.
[ "Build", "one", "wheel", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L870-L878
train
Build one wheel.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m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NS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(3819 - 3708) + chr(49) + chr(52) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + '\060' + chr(52), 0b1000), ehT0Px3KOsy9(chr(1673 - 1625) + chr(0b10101 + 0o132) + chr(49) + chr(0b110101) + chr(0b1100 + 0o47), 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + chr(0b101100 + 0o7) + '\x31' + chr(2603 - 2548), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1011111 + 0o20) + chr(0b1100 + 0o45) + chr(0b1101 + 0o47) + chr(0b110101), 8), ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + chr(49) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b100000 + 0o117) + '\x31' + '\064' + '\x31', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b11001 + 0o126) + chr(0b1101 + 0o44) + '\x37' + chr(52), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100111 + 0o12) + '\063' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001010 + 0o45) + chr(0b1100 + 0o47) + chr(50) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110010 + 0o4) + '\x35', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1447 - 1393), 64893 - 64885), ehT0Px3KOsy9('\060' + chr(111) + chr(1007 - 957) + '\064' + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(6717 - 6606) + chr(0b110011) + chr(0b110001 + 0o1) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(1676 - 1628) + '\157' + chr(0b10011 + 0o36) + '\065' + chr(2209 - 2158), 8), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b101010 + 0o105) + '\x31' + '\064' + chr(0b11010 + 0o27), 8), ehT0Px3KOsy9(chr(1979 - 1931) + chr(0b1010010 + 0o35) + chr(0b110001) + chr(0b110100) + chr(0b101001 + 0o13), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x37' + chr(0b110011), 46976 - 46968), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b100 + 0o60) + chr(51), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(1095 - 1047) + chr(0b101001 + 0o12), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(0b100101 + 0o15) + chr(0b110101), 10248 - 10240), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(3837 - 3726) + chr(1329 - 1280) + chr(664 - 611) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x36' + chr(0b10000 + 0o43), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + '\063' + chr(928 - 878), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(0b110011) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + chr(0b110010) + '\x36', 0b1000), ehT0Px3KOsy9('\060' + chr(4510 - 4399) + chr(0b110010) + '\x37' + '\066', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10010 + 0o135) + '\062' + '\067' + chr(51), 0b1000), ehT0Px3KOsy9(chr(1527 - 1479) + '\x6f' + chr(51) + '\x31' + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b0 + 0o157) + chr(51) + chr(0b110000) + '\x37', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(736 - 685) + chr(0b110010) + chr(48), 8), ehT0Px3KOsy9(chr(1890 - 1842) + chr(0b1101111) + chr(0b110011) + '\x33' + '\065', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110100) + '\065', 42213 - 42205), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(7854 - 7743) + '\062' + '\x31' + chr(0b10110 + 0o34), 747 - 739), ehT0Px3KOsy9(chr(48) + chr(3964 - 3853) + chr(0b101011 + 0o10) + chr(50) + chr(55), 8), ehT0Px3KOsy9('\x30' + chr(0b10001 + 0o136) + chr(49) + chr(0b101000 + 0o10) + chr(0b100011 + 0o16), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(4046 - 3935) + chr(50) + chr(50) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\x32' + chr(2540 - 2489) + chr(0b1110 + 0o51), 0o10), ehT0Px3KOsy9(chr(437 - 389) + '\157' + chr(710 - 660) + '\060', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x35' + chr(0b101001 + 0o7), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'K'), chr(3259 - 3159) + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100011 + 0o3) + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def ZCuz9Gcmr5Ew(oVre8I6UXc3b, RaJ10cX5BL3G, nd0OX_BS6_o4, yCUq3daCu_PN=None): with xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\x071\x02\xa3\x01\x92\x04\x12('), '\x64' + chr(0b1001 + 0o134) + chr(8524 - 8425) + chr(111) + chr(0b100110 + 0o76) + chr(4410 - 4309))(chr(0b111100 + 0o71) + chr(0b1110100) + '\146' + '\x2d' + chr(0b110 + 0o62))): return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b':&\x1e\xa6\t\xa9>\x130\xb2*o\xc9\xa3\x02v\x04;^\x8d\xb5'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b101001 + 0o74))(chr(9198 - 9081) + chr(1928 - 1812) + '\x66' + chr(0b100010 + 0o13) + chr(0b11001 + 0o37)))(RaJ10cX5BL3G, nd0OX_BS6_o4, python_tag=yCUq3daCu_PN)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
WheelBuilder._build_one_pep517
def _build_one_pep517(self, req, tempd, python_tag=None): """Build one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert req.metadata_directory is not None try: req.spin_message = 'Building wheel for %s (PEP 517)' % (req.name,) logger.debug('Destination directory: %s', tempd) wheel_name = req.pep517_backend.build_wheel( tempd, metadata_directory=req.metadata_directory ) if python_tag: # General PEP 517 backends don't necessarily support # a "--python-tag" option, so we rename the wheel # file directly. new_name = replace_python_tag(wheel_name, python_tag) os.rename( os.path.join(tempd, wheel_name), os.path.join(tempd, new_name) ) # Reassign to simplify the return at the end of function wheel_name = new_name except Exception: logger.error('Failed building wheel for %s', req.name) return None return os.path.join(tempd, wheel_name)
python
def _build_one_pep517(self, req, tempd, python_tag=None): """Build one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert req.metadata_directory is not None try: req.spin_message = 'Building wheel for %s (PEP 517)' % (req.name,) logger.debug('Destination directory: %s', tempd) wheel_name = req.pep517_backend.build_wheel( tempd, metadata_directory=req.metadata_directory ) if python_tag: # General PEP 517 backends don't necessarily support # a "--python-tag" option, so we rename the wheel # file directly. new_name = replace_python_tag(wheel_name, python_tag) os.rename( os.path.join(tempd, wheel_name), os.path.join(tempd, new_name) ) # Reassign to simplify the return at the end of function wheel_name = new_name except Exception: logger.error('Failed building wheel for %s', req.name) return None return os.path.join(tempd, wheel_name)
[ "def", "_build_one_pep517", "(", "self", ",", "req", ",", "tempd", ",", "python_tag", "=", "None", ")", ":", "assert", "req", ".", "metadata_directory", "is", "not", "None", "try", ":", "req", ".", "spin_message", "=", "'Building wheel for %s (PEP 517)'", "%", "(", "req", ".", "name", ",", ")", "logger", ".", "debug", "(", "'Destination directory: %s'", ",", "tempd", ")", "wheel_name", "=", "req", ".", "pep517_backend", ".", "build_wheel", "(", "tempd", ",", "metadata_directory", "=", "req", ".", "metadata_directory", ")", "if", "python_tag", ":", "# General PEP 517 backends don't necessarily support", "# a \"--python-tag\" option, so we rename the wheel", "# file directly.", "new_name", "=", "replace_python_tag", "(", "wheel_name", ",", "python_tag", ")", "os", ".", "rename", "(", "os", ".", "path", ".", "join", "(", "tempd", ",", "wheel_name", ")", ",", "os", ".", "path", ".", "join", "(", "tempd", ",", "new_name", ")", ")", "# Reassign to simplify the return at the end of function", "wheel_name", "=", "new_name", "except", "Exception", ":", "logger", ".", "error", "(", "'Failed building wheel for %s'", ",", "req", ".", "name", ")", "return", "None", "return", "os", ".", "path", ".", "join", "(", "tempd", ",", "wheel_name", ")" ]
Build one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None.
[ "Build", "one", "InstallRequirement", "using", "the", "PEP", "517", "build", "process", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L911-L938
train
Build one InstallRequirement using the PEP 517 build process.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2H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,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1011000 + 0o27) + '\061' + chr(54) + chr(957 - 908), 5416 - 5408), ehT0Px3KOsy9(chr(348 - 300) + chr(0b0 + 0o157) + chr(0b11100 + 0o25), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(50), 44237 - 44229), ehT0Px3KOsy9('\x30' + '\157' + '\063' + '\067' + '\x32', 53932 - 53924), ehT0Px3KOsy9(chr(48) + chr(0b10011 + 0o134) + chr(0b110011) + chr(0b1100 + 0o52) + '\064', 6600 - 6592), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000011 + 0o54) + chr(0b1011 + 0o46) + chr(50) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111001 + 0o66) + '\061' + chr(49) + chr(1949 - 1899), ord("\x08")), ehT0Px3KOsy9(chr(664 - 616) + '\157' + '\061' + chr(54) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(1256 - 1208) + '\157' + chr(0b110010) + '\062' + '\060', 0b1000), ehT0Px3KOsy9(chr(228 - 180) + chr(7533 - 7422) + chr(0b101101 + 0o4) + chr(0b10111 + 0o35) + chr(2367 - 2314), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(1350 - 1301) + '\061' + '\x31', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(50) + chr(50), 31442 - 31434), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(0b110101) + chr(52), 0o10), ehT0Px3KOsy9('\x30' + chr(12268 - 12157) + '\x32' + chr(0b110001) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10101 + 0o35) + chr(49), 0b1000), ehT0Px3KOsy9(chr(2249 - 2201) + '\x6f' + '\x36' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(210 - 162) + chr(9024 - 8913) + chr(0b110010) + chr(0b110110) + chr(0b10 + 0o64), 37673 - 37665), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\064' + '\063', 0o10), ehT0Px3KOsy9(chr(212 - 164) + chr(111) + chr(0b110010) + '\x31' + chr(0b1000 + 0o52), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(50), 0b1000), ehT0Px3KOsy9(chr(2150 - 2102) + '\157' + chr(50) + chr(1719 - 1670) + chr(55), 1368 - 1360), ehT0Px3KOsy9('\060' + chr(0b1000 + 0o147) + '\x32' + chr(48) + chr(0b10001 + 0o37), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + '\x37' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b1010010 + 0o35) + '\067' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b101010 + 0o105) + chr(0b110001) + chr(2123 - 2073) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1 + 0o156) + '\063' + '\067' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\x6f' + chr(0b110001) + '\x31' + chr(0b10 + 0o57), 8), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + chr(49) + chr(0b101010 + 0o10) + chr(0b10110 + 0o36), ord("\x08")), ehT0Px3KOsy9(chr(1665 - 1617) + chr(1736 - 1625) + chr(0b111 + 0o54) + chr(49) + chr(2241 - 2193), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(965 - 912) + chr(2570 - 2515), 0b1000), ehT0Px3KOsy9('\060' + chr(4595 - 4484) + chr(1888 - 1838) + chr(0b10110 + 0o35) + chr(50), 31383 - 31375), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(0b101101 + 0o11) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(458 - 410) + '\x6f' + chr(0b100010 + 0o17) + '\063' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(0b110100) + chr(0b10000 + 0o46), 34913 - 34905), ehT0Px3KOsy9(chr(1472 - 1424) + chr(0b1101111) + chr(0b110010) + chr(0b110110) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\066' + chr(51), 18916 - 18908), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + chr(0b110000) + '\063', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(48) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x31', 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b10101 + 0o132) + '\065' + chr(48), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'+'), chr(100) + chr(0b101101 + 0o70) + '\143' + '\157' + '\x64' + chr(101))('\165' + chr(116) + chr(5374 - 5272) + chr(0b10 + 0o53) + chr(0b101 + 0o63)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def NEMFuL45VzUF(oVre8I6UXc3b, RaJ10cX5BL3G, pRcCkRrw_DUd, yCUq3daCu_PN=None): assert xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'h\x14u\xa3\x9e\x95&++\xf4\x0c;\xf7\x0f\xf8~F\xcf'), chr(0b1100100) + '\145' + '\143' + chr(8003 - 7892) + '\x64' + chr(0b110000 + 0o65))('\165' + chr(116) + '\146' + chr(213 - 168) + '\x38')) is not None try: RaJ10cX5BL3G.L4r3h4cei47I = xafqLlk3kkUe(SXOLrMavuUCe(b'G\x04h\xae\x9e\x9d<-T\xe7\r,\xf7\x00\xacw[\xc4\x03\xafy\xaf\xa8({\x05\xdf|e\xff\x06'), '\144' + '\145' + chr(4415 - 4316) + chr(7372 - 7261) + chr(0b11011 + 0o111) + '\x65')('\x75' + chr(0b1011 + 0o151) + chr(0b1010110 + 0o20) + chr(45) + chr(979 - 923)) % (RaJ10cX5BL3G.AIvJRzLdDfgF,) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'a\x14c\xb7\x9d'), '\x64' + chr(0b1100101) + chr(8785 - 8686) + '\157' + chr(100) + chr(6541 - 6440))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'A\x14r\xb6\x93\x9a3>\x1d\xff\x0bi\xf6\x05\xfetW\xc2L\xf8s\xb5\xa0]M'), chr(2780 - 2680) + chr(0b1000000 + 0o45) + chr(99) + chr(8078 - 7967) + '\x64' + '\x65')(chr(117) + chr(116) + chr(9777 - 9675) + '\055' + '\070'), pRcCkRrw_DUd) roTCa9srSNAh = RaJ10cX5BL3G.pep517_backend.build_wheel(pRcCkRrw_DUd, metadata_directory=RaJ10cX5BL3G.metadata_directory) if yCUq3daCu_PN: YcouzI09aKpc = OTXpmKDY5uzz(roTCa9srSNAh, yCUq3daCu_PN) xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'w\x14o\xa3\x97\x91'), chr(5267 - 5167) + chr(611 - 510) + '\x63' + chr(0b100110 + 0o111) + chr(100) + chr(0b1100101))(chr(0b101001 + 0o114) + chr(0b101010 + 0o112) + '\x66' + chr(45) + chr(0b111000)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'Z\x1eV\x9a\x80\x80\x04\x04\x1a\xe1-\x0f'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(101))('\165' + '\164' + '\x66' + chr(0b101101) + '\x38'))(pRcCkRrw_DUd, roTCa9srSNAh), xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'Z\x1eV\x9a\x80\x80\x04\x04\x1a\xe1-\x0f'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(9127 - 9016) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(0b10100 + 0o31) + chr(0b100000 + 0o30)))(pRcCkRrw_DUd, YcouzI09aKpc)) roTCa9srSNAh = YcouzI09aKpc except jLmadlzMdunT: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'@$e\x92\x9b\x80\x1d\x19E\xe7\x1dy'), chr(100) + chr(0b1100101) + chr(0b1 + 0o142) + '\x6f' + chr(0b101010 + 0o72) + chr(101))('\165' + chr(116) + '\x66' + chr(67 - 22) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'C\x10h\xae\x9f\x90r(\x01\xf9\t-\xfb\x02\xeb1C\xdeF\xeff\xaf\xe6\x17Lu\xda:'), chr(0b101 + 0o137) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + chr(0b10110 + 0o136) + '\146' + chr(45) + chr(1985 - 1929)), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'D8w\x88\xa8\x8e\x1e.0\xf6\x02\x0f'), chr(0b1100100) + '\x65' + '\143' + chr(0b1001010 + 0o45) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + chr(102) + chr(704 - 659) + '\070'))) return None return xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'Z\x1eV\x9a\x80\x80\x04\x04\x1a\xe1-\x0f'), chr(0b101100 + 0o70) + chr(0b1001101 + 0o30) + '\x63' + chr(0b100010 + 0o115) + chr(0b1100100) + chr(101))('\165' + '\164' + chr(102) + chr(0b1010 + 0o43) + '\x38'))(pRcCkRrw_DUd, roTCa9srSNAh)
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
WheelBuilder._build_one_legacy
def _build_one_legacy(self, req, tempd, python_tag=None): """Build one InstallRequirement using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. """ base_args = self._base_setup_args(req) spin_message = 'Building wheel for %s (setup.py)' % (req.name,) with open_spinner(spin_message) as spinner: logger.debug('Destination directory: %s', tempd) wheel_args = base_args + ['bdist_wheel', '-d', tempd] \ + self.build_options if python_tag is not None: wheel_args += ["--python-tag", python_tag] try: output = call_subprocess(wheel_args, cwd=req.setup_py_dir, show_stdout=False, spinner=spinner) except Exception: spinner.finish("error") logger.error('Failed building wheel for %s', req.name) return None names = os.listdir(tempd) wheel_path = get_legacy_build_wheel_path( names=names, temp_dir=tempd, req=req, command_args=wheel_args, command_output=output, ) return wheel_path
python
def _build_one_legacy(self, req, tempd, python_tag=None): """Build one InstallRequirement using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. """ base_args = self._base_setup_args(req) spin_message = 'Building wheel for %s (setup.py)' % (req.name,) with open_spinner(spin_message) as spinner: logger.debug('Destination directory: %s', tempd) wheel_args = base_args + ['bdist_wheel', '-d', tempd] \ + self.build_options if python_tag is not None: wheel_args += ["--python-tag", python_tag] try: output = call_subprocess(wheel_args, cwd=req.setup_py_dir, show_stdout=False, spinner=spinner) except Exception: spinner.finish("error") logger.error('Failed building wheel for %s', req.name) return None names = os.listdir(tempd) wheel_path = get_legacy_build_wheel_path( names=names, temp_dir=tempd, req=req, command_args=wheel_args, command_output=output, ) return wheel_path
[ "def", "_build_one_legacy", "(", "self", ",", "req", ",", "tempd", ",", "python_tag", "=", "None", ")", ":", "base_args", "=", "self", ".", "_base_setup_args", "(", "req", ")", "spin_message", "=", "'Building wheel for %s (setup.py)'", "%", "(", "req", ".", "name", ",", ")", "with", "open_spinner", "(", "spin_message", ")", "as", "spinner", ":", "logger", ".", "debug", "(", "'Destination directory: %s'", ",", "tempd", ")", "wheel_args", "=", "base_args", "+", "[", "'bdist_wheel'", ",", "'-d'", ",", "tempd", "]", "+", "self", ".", "build_options", "if", "python_tag", "is", "not", "None", ":", "wheel_args", "+=", "[", "\"--python-tag\"", ",", "python_tag", "]", "try", ":", "output", "=", "call_subprocess", "(", "wheel_args", ",", "cwd", "=", "req", ".", "setup_py_dir", ",", "show_stdout", "=", "False", ",", "spinner", "=", "spinner", ")", "except", "Exception", ":", "spinner", ".", "finish", "(", "\"error\"", ")", "logger", ".", "error", "(", "'Failed building wheel for %s'", ",", "req", ".", "name", ")", "return", "None", "names", "=", "os", ".", "listdir", "(", "tempd", ")", "wheel_path", "=", "get_legacy_build_wheel_path", "(", "names", "=", "names", ",", "temp_dir", "=", "tempd", ",", "req", "=", "req", ",", "command_args", "=", "wheel_args", ",", "command_output", "=", "output", ",", ")", "return", "wheel_path" ]
Build one InstallRequirement using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None.
[ "Build", "one", "InstallRequirement", "using", "the", "legacy", "build", "process", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L940-L971
train
Build one InstallRequirement using the legacy build process.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0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4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + chr(0b110010) + chr(0b101001 + 0o16), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(2332 - 2280) + chr(0b110001), 7807 - 7799), ehT0Px3KOsy9(chr(2269 - 2221) + chr(0b1101111) + chr(0b110001) + chr(0b101011 + 0o7) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(339 - 289) + chr(0b110100) + chr(55), 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(7632 - 7521) + chr(277 - 226) + '\065' + chr(0b110010 + 0o3), 28207 - 28199), ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + '\x32' + chr(2045 - 1995) + chr(2554 - 2499), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100000 + 0o17) + chr(0b110001) + '\x31', 4701 - 4693), ehT0Px3KOsy9('\x30' + chr(3425 - 3314) + chr(0b110001) + chr(54) + chr(459 - 405), 20936 - 20928), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(984 - 934) + chr(0b110010) + chr(1310 - 1261), ord("\x08")), ehT0Px3KOsy9(chr(138 - 90) + chr(111) + '\x32' + chr(48) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100010 + 0o15) + chr(55) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + chr(0b101001 + 0o106) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(49) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + chr(127 - 77), 50296 - 50288), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + chr(0b110010) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(2138 - 2027) + chr(0b1001 + 0o52) + chr(0b11110 + 0o27) + chr(50), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\060' + chr(53), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(0b11010 + 0o26) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(2504 - 2451) + chr(1753 - 1702), 0o10), ehT0Px3KOsy9(chr(914 - 866) + '\x6f' + '\x31' + chr(0b1110 + 0o46), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(1772 - 1718) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1101111) + chr(1435 - 1385) + '\061' + chr(804 - 753), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(1891 - 1840) + '\060' + '\063', 46508 - 46500), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1101010 + 0o5) + chr(49) + chr(54) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(1640 - 1592) + chr(9233 - 9122) + chr(1072 - 1024), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10317 - 10206) + '\061' + '\060' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(2467 - 2417) + '\x34' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\x6f' + chr(0b110011) + chr(50) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(1402 - 1291) + '\061' + chr(0b110000) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + chr(0b101101 + 0o7) + chr(0b1001 + 0o56), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(2353 - 2302) + '\x30', 0o10), ehT0Px3KOsy9(chr(1759 - 1711) + '\x6f' + '\062' + '\066', 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(2382 - 2333) + chr(51) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(622 - 574) + '\157' + chr(1637 - 1587) + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + chr(3641 - 3530) + '\061' + '\x33' + chr(0b110011 + 0o3), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(52), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b101 + 0o152) + '\x31' + chr(52) + chr(583 - 530), 0b1000), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(49) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10000 + 0o137) + chr(0b101000 + 0o11) + '\x35' + chr(48), 55776 - 55768)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b101000 + 0o15) + chr(1198 - 1150), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'9'), chr(1402 - 1302) + chr(0b1100101 + 0o0) + chr(0b110111 + 0o54) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(10963 - 10846) + '\164' + chr(0b1100101 + 0o1) + chr(0b101101) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def KrIcUYgteTTl(oVre8I6UXc3b, RaJ10cX5BL3G, pRcCkRrw_DUd, yCUq3daCu_PN=None): fqqX4D0gKD83 = oVre8I6UXc3b._base_setup_args(RaJ10cX5BL3G) L4r3h4cei47I = xafqLlk3kkUe(SXOLrMavuUCe(b'UT;\xcb\x89\xfeg\x11\xb1\xf5Qad\xe6*s\x857b\x8e\x7fR\xa3\xb0\x16t4\xd2\xf86\x1e\xf1'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1000100 + 0o40) + chr(101))('\165' + chr(116) + '\146' + '\055' + '\x38') % (RaJ10cX5BL3G.AIvJRzLdDfgF,) with UDtKVbiG7Okn(L4r3h4cei47I) as gVRzUhuuAKhD: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'sD0\xd2\x8a'), chr(0b10011 + 0o121) + chr(0b101001 + 0o74) + '\143' + chr(111) + chr(0b1100100) + chr(0b1000010 + 0o43))('\x75' + '\164' + '\146' + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'SD!\xd3\x84\xf9h\x02\xf8\xedW$e\xe3xp\x891-\xd9uH\xab\xe6\x00'), chr(3516 - 3416) + '\x65' + '\143' + chr(111) + '\x64' + '\145')(chr(117) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000)), pRcCkRrw_DUd) ZmT_rYjhD37W = fqqX4D0gKD83 + [xafqLlk3kkUe(SXOLrMavuUCe(b'uE;\xd4\x99\xc8~\x1e\xf4\xe7U'), chr(0b1001 + 0o133) + '\x65' + chr(0b1100011) + '\x6f' + '\144' + chr(0b111001 + 0o54))('\x75' + '\164' + chr(0b1001010 + 0o34) + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b':E'), chr(0b1001001 + 0o33) + chr(0b1011011 + 0o12) + '\143' + chr(5789 - 5678) + chr(100) + chr(0b1000101 + 0o40))(chr(0b101110 + 0o107) + chr(1022 - 906) + chr(811 - 709) + '\x2d' + '\x38'), pRcCkRrw_DUd] + oVre8I6UXc3b.build_options if yCUq3daCu_PN is not None: ZmT_rYjhD37W += [xafqLlk3kkUe(SXOLrMavuUCe(b':\x0c"\xde\x99\xfff\x18\xbc\xf6Xc'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(0b11011 + 0o131) + '\146' + chr(45) + '\x38'), yCUq3daCu_PN] try: e1jVqMSBZ01Y = FJxwOsfF0RkF(ZmT_rYjhD37W, cwd=RaJ10cX5BL3G.setup_py_dir, show_stdout=ehT0Px3KOsy9(chr(48) + '\157' + chr(0b1 + 0o57), 8), spinner=gVRzUhuuAKhD) except jLmadlzMdunT: xafqLlk3kkUe(gVRzUhuuAKhD, xafqLlk3kkUe(SXOLrMavuUCe(b'qH<\xce\x9e\xff'), chr(7334 - 7234) + chr(0b1100101) + chr(4651 - 4552) + chr(0b1000100 + 0o53) + chr(0b111000 + 0o54) + chr(8634 - 8533))('\165' + '\164' + '\146' + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'rS \xc8\x9f'), chr(5228 - 5128) + chr(0b1100101) + chr(2865 - 2766) + chr(111) + '\x64' + chr(0b101011 + 0o72))('\165' + chr(11633 - 11517) + chr(102) + chr(1857 - 1812) + chr(1432 - 1376))) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'Rt6\xf7\x8c\xe3F%\xa0\xf5A4'), chr(0b1100100) + chr(0b110000 + 0o65) + chr(0b1100011) + '\157' + '\x64' + chr(0b1000101 + 0o40))('\165' + chr(11983 - 11867) + '\146' + chr(1190 - 1145) + chr(297 - 241)))(xafqLlk3kkUe(SXOLrMavuUCe(b"Q@;\xcb\x88\xf3)\x14\xe4\xebU`h\xe4m5\x9d-'\xce`R\xed\xac\x01 d\xd1"), chr(9885 - 9785) + chr(0b10101 + 0o120) + '\x63' + chr(111) + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b10001 + 0o34) + chr(0b111000)), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'Vh$\xed\xbf\xedE\x12\xd5\xe4^B'), chr(0b1 + 0o143) + '\145' + chr(0b100101 + 0o76) + chr(0b110100 + 0o73) + chr(0b1011111 + 0o5) + chr(0b1100101))(chr(0b10 + 0o163) + chr(0b110000 + 0o104) + chr(1182 - 1080) + chr(0b101101) + chr(0b111000)))) return None OcnR1hZ7pGdr = oqhJDdMJfuwx.listdir(pRcCkRrw_DUd) ztVoKNqjhADa = HDjENY6700uf(names=OcnR1hZ7pGdr, temp_dir=pRcCkRrw_DUd, req=RaJ10cX5BL3G, command_args=ZmT_rYjhD37W, command_output=e1jVqMSBZ01Y) return ztVoKNqjhADa
pypa/pipenv
pipenv/patched/notpip/_internal/wheel.py
WheelBuilder.build
def build( self, requirements, # type: Iterable[InstallRequirement] session, # type: PipSession autobuilding=False # type: bool ): # type: (...) -> List[InstallRequirement] """Build wheels. :param unpack: If True, replace the sdist we built from with the newly built wheel, in preparation for installation. :return: True if all the wheels built correctly. """ buildset = [] format_control = self.finder.format_control # Whether a cache directory is available for autobuilding=True. cache_available = bool(self._wheel_dir or self.wheel_cache.cache_dir) for req in requirements: ephem_cache = should_use_ephemeral_cache( req, format_control=format_control, autobuilding=autobuilding, cache_available=cache_available, ) if ephem_cache is None: continue buildset.append((req, ephem_cache)) if not buildset: return [] # Is any wheel build not using the ephemeral cache? if any(not ephem_cache for _, ephem_cache in buildset): have_directory_for_build = self._wheel_dir or ( autobuilding and self.wheel_cache.cache_dir ) assert have_directory_for_build # TODO by @pradyunsg # Should break up this method into 2 separate methods. # Build the wheels. logger.info( 'Building wheels for collected packages: %s', ', '.join([req.name for (req, _) in buildset]), ) _cache = self.wheel_cache # shorter name with indent_log(): build_success, build_failure = [], [] for req, ephem in buildset: python_tag = None if autobuilding: python_tag = pep425tags.implementation_tag if ephem: output_dir = _cache.get_ephem_path_for_link(req.link) else: output_dir = _cache.get_path_for_link(req.link) try: ensure_dir(output_dir) except OSError as e: logger.warning("Building wheel for %s failed: %s", req.name, e) build_failure.append(req) continue else: output_dir = self._wheel_dir wheel_file = self._build_one( req, output_dir, python_tag=python_tag, ) if wheel_file: build_success.append(req) if autobuilding: # XXX: This is mildly duplicative with prepare_files, # but not close enough to pull out to a single common # method. # The code below assumes temporary source dirs - # prevent it doing bad things. if req.source_dir and not os.path.exists(os.path.join( req.source_dir, PIP_DELETE_MARKER_FILENAME)): raise AssertionError( "bad source dir - missing marker") # Delete the source we built the wheel from req.remove_temporary_source() # set the build directory again - name is known from # the work prepare_files did. req.source_dir = req.build_location( self.preparer.build_dir ) # Update the link for this. req.link = Link(path_to_url(wheel_file)) assert req.link.is_wheel # extract the wheel into the dir unpack_url( req.link, req.source_dir, None, False, session=session, ) else: build_failure.append(req) # notify success/failure if build_success: logger.info( 'Successfully built %s', ' '.join([req.name for req in build_success]), ) if build_failure: logger.info( 'Failed to build %s', ' '.join([req.name for req in build_failure]), ) # Return a list of requirements that failed to build return build_failure
python
def build( self, requirements, # type: Iterable[InstallRequirement] session, # type: PipSession autobuilding=False # type: bool ): # type: (...) -> List[InstallRequirement] """Build wheels. :param unpack: If True, replace the sdist we built from with the newly built wheel, in preparation for installation. :return: True if all the wheels built correctly. """ buildset = [] format_control = self.finder.format_control # Whether a cache directory is available for autobuilding=True. cache_available = bool(self._wheel_dir or self.wheel_cache.cache_dir) for req in requirements: ephem_cache = should_use_ephemeral_cache( req, format_control=format_control, autobuilding=autobuilding, cache_available=cache_available, ) if ephem_cache is None: continue buildset.append((req, ephem_cache)) if not buildset: return [] # Is any wheel build not using the ephemeral cache? if any(not ephem_cache for _, ephem_cache in buildset): have_directory_for_build = self._wheel_dir or ( autobuilding and self.wheel_cache.cache_dir ) assert have_directory_for_build # TODO by @pradyunsg # Should break up this method into 2 separate methods. # Build the wheels. logger.info( 'Building wheels for collected packages: %s', ', '.join([req.name for (req, _) in buildset]), ) _cache = self.wheel_cache # shorter name with indent_log(): build_success, build_failure = [], [] for req, ephem in buildset: python_tag = None if autobuilding: python_tag = pep425tags.implementation_tag if ephem: output_dir = _cache.get_ephem_path_for_link(req.link) else: output_dir = _cache.get_path_for_link(req.link) try: ensure_dir(output_dir) except OSError as e: logger.warning("Building wheel for %s failed: %s", req.name, e) build_failure.append(req) continue else: output_dir = self._wheel_dir wheel_file = self._build_one( req, output_dir, python_tag=python_tag, ) if wheel_file: build_success.append(req) if autobuilding: # XXX: This is mildly duplicative with prepare_files, # but not close enough to pull out to a single common # method. # The code below assumes temporary source dirs - # prevent it doing bad things. if req.source_dir and not os.path.exists(os.path.join( req.source_dir, PIP_DELETE_MARKER_FILENAME)): raise AssertionError( "bad source dir - missing marker") # Delete the source we built the wheel from req.remove_temporary_source() # set the build directory again - name is known from # the work prepare_files did. req.source_dir = req.build_location( self.preparer.build_dir ) # Update the link for this. req.link = Link(path_to_url(wheel_file)) assert req.link.is_wheel # extract the wheel into the dir unpack_url( req.link, req.source_dir, None, False, session=session, ) else: build_failure.append(req) # notify success/failure if build_success: logger.info( 'Successfully built %s', ' '.join([req.name for req in build_success]), ) if build_failure: logger.info( 'Failed to build %s', ' '.join([req.name for req in build_failure]), ) # Return a list of requirements that failed to build return build_failure
[ "def", "build", "(", "self", ",", "requirements", ",", "# type: Iterable[InstallRequirement]", "session", ",", "# type: PipSession", "autobuilding", "=", "False", "# type: bool", ")", ":", "# type: (...) -> List[InstallRequirement]", "buildset", "=", "[", "]", "format_control", "=", "self", ".", "finder", ".", "format_control", "# Whether a cache directory is available for autobuilding=True.", "cache_available", "=", "bool", "(", "self", ".", "_wheel_dir", "or", "self", ".", "wheel_cache", ".", "cache_dir", ")", "for", "req", "in", "requirements", ":", "ephem_cache", "=", "should_use_ephemeral_cache", "(", "req", ",", "format_control", "=", "format_control", ",", "autobuilding", "=", "autobuilding", ",", "cache_available", "=", "cache_available", ",", ")", "if", "ephem_cache", "is", "None", ":", "continue", "buildset", ".", "append", "(", "(", "req", ",", "ephem_cache", ")", ")", "if", "not", "buildset", ":", "return", "[", "]", "# Is any wheel build not using the ephemeral cache?", "if", "any", "(", "not", "ephem_cache", "for", "_", ",", "ephem_cache", "in", "buildset", ")", ":", "have_directory_for_build", "=", "self", ".", "_wheel_dir", "or", "(", "autobuilding", "and", "self", ".", "wheel_cache", ".", "cache_dir", ")", "assert", "have_directory_for_build", "# TODO by @pradyunsg", "# Should break up this method into 2 separate methods.", "# Build the wheels.", "logger", ".", "info", "(", "'Building wheels for collected packages: %s'", ",", "', '", ".", "join", "(", "[", "req", ".", "name", "for", "(", "req", ",", "_", ")", "in", "buildset", "]", ")", ",", ")", "_cache", "=", "self", ".", "wheel_cache", "# shorter name", "with", "indent_log", "(", ")", ":", "build_success", ",", "build_failure", "=", "[", "]", ",", "[", "]", "for", "req", ",", "ephem", "in", "buildset", ":", "python_tag", "=", "None", "if", "autobuilding", ":", "python_tag", "=", "pep425tags", ".", "implementation_tag", "if", "ephem", ":", "output_dir", "=", "_cache", ".", "get_ephem_path_for_link", "(", "req", ".", "link", ")", "else", ":", "output_dir", "=", "_cache", ".", "get_path_for_link", "(", "req", ".", "link", ")", "try", ":", "ensure_dir", "(", "output_dir", ")", "except", "OSError", "as", "e", ":", "logger", ".", "warning", "(", "\"Building wheel for %s failed: %s\"", ",", "req", ".", "name", ",", "e", ")", "build_failure", ".", "append", "(", "req", ")", "continue", "else", ":", "output_dir", "=", "self", ".", "_wheel_dir", "wheel_file", "=", "self", ".", "_build_one", "(", "req", ",", "output_dir", ",", "python_tag", "=", "python_tag", ",", ")", "if", "wheel_file", ":", "build_success", ".", "append", "(", "req", ")", "if", "autobuilding", ":", "# XXX: This is mildly duplicative with prepare_files,", "# but not close enough to pull out to a single common", "# method.", "# The code below assumes temporary source dirs -", "# prevent it doing bad things.", "if", "req", ".", "source_dir", "and", "not", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "req", ".", "source_dir", ",", "PIP_DELETE_MARKER_FILENAME", ")", ")", ":", "raise", "AssertionError", "(", "\"bad source dir - missing marker\"", ")", "# Delete the source we built the wheel from", "req", ".", "remove_temporary_source", "(", ")", "# set the build directory again - name is known from", "# the work prepare_files did.", "req", ".", "source_dir", "=", "req", ".", "build_location", "(", "self", ".", "preparer", ".", "build_dir", ")", "# Update the link for this.", "req", ".", "link", "=", "Link", "(", "path_to_url", "(", "wheel_file", ")", ")", "assert", "req", ".", "link", ".", "is_wheel", "# extract the wheel into the dir", "unpack_url", "(", "req", ".", "link", ",", "req", ".", "source_dir", ",", "None", ",", "False", ",", "session", "=", "session", ",", ")", "else", ":", "build_failure", ".", "append", "(", "req", ")", "# notify success/failure", "if", "build_success", ":", "logger", ".", "info", "(", "'Successfully built %s'", ",", "' '", ".", "join", "(", "[", "req", ".", "name", "for", "req", "in", "build_success", "]", ")", ",", ")", "if", "build_failure", ":", "logger", ".", "info", "(", "'Failed to build %s'", ",", "' '", ".", "join", "(", "[", "req", ".", "name", "for", "req", "in", "build_failure", "]", ")", ",", ")", "# Return a list of requirements that failed to build", "return", "build_failure" ]
Build wheels. :param unpack: If True, replace the sdist we built from with the newly built wheel, in preparation for installation. :return: True if all the wheels built correctly.
[ "Build", "wheels", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/patched/notpip/_internal/wheel.py#L985-L1097
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uw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1606 - 1558) + '\157' + chr(0b110010) + chr(382 - 333) + chr(1514 - 1459), 40117 - 40109), ehT0Px3KOsy9('\x30' + chr(0b11101 + 0o122) + chr(0b10111 + 0o33) + chr(54) + '\061', 39854 - 39846), ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + '\x32' + '\x31', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101100 + 0o3) + chr(0b110001 + 0o2) + '\060' + '\063', 24198 - 24190), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(49) + chr(55), 56851 - 56843), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11010 + 0o27) + chr(1251 - 1203) + chr(0b100111 + 0o20), 0o10), ehT0Px3KOsy9(chr(1156 - 1108) + '\157' + chr(0b110010 + 0o5) + chr(0b110001), 57955 - 57947), ehT0Px3KOsy9(chr(1016 - 968) + chr(0b1 + 0o156) + '\063' + chr(54) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + '\x34' + chr(0b11010 + 0o33), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(55) + chr(0b11100 + 0o25), 6238 - 6230), ehT0Px3KOsy9('\060' + chr(0b110111 + 0o70) + '\x32' + chr(1138 - 1088) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + chr(189 - 138) + chr(0b100 + 0o55), 2877 - 2869), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + '\x34' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(0b110000 + 0o2) + '\x37' + chr(0b110010), 0o10), ehT0Px3KOsy9('\x30' + chr(8353 - 8242) + chr(1094 - 1045) + chr(2754 - 2699), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(577 - 526) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(1550 - 1502) + '\x31', 59874 - 59866), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101010 + 0o5) + chr(0b110011) + '\065' + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(5210 - 5099) + chr(50) + chr(0b110110) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8545 - 8434) + chr(0b110001) + chr(0b110010) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110110) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(48) + chr(1484 - 1373) + chr(0b110010) + chr(0b110011) + chr(48), 59321 - 59313), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + '\060', 18252 - 18244), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b11111 + 0o120) + '\063' + chr(0b110010) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1404 - 1355) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b10000 + 0o137) + '\062' + chr(49) + chr(2409 - 2356), 0b1000), ehT0Px3KOsy9(chr(1194 - 1146) + chr(1059 - 948) + chr(0b101111 + 0o2) + chr(1534 - 1480) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101100 + 0o3) + chr(50) + '\066' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110 + 0o52), 19137 - 19129), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b11110 + 0o26) + chr(1994 - 1946), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(4125 - 4014) + chr(1114 - 1065) + chr(0b110001) + chr(0b101000 + 0o15), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\x6f' + chr(0b110001) + '\064' + chr(0b10 + 0o63), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(9794 - 9683) + chr(0b11010 + 0o30) + chr(0b11 + 0o60) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(111) + '\x35' + chr(118 - 66), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3890 - 3779) + chr(49) + chr(54) + chr(1450 - 1399), 0o10), ehT0Px3KOsy9(chr(1628 - 1580) + '\157' + chr(1134 - 1085) + chr(0b110000) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(51) + chr(0b11110 + 0o22), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(420 - 370) + chr(55) + chr(1631 - 1582), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x34' + chr(0b110100), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(3093 - 2982) + chr(2137 - 2084) + chr(1611 - 1563), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1'), chr(0b1100100) + chr(0b1011001 + 0o14) + chr(907 - 808) + chr(0b1101111) + '\144' + chr(7039 - 6938))(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(2471 - 2415)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def TQHveekdSVRw(oVre8I6UXc3b, bpIm7kx65ViP, Q4vuWJRZ65bC, PP45RoMBlhHZ=ehT0Px3KOsy9('\x30' + '\157' + chr(773 - 725), 0b1000)): Y1TWy38fsLKX = [] ME2lOzEP2bGJ = oVre8I6UXc3b.finder.format_control hBm7IRUH1IJS = WbBjf8Y7v9VN(oVre8I6UXc3b._wheel_dir or oVre8I6UXc3b.wheel_cache.j3fmOtvUtrP5) for RaJ10cX5BL3G in bpIm7kx65ViP: MGZQosVEYBUw = NQs3Ddwa3Hxr(RaJ10cX5BL3G, format_control=ME2lOzEP2bGJ, autobuilding=PP45RoMBlhHZ, cache_available=hBm7IRUH1IJS) if MGZQosVEYBUw is None: continue xafqLlk3kkUe(Y1TWy38fsLKX, xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc1a\xa6!#'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b101010 + 0o73))('\165' + chr(6429 - 6313) + chr(0b1100110) + chr(1051 - 1006) + '\070'))((RaJ10cX5BL3G, MGZQosVEYBUw)) if not Y1TWy38fsLKX: return [] if UVSi4XW7eBIM((not MGZQosVEYBUw for (VNGQdHSFPrso, MGZQosVEYBUw) in Y1TWy38fsLKX)): IXp5j_roKE7y = oVre8I6UXc3b._wheel_dir or (PP45RoMBlhHZ and oVre8I6UXc3b.wheel_cache.j3fmOtvUtrP5) assert IXp5j_roKE7y xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x86Y\xbb:$^\xc6\xcf\x95\xcfr'), '\144' + '\145' + chr(99) + chr(0b1101111) + chr(882 - 782) + chr(101))(chr(0b1000000 + 0o65) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd\xc4x\xaf+.W\x96\x85\x8e\xfd|\x05\xd6|\xba\xe7\x83\xc2uW\xf7|\xb9h\xee\x03\xd0|\x80=\x04\xf8Gw\x14#\xab\x83\x04\xaa\xc2'), chr(100) + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b1100000 + 0o5))(chr(12063 - 11946) + '\164' + chr(0b111111 + 0o47) + chr(0b101101) + chr(1211 - 1155)), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa3\x91'), chr(9861 - 9761) + chr(101) + chr(0b1101 + 0o126) + chr(0b1001101 + 0o42) + '\144' + '\x65')(chr(10206 - 10089) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd0\xdeF\x9b53o\xbf\xcb\x88\xdd_'), chr(2505 - 2405) + '\145' + chr(99) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(3090 - 2974) + '\146' + chr(0b1 + 0o54) + chr(0b11110 + 0o32)))([xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\xf8g\x89\x1d=u\x95\xe1\x9f\xf2_'), '\x64' + '\145' + chr(99) + chr(111) + chr(100) + chr(6914 - 6813))('\165' + '\164' + chr(8521 - 8419) + '\055' + chr(0b101100 + 0o14))) for (RaJ10cX5BL3G, VNGQdHSFPrso) in Y1TWy38fsLKX])) XVkPKljcr_8p = oVre8I6UXc3b.wheel_cache with C6VWoalW7_Qv(): (UBGy67qnZG0F, SaVjZUOdjfCn) = ([], []) for (RaJ10cX5BL3G, zljqyJsSDda6) in Y1TWy38fsLKX: yCUq3daCu_PN = None if PP45RoMBlhHZ: yCUq3daCu_PN = er8C4CvZjYUj.implementation_tag if zljqyJsSDda6: nd0OX_BS6_o4 = XVkPKljcr_8p.get_ephem_path_for_link(RaJ10cX5BL3G.HKXay_x3pZk5) else: nd0OX_BS6_o4 = XVkPKljcr_8p.get_path_for_link(RaJ10cX5BL3G.HKXay_x3pZk5) try: p1r5RgRRsC1D(nd0OX_BS6_o4) except KlPSljPzIJ_u as GlnVAPeT6CUe: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xd0c\xad&)^'), '\144' + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\x65')('\x75' + '\x74' + '\146' + chr(45) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd\xc4x\xaf+.W\x96\x85\x8e\xfd|\x05\xd6/\xfc\xee\x9e\x90pG\xb8v\xb4d\xe1\x12\xd1"\x80h\x16'), chr(0b111001 + 0o53) + chr(101) + chr(0b1100011) + chr(6808 - 6697) + chr(0b101 + 0o137) + chr(0b1100101))('\x75' + chr(0b1010011 + 0o41) + chr(0b1100110) + chr(1482 - 1437) + chr(2928 - 2872)), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\xf8g\x89\x1d=u\x95\xe1\x9f\xf2_'), chr(4035 - 3935) + '\x65' + chr(1105 - 1006) + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(4501 - 4399) + chr(0b101101) + chr(0b1011 + 0o55))), GlnVAPeT6CUe) xafqLlk3kkUe(SaVjZUOdjfCn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc1a\xa6!#'), chr(2320 - 2220) + chr(0b1100101) + chr(4469 - 4370) + chr(7471 - 7360) + '\144' + chr(6544 - 6443))('\x75' + chr(0b1110100) + chr(0b1100011 + 0o3) + chr(0b101101) + '\x38'))(RaJ10cX5BL3G) continue else: nd0OX_BS6_o4 = oVre8I6UXc3b._wheel_dir QhVMpvBcwlNj = oVre8I6UXc3b._build_one(RaJ10cX5BL3G, nd0OX_BS6_o4, python_tag=yCUq3daCu_PN) if QhVMpvBcwlNj: xafqLlk3kkUe(UBGy67qnZG0F, xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc1a\xa6!#'), chr(3241 - 3141) + '\x65' + '\143' + chr(0b1101111) + '\144' + '\145')(chr(7879 - 7762) + '\x74' + '\x66' + '\055' + '\070'))(RaJ10cX5BL3G) if PP45RoMBlhHZ: if xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfc\xded\xb1,"f\x95\xcc\x8b'), chr(5582 - 5482) + chr(0b10101 + 0o120) + '\x63' + chr(0b1101111) + chr(0b11001 + 0o113) + chr(0b110110 + 0o57))('\x75' + chr(116) + chr(1569 - 1467) + chr(45) + chr(1786 - 1730))) and (not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xea\xc9x\xb0;4'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(8012 - 7895) + chr(1740 - 1624) + chr(0b100100 + 0o102) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd0\xdeF\x9b53o\xbf\xcb\x88\xdd_'), chr(100) + chr(101) + chr(6393 - 6294) + '\157' + chr(0b1100100) + chr(2841 - 2740))(chr(0b1110101) + '\x74' + '\146' + chr(123 - 78) + '\070'))(xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfc\xded\xb1,"f\x95\xcc\x8b'), chr(0b1100100) + '\x65' + '\143' + chr(2382 - 2271) + chr(7971 - 7871) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1110 + 0o130) + '\055' + chr(56))), vIiCk4V1fFBD))): raise vcEHXBQXuDuh(xafqLlk3kkUe(SXOLrMavuUCe(b'\xed\xd0u\xe3<(L\x83\xc6\x9c\xb5}\t\xc8/\xb7\xa1\x81\xd9&G\xf1~\xb2-\xe0\x16\xc7s\xc5?'), '\144' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1001001 + 0o34))('\165' + '\x74' + chr(0b101111 + 0o67) + chr(45) + chr(0b111000))) xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd\xd4|\xac9"f\x85\xc0\x94\xe5v\x12\xdb}\xe3\xde\x9f\xdf F\xfbu'), chr(1758 - 1658) + chr(101) + chr(0b1100011) + chr(7258 - 7147) + chr(0b1010110 + 0o16) + chr(101))(chr(0b1010010 + 0o43) + chr(0b1110100) + '\x66' + chr(456 - 411) + '\x38'))() RaJ10cX5BL3G.gcatodHcv5an = RaJ10cX5BL3G.build_location(oVre8I6UXc3b.preparer.build_dir) RaJ10cX5BL3G.HKXay_x3pZk5 = A8DMSzLmekcy(JTCFr6gE3yGV(QhVMpvBcwlNj)) assert xafqLlk3kkUe(RaJ10cX5BL3G.link, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6\xc2N\xb4\'"\\\x9d'), chr(0b1100100) + chr(7078 - 6977) + chr(0b1100011) + chr(0b1100100 + 0o13) + chr(0b1100011 + 0o1) + '\145')(chr(0b11011 + 0o132) + chr(116) + '\146' + chr(45) + chr(0b100101 + 0o23))) Q3RvoL9fzJiM(xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc7\xfaI\xa26\x18A\xc2\xd5\xa3\xfe,'), chr(0b1100100) + chr(0b101011 + 0o72) + '\143' + chr(3192 - 3081) + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + chr(0b1100110) + chr(45) + '\x38')), xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\xd2p\xb7 #q\x92\xd3\xcc\xf4w'), chr(0b11100 + 0o110) + chr(0b1100101) + chr(0b1010000 + 0o23) + chr(0b10 + 0o155) + chr(0b1010101 + 0o17) + chr(0b1100101))(chr(0b1100011 + 0o22) + '\164' + '\146' + chr(1557 - 1512) + chr(0b101111 + 0o11))), None, ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111 + 0o0) + chr(0b110000), 8), session=Q4vuWJRZ65bC) else: xafqLlk3kkUe(SaVjZUOdjfCn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc1a\xa6!#'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + chr(0b101001 + 0o74))(chr(117) + chr(0b11011 + 0o131) + chr(0b1100110) + chr(45) + chr(0b111000)))(RaJ10cX5BL3G) if UBGy67qnZG0F: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x86Y\xbb:$^\xc6\xcf\x95\xcfr'), '\144' + chr(437 - 336) + chr(0b1100011) + chr(6085 - 5974) + chr(2436 - 2336) + chr(101))(chr(0b10000 + 0o145) + chr(116) + chr(0b1100110) + '\055' + chr(1679 - 1623)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\xc4r\xa0*4J\x97\xd0\x95\xf9`@\xd8z\xf3\xed\x98\x90pG'), chr(0b1000010 + 0o42) + chr(101) + chr(0b111110 + 0o45) + chr(0b1001 + 0o146) + chr(8174 - 8074) + chr(346 - 245))('\x75' + chr(116) + chr(102) + '\x2d' + chr(56)), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf'), '\x64' + chr(0b10110 + 0o117) + '\143' + chr(2379 - 2268) + chr(100) + chr(2390 - 2289))('\165' + chr(0b1110100) + chr(0b10111 + 0o117) + '\055' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd0\xdeF\x9b53o\xbf\xcb\x88\xdd_'), '\144' + '\145' + chr(99) + chr(0b10000 + 0o137) + '\x64' + chr(4831 - 4730))(chr(117) + chr(116) + '\x66' + chr(45) + '\x38'))([xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\xf8g\x89\x1d=u\x95\xe1\x9f\xf2_'), chr(0b1011010 + 0o12) + '\145' + chr(0b1100 + 0o127) + chr(0b1100000 + 0o17) + chr(100) + chr(6954 - 6853))('\165' + chr(0b110000 + 0o104) + chr(102) + '\055' + chr(0b111000))) for RaJ10cX5BL3G in UBGy67qnZG0F])) if SaVjZUOdjfCn: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x86Y\xbb:$^\xc6\xcf\x95\xcfr'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + '\144' + chr(8818 - 8717))('\x75' + chr(0b1101100 + 0o10) + chr(0b1010100 + 0o22) + chr(0b100010 + 0o13) + chr(0b100 + 0o64)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc9\xd0x\xaf*#\x19\x85\xca\xd9\xf7l\t\xd6k\xba\xa4\x9f'), chr(0b1100100) + '\x65' + chr(5893 - 5794) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1010000 + 0o45) + chr(116) + chr(0b1001000 + 0o36) + '\055' + chr(722 - 666)), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf'), chr(3200 - 3100) + chr(737 - 636) + chr(0b110100 + 0o57) + '\157' + '\x64' + '\x65')(chr(0b100011 + 0o122) + chr(0b1110 + 0o146) + chr(4280 - 4178) + '\x2d' + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd0\xdeF\x9b53o\xbf\xcb\x88\xdd_'), chr(9979 - 9879) + '\145' + chr(0b1000001 + 0o42) + chr(0b1011100 + 0o23) + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(2171 - 2069) + chr(45) + chr(0b111000)))([xafqLlk3kkUe(RaJ10cX5BL3G, xafqLlk3kkUe(SXOLrMavuUCe(b'\xce\xf8g\x89\x1d=u\x95\xe1\x9f\xf2_'), '\x64' + '\x65' + chr(0b100 + 0o137) + chr(2334 - 2223) + chr(8435 - 8335) + chr(101))(chr(1617 - 1500) + chr(11053 - 10937) + chr(5296 - 5194) + chr(1222 - 1177) + chr(0b10000 + 0o50))) for RaJ10cX5BL3G in SaVjZUOdjfCn])) return SaVjZUOdjfCn
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex._get_pypirc_command
def _get_pypirc_command(self): """ Get the distutils command for interacting with PyPI configurations. :return: the command. """ from distutils.core import Distribution from distutils.config import PyPIRCCommand d = Distribution() return PyPIRCCommand(d)
python
def _get_pypirc_command(self): """ Get the distutils command for interacting with PyPI configurations. :return: the command. """ from distutils.core import Distribution from distutils.config import PyPIRCCommand d = Distribution() return PyPIRCCommand(d)
[ "def", "_get_pypirc_command", "(", "self", ")", ":", "from", "distutils", ".", "core", "import", "Distribution", "from", "distutils", ".", "config", "import", "PyPIRCCommand", "d", "=", "Distribution", "(", ")", "return", "PyPIRCCommand", "(", "d", ")" ]
Get the distutils command for interacting with PyPI configurations. :return: the command.
[ "Get", "the", "distutils", "command", "for", "interacting", "with", "PyPI", "configurations", ".", ":", "return", ":", "the", "command", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L65-L73
train
Get the distutils command for interacting with PyPI configurations.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjm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n,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110100) + chr(1276 - 1225), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\x31' + chr(1088 - 1035), 0o10), ehT0Px3KOsy9(chr(0b1100 + 0o44) + '\x6f' + chr(51) + chr(0b1100 + 0o53) + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(4530 - 4419) + '\062' + chr(0b110010 + 0o1), 0b1000), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(111) + '\x31' + chr(0b10010 + 0o42) + chr(0b11000 + 0o32), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1001011 + 0o44) + chr(0b110011) + '\067' + chr(54), 0o10), ehT0Px3KOsy9(chr(2019 - 1971) + chr(0b1010110 + 0o31) + chr(0b110010) + chr(2084 - 2030) + chr(0b1111 + 0o44), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(814 - 764) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100101 + 0o15) + chr(49) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(0b110101) + '\x36', 29638 - 29630), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + chr(0b101100 + 0o10) + chr(0b110011 + 0o0), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(9888 - 9777) + chr(610 - 560) + chr(498 - 450), 1465 - 1457), ehT0Px3KOsy9(chr(1007 - 959) + chr(0b1000101 + 0o52) + chr(50) + chr(0b111 + 0o56) + chr(48), 10973 - 10965), ehT0Px3KOsy9(chr(0b110000) + chr(2775 - 2664) + chr(0b110010) + '\067' + chr(54), 5555 - 5547), ehT0Px3KOsy9(chr(996 - 948) + '\x6f' + chr(0b110001) + chr(0b110011) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + '\063' + chr(0b100010 + 0o21), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100011 + 0o14) + chr(0b110010) + chr(0b10110 + 0o35) + '\x34', 48077 - 48069), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1001111 + 0o40) + chr(49) + chr(0b110111) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + chr(5847 - 5736) + chr(0b100100 + 0o20) + chr(414 - 359), 45690 - 45682), ehT0Px3KOsy9(chr(605 - 557) + chr(111) + chr(51) + chr(0b110100) + chr(2034 - 1983), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011 + 0o144) + '\x32' + '\x35' + '\060', 8), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(0b110001) + chr(76 - 28), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(0b110111) + '\067', 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(0b110010) + '\063', 7296 - 7288), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(342 - 289) + chr(686 - 634), 0o10), ehT0Px3KOsy9('\x30' + chr(11693 - 11582) + chr(511 - 460) + '\x33' + chr(1884 - 1831), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1010 + 0o51) + chr(1225 - 1172) + '\065', 0o10), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(2298 - 2247) + chr(0b110010) + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(11193 - 11082) + '\066' + chr(228 - 176), 1465 - 1457), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + '\x33' + chr(49) + chr(708 - 659), 0o10), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b111 + 0o150) + chr(0b11000 + 0o33) + '\x35' + chr(0b110001), 8068 - 8060), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\157' + chr(0b110011) + chr(50) + chr(0b100010 + 0o24), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b101 + 0o152) + chr(0b101010 + 0o10) + '\x33' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + '\x33' + '\x31' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(221 - 173) + chr(0b1101111) + '\062' + chr(244 - 190) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1110 + 0o141) + chr(0b110001) + '\065', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(49) + chr(0b101010 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(7497 - 7386) + chr(0b110001) + '\x31' + '\x30', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(580 - 530) + '\x37' + '\x37', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b1101111) + chr(1073 - 1020) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\r'), chr(0b1100100) + chr(0b1001011 + 0o32) + chr(99) + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b101100 + 0o110) + chr(102) + chr(969 - 924) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def eIfSBMeQKqg2(oVre8I6UXc3b): (A3KkwdF7jeXs,) = (xafqLlk3kkUe(xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'G\xa4\x88g\x17\x8a\xda{\xff@\xc0\x7f\xda\xdb'), chr(100) + '\x65' + '\x63' + chr(0b101101 + 0o102) + chr(0b1010011 + 0o21) + chr(8161 - 8060))(chr(2699 - 2582) + chr(116) + chr(0b1100110) + '\x2d' + chr(1021 - 965)), xafqLlk3kkUe(SXOLrMavuUCe(b'g\xa4\x88g\x10\x97\xd1b\xf8\x07\xcc~'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(6804 - 6703))(chr(0b110011 + 0o102) + '\x74' + '\x66' + '\x2d' + chr(0b100100 + 0o24))), xafqLlk3kkUe(SXOLrMavuUCe(b'@\xa2\x89v'), '\x64' + chr(101) + chr(99) + chr(0b101111 + 0o100) + '\144' + chr(0b111010 + 0o53))(chr(5195 - 5078) + '\x74' + '\146' + chr(0b1010 + 0o43) + chr(0b10110 + 0o42))), xafqLlk3kkUe(SXOLrMavuUCe(b'g\xa4\x88g\x10\x97\xd1b\xf8\x07\xcc~'), chr(0b1100100) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(7726 - 7625))('\x75' + '\164' + chr(102) + '\055' + '\070')),) (BA_97NESI5uA,) = (xafqLlk3kkUe(xafqLlk3kkUe(NPPHb59961Bv(xafqLlk3kkUe(SXOLrMavuUCe(b'G\xa4\x88g\x17\x8a\xda{\xff@\xc0\x7f\xc6\xd84\xbc'), chr(1152 - 1052) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(0b110010 + 0o6)), xafqLlk3kkUe(SXOLrMavuUCe(b's\xb4\xabZ0\xbd\xf0x\xe1\x03\xc2~\xcc'), chr(100) + '\145' + chr(99) + '\x6f' + '\x64' + chr(5735 - 5634))(chr(117) + '\x74' + '\146' + chr(688 - 643) + chr(1213 - 1157))), xafqLlk3kkUe(SXOLrMavuUCe(b'@\xa2\x95u\x0b\x99'), '\144' + '\145' + chr(0b1100011) + chr(0b1011001 + 0o26) + chr(100) + '\x65')(chr(0b100011 + 0o122) + '\x74' + chr(7836 - 7734) + chr(45) + chr(0b110111 + 0o1))), xafqLlk3kkUe(SXOLrMavuUCe(b's\xb4\xabZ0\xbd\xf0x\xe1\x03\xc2~\xcc'), chr(100) + chr(0b111001 + 0o54) + chr(2949 - 2850) + chr(111) + chr(100) + chr(2397 - 2296))(chr(117) + chr(116) + chr(0b110101 + 0o61) + chr(0b110 + 0o47) + chr(56))),) pd3lxn9vqWxp = A3KkwdF7jeXs() return BA_97NESI5uA(pd3lxn9vqWxp)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.read_configuration
def read_configuration(self): """ Read the PyPI access configuration as supported by distutils, getting PyPI to do the actual work. This populates ``username``, ``password``, ``realm`` and ``url`` attributes from the configuration. """ # get distutils to do the work c = self._get_pypirc_command() c.repository = self.url cfg = c._read_pypirc() self.username = cfg.get('username') self.password = cfg.get('password') self.realm = cfg.get('realm', 'pypi') self.url = cfg.get('repository', self.url)
python
def read_configuration(self): """ Read the PyPI access configuration as supported by distutils, getting PyPI to do the actual work. This populates ``username``, ``password``, ``realm`` and ``url`` attributes from the configuration. """ # get distutils to do the work c = self._get_pypirc_command() c.repository = self.url cfg = c._read_pypirc() self.username = cfg.get('username') self.password = cfg.get('password') self.realm = cfg.get('realm', 'pypi') self.url = cfg.get('repository', self.url)
[ "def", "read_configuration", "(", "self", ")", ":", "# get distutils to do the work", "c", "=", "self", ".", "_get_pypirc_command", "(", ")", "c", ".", "repository", "=", "self", ".", "url", "cfg", "=", "c", ".", "_read_pypirc", "(", ")", "self", ".", "username", "=", "cfg", ".", "get", "(", "'username'", ")", "self", ".", "password", "=", "cfg", ".", "get", "(", "'password'", ")", "self", ".", "realm", "=", "cfg", ".", "get", "(", "'realm'", ",", "'pypi'", ")", "self", ".", "url", "=", "cfg", ".", "get", "(", "'repository'", ",", "self", ".", "url", ")" ]
Read the PyPI access configuration as supported by distutils, getting PyPI to do the actual work. This populates ``username``, ``password``, ``realm`` and ``url`` attributes from the configuration.
[ "Read", "the", "PyPI", "access", "configuration", "as", "supported", "by", "distutils", "getting", "PyPI", "to", "do", "the", "actual", "work", ".", "This", "populates", "username", "password", "realm", "and", "url", "attributes", "from", "the", "configuration", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L75-L88
train
Read the PyPI access configuration as supported by distutils getting PyPI to do the actual work.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDW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rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\157' + chr(2287 - 2238) + chr(0b110111) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(1161 - 1050) + '\x32' + chr(0b110000) + chr(0b110101), 9830 - 9822), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001010 + 0o45) + chr(50) + chr(55) + chr(0b110001), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(0b11101 + 0o30) + '\063', 20620 - 20612), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + '\x31' + chr(2420 - 2365), 40655 - 40647), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(51) + '\063' + chr(0b10111 + 0o31), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(52), 23693 - 23685), ehT0Px3KOsy9(chr(2089 - 2041) + chr(6112 - 6001) + chr(0b100101 + 0o15) + chr(0b110000) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + '\063' + chr(0b100111 + 0o13) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(10933 - 10822) + '\x36' + chr(54), 8437 - 8429), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b101111 + 0o3) + '\060', 41155 - 41147), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\x31' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11513 - 11402) + '\063' + '\064' + chr(1725 - 1676), 11630 - 11622), ehT0Px3KOsy9('\060' + chr(0b1010100 + 0o33) + '\x32' + chr(2567 - 2512) + chr(55), 10355 - 10347), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101001 + 0o106) + chr(0b10100 + 0o35) + chr(0b110000) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x34' + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(844 - 796) + chr(0b1101111) + '\061' + chr(2492 - 2441) + '\x30', 8483 - 8475), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(5782 - 5671) + chr(1995 - 1945) + chr(0b11000 + 0o33) + chr(0b100001 + 0o25), 47802 - 47794), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(55) + chr(870 - 819), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + '\065', 0o10), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b111000 + 0o67) + chr(0b110010) + '\x31' + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10011 + 0o36) + '\060' + chr(0b10101 + 0o33), 15458 - 15450), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\157' + '\063' + chr(51) + chr(0b10000 + 0o40), 8), ehT0Px3KOsy9(chr(1776 - 1728) + chr(11080 - 10969) + '\061' + chr(51) + chr(0b110011), 58771 - 58763), ehT0Px3KOsy9('\060' + chr(1440 - 1329) + '\x33' + chr(74 - 22) + chr(0b10110 + 0o37), 0o10), ehT0Px3KOsy9('\x30' + chr(7903 - 7792) + '\064', 8), ehT0Px3KOsy9(chr(293 - 245) + '\x6f' + chr(0b101000 + 0o13) + chr(54) + chr(1907 - 1854), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(745 - 691) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(873 - 825) + chr(111) + chr(1964 - 1911) + chr(0b11111 + 0o25), 22500 - 22492), ehT0Px3KOsy9(chr(1039 - 991) + chr(0b1101111) + chr(0b101111 + 0o4) + '\063' + '\061', 0o10), ehT0Px3KOsy9('\x30' + chr(0b111 + 0o150) + chr(55) + '\x36', 0o10), ehT0Px3KOsy9(chr(1183 - 1135) + '\x6f' + chr(0b10110 + 0o35) + chr(0b110111) + chr(0b101110 + 0o7), 43886 - 43878), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(2284 - 2236) + chr(0b10011 + 0o44), 0b1000), ehT0Px3KOsy9(chr(1465 - 1417) + '\x6f' + chr(52) + chr(0b110101), 24646 - 24638), ehT0Px3KOsy9('\x30' + chr(10013 - 9902) + chr(0b110001) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(643 - 591) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100111 + 0o13) + chr(852 - 803) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b1101111) + '\063' + '\x35' + chr(0b0 + 0o66), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(5369 - 5258) + chr(0b10011 + 0o42) + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'U'), chr(0b1100100) + '\145' + chr(5637 - 5538) + '\157' + chr(100) + chr(0b1100101))('\165' + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def SrnHQ_ey661N(oVre8I6UXc3b): qzn1Ctg9WgNh = oVre8I6UXc3b._get_pypirc_command() qzn1Ctg9WgNh.pCnwOoih77wM = oVre8I6UXc3b.CYCr3xzMHl4K VUGOL5I886yF = qzn1Ctg9WgNh._read_pypirc() oVre8I6UXc3b.LMfWKi3SEDsJ = VUGOL5I886yF.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\x0e\xf6\xdc\x19\xe1\xb9q\xe7'), chr(100) + '\145' + chr(0b10111 + 0o114) + '\157' + chr(1054 - 954) + chr(0b1001 + 0o134))('\x75' + '\164' + chr(0b10111 + 0o117) + '\x2d' + chr(0b10101 + 0o43))) oVre8I6UXc3b.L92tZn2E6Lag = VUGOL5I886yF.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\x0b\xe4\xca\x18\xf8\xb7n\xe6'), chr(3743 - 3643) + chr(0b1100101) + '\x63' + chr(111) + chr(4212 - 4112) + chr(0b1100101))(chr(117) + '\x74' + chr(0b100101 + 0o101) + chr(0b100100 + 0o11) + '\070')) oVre8I6UXc3b.gJFEqYQA4Di5 = VUGOL5I886yF.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xe0\xd8\x07\xe2'), chr(1375 - 1275) + chr(0b1100101) + chr(0b1100011) + chr(0b101001 + 0o106) + '\144' + chr(0b1011000 + 0o15))('\165' + chr(7599 - 7483) + chr(102) + '\055' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x0b\xfc\xc9\x02'), chr(0b10000 + 0o124) + chr(101) + chr(4151 - 4052) + chr(1884 - 1773) + chr(6548 - 6448) + chr(3794 - 3693))(chr(2516 - 2399) + '\164' + chr(102) + chr(0b1 + 0o54) + '\x38')) oVre8I6UXc3b.CYCr3xzMHl4K = VUGOL5I886yF.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xe0\xc9\x04\xfc\xb1h\xed\xa7O'), '\x64' + chr(5086 - 4985) + chr(6895 - 6796) + chr(0b1101111) + chr(100) + chr(3882 - 3781))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(56)), oVre8I6UXc3b.CYCr3xzMHl4K)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.save_configuration
def save_configuration(self): """ Save the PyPI access configuration. You must have set ``username`` and ``password`` attributes before calling this method. Again, distutils is used to do the actual work. """ self.check_credentials() # get distutils to do the work c = self._get_pypirc_command() c._store_pypirc(self.username, self.password)
python
def save_configuration(self): """ Save the PyPI access configuration. You must have set ``username`` and ``password`` attributes before calling this method. Again, distutils is used to do the actual work. """ self.check_credentials() # get distutils to do the work c = self._get_pypirc_command() c._store_pypirc(self.username, self.password)
[ "def", "save_configuration", "(", "self", ")", ":", "self", ".", "check_credentials", "(", ")", "# get distutils to do the work", "c", "=", "self", ".", "_get_pypirc_command", "(", ")", "c", ".", "_store_pypirc", "(", "self", ".", "username", ",", "self", ".", "password", ")" ]
Save the PyPI access configuration. You must have set ``username`` and ``password`` attributes before calling this method. Again, distutils is used to do the actual work.
[ "Save", "the", "PyPI", "access", "configuration", ".", "You", "must", "have", "set", "username", "and", "password", "attributes", "before", "calling", "this", "method", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L90-L100
train
Save the PyPI access configuration.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_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,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(5263 - 5152) + '\x33' + chr(49) + chr(0b110001 + 0o4), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(48) + '\063', 59949 - 59941), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + '\x33' + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\157' + '\x34' + '\x37', 51148 - 51140), ehT0Px3KOsy9(chr(0b11010 + 0o26) + '\x6f' + chr(49) + chr(2168 - 2115) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001 + 0o0) + '\062' + chr(55), 63416 - 63408), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(0b10 + 0o64), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(8232 - 8121) + chr(0b10110 + 0o34) + chr(52) + chr(2278 - 2223), 32017 - 32009), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + chr(0b1000 + 0o55) + '\060', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(1657 - 1608) + chr(0b101110 + 0o2), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(139 - 86) + chr(2472 - 2418), 0o10), ehT0Px3KOsy9('\x30' + chr(0b100010 + 0o115) + chr(0b110011) + chr(0b110010) + chr(106 - 52), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + chr(50) + chr(0b110010) + chr(0b110111), 0o10), ehT0Px3KOsy9('\060' + chr(0b1001 + 0o146) + chr(54) + chr(51), 0o10), ehT0Px3KOsy9(chr(1325 - 1277) + '\157' + chr(55) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(2204 - 2156) + chr(0b101010 + 0o13), 0o10), ehT0Px3KOsy9(chr(864 - 816) + '\157' + '\x33' + chr(54), 8), ehT0Px3KOsy9(chr(633 - 585) + '\x6f' + '\x33' + chr(0b110110) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011000 + 0o27) + chr(1546 - 1496) + '\x33' + '\060', 11782 - 11774), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(54) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(0b110010) + chr(0b10001 + 0o46), 8), ehT0Px3KOsy9('\060' + '\157' + '\062' + '\065' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x31' + '\x36' + chr(0b10100 + 0o37), 0o10), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1101111) + '\063' + chr(53) + chr(1462 - 1414), 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + chr(424 - 373) + '\066' + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o56) + chr(0b110010) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b110011) + '\065', 0b1000), ehT0Px3KOsy9(chr(209 - 161) + chr(1189 - 1078) + chr(169 - 118) + chr(176 - 124) + '\x37', 55845 - 55837), ehT0Px3KOsy9(chr(2266 - 2218) + chr(8067 - 7956) + chr(0b110011) + chr(52) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1011010 + 0o25) + chr(0b110010) + chr(2023 - 1972) + chr(0b110001), 34586 - 34578), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + chr(2118 - 2067) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(191 - 143) + '\x6f' + chr(0b111 + 0o52) + chr(1027 - 975) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(8314 - 8203) + chr(0b110 + 0o53) + '\067', 0b1000), ehT0Px3KOsy9(chr(400 - 352) + chr(111) + '\063' + chr(0b110010) + chr(51), 63539 - 63531), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(54) + '\x37', 8), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(0b100001 + 0o25) + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1101011 + 0o4) + chr(49) + chr(0b100001 + 0o21) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + '\064' + chr(0b110111), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(0b100001 + 0o26), 8), ehT0Px3KOsy9('\060' + '\157' + chr(1478 - 1429) + '\x37' + chr(51), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(527 - 479) + '\157' + chr(0b110010 + 0o3) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3'), '\x64' + '\145' + '\x63' + chr(8741 - 8630) + chr(0b111 + 0o135) + chr(6739 - 6638))(chr(0b1001001 + 0o54) + chr(116) + chr(519 - 417) + chr(0b101101) + chr(3113 - 3057)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def M38G7RmkcOPf(oVre8I6UXc3b): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\xab9D\x03\x08}\xd5\xcd,K\xb8\xe3ZY\xe9m'), chr(100) + chr(5090 - 4989) + '\x63' + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1101111 + 0o5) + chr(0b1010110 + 0o20) + '\055' + chr(0b111000)))() qzn1Ctg9WgNh = oVre8I6UXc3b._get_pypirc_command() xafqLlk3kkUe(qzn1Ctg9WgNh, xafqLlk3kkUe(SXOLrMavuUCe(b'\x92\xb0(H\x1a2A\xd7\xd18G\xa4\xf4'), chr(0b1100100) + '\145' + chr(9186 - 9087) + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(3213 - 3111) + chr(45) + chr(2874 - 2818)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x81\x8e:p#>-\xf4\xed\x0c]\x9c'), '\144' + chr(399 - 298) + chr(794 - 695) + chr(0b10001 + 0o136) + chr(100) + chr(101))(chr(5508 - 5391) + '\164' + chr(102) + chr(45) + chr(0b11000 + 0o40))), xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x81\xfanS29,\xe2\x9e\x04O\xb1'), chr(4614 - 4514) + '\x65' + '\143' + chr(0b1101111) + '\x64' + '\145')('\165' + chr(0b1000 + 0o154) + chr(102) + '\x2d' + chr(0b100101 + 0o23))))
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.check_credentials
def check_credentials(self): """ Check that ``username`` and ``password`` have been set, and raise an exception if not. """ if self.username is None or self.password is None: raise DistlibException('username and password must be set') pm = HTTPPasswordMgr() _, netloc, _, _, _, _ = urlparse(self.url) pm.add_password(self.realm, netloc, self.username, self.password) self.password_handler = HTTPBasicAuthHandler(pm)
python
def check_credentials(self): """ Check that ``username`` and ``password`` have been set, and raise an exception if not. """ if self.username is None or self.password is None: raise DistlibException('username and password must be set') pm = HTTPPasswordMgr() _, netloc, _, _, _, _ = urlparse(self.url) pm.add_password(self.realm, netloc, self.username, self.password) self.password_handler = HTTPBasicAuthHandler(pm)
[ "def", "check_credentials", "(", "self", ")", ":", "if", "self", ".", "username", "is", "None", "or", "self", ".", "password", "is", "None", ":", "raise", "DistlibException", "(", "'username and password must be set'", ")", "pm", "=", "HTTPPasswordMgr", "(", ")", "_", ",", "netloc", ",", "_", ",", "_", ",", "_", ",", "_", "=", "urlparse", "(", "self", ".", "url", ")", "pm", ".", "add_password", "(", "self", ".", "realm", ",", "netloc", ",", "self", ".", "username", ",", "self", ".", "password", ")", "self", ".", "password_handler", "=", "HTTPBasicAuthHandler", "(", "pm", ")" ]
Check that ``username`` and ``password`` have been set, and raise an exception if not.
[ "Check", "that", "username", "and", "password", "have", "been", "set", "and", "raise", "an", "exception", "if", "not", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L102-L112
train
Check that username and password have been set and raise an exception if not.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA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xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(1529 - 1476) + chr(2400 - 2348), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(0b110111) + chr(2206 - 2157), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1759 - 1708) + chr(288 - 237) + chr(50), 64037 - 64029), ehT0Px3KOsy9(chr(1202 - 1154) + chr(111) + chr(53) + '\063', 0o10), ehT0Px3KOsy9(chr(519 - 471) + '\157' + chr(0b110001) + '\060' + chr(0b0 + 0o60), ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(10300 - 10189) + '\063' + chr(49) + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + chr(51) + '\064', 13154 - 13146), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110001) + chr(1913 - 1863), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100000 + 0o22) + chr(432 - 377), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110000 + 0o3) + '\x33' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + chr(0b100000 + 0o23) + chr(2411 - 2356) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(1740 - 1692) + '\x6f' + chr(51) + chr(54) + '\067', 466 - 458), ehT0Px3KOsy9(chr(0b110000) + chr(12294 - 12183) + '\x32' + chr(564 - 516) + chr(423 - 372), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + chr(0b1100 + 0o47) + chr(0b10111 + 0o35), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(55) + chr(0b100110 + 0o21), 24115 - 24107), ehT0Px3KOsy9(chr(815 - 767) + chr(0b1101100 + 0o3) + '\061' + '\x32' + '\062', 34422 - 34414), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x36' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(1517 - 1469) + '\x6f' + chr(0b101000 + 0o10), ord("\x08")), ehT0Px3KOsy9(chr(2273 - 2225) + chr(0b1101111) + chr(0b110010) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(0b1100000 + 0o17) + '\061' + '\061' + chr(380 - 329), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110110) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11000 + 0o32) + chr(53), 2932 - 2924), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(1173 - 1122) + chr(1339 - 1290) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(1161 - 1111) + chr(375 - 323) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b11001 + 0o126) + chr(0b110010) + '\x34' + chr(1906 - 1855), ord("\x08")), ehT0Px3KOsy9(chr(297 - 249) + '\157' + chr(0b110010) + '\x32' + '\x31', 1619 - 1611), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101101 + 0o4) + chr(0b1 + 0o57) + '\x34', 14979 - 14971), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(994 - 945) + '\x31' + chr(50), 8), ehT0Px3KOsy9('\060' + chr(0b1100110 + 0o11) + '\x34' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(111) + chr(2355 - 2305) + '\x35' + chr(996 - 948), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(53) + chr(0b110110), 10306 - 10298), ehT0Px3KOsy9(chr(1356 - 1308) + chr(111) + '\065' + chr(0b11110 + 0o31), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1671 - 1621) + chr(0b100 + 0o54) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11001 + 0o30) + chr(0b1 + 0o62) + chr(0b110010), 35093 - 35085), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(64 - 15) + chr(55) + chr(0b101011 + 0o13), 4554 - 4546), ehT0Px3KOsy9(chr(721 - 673) + chr(111) + chr(1355 - 1305) + chr(0b10010 + 0o37) + '\061', 18898 - 18890), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1010101 + 0o32) + chr(0b101011 + 0o6) + chr(1947 - 1896), ord("\x08")), ehT0Px3KOsy9(chr(2132 - 2084) + chr(0b1000110 + 0o51) + chr(2019 - 1968) + chr(0b100101 + 0o20) + chr(51), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1157 - 1107) + chr(0b110101) + chr(0b0 + 0o67), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + '\x35' + chr(48), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'B'), '\x64' + '\145' + '\x63' + chr(0b1101010 + 0o5) + chr(4980 - 4880) + '\x65')(chr(117) + chr(116) + '\x66' + chr(45) + chr(1215 - 1159)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def O6Uz9BDfFRaw(oVre8I6UXc3b): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b' 4\xbc|\x0b\xa6\xef\x19R\x9b\x8b\xbd'), chr(2987 - 2887) + chr(0b1100101) + chr(7020 - 6921) + chr(0b1101111) + chr(4538 - 4438) + chr(0b1100101))(chr(785 - 668) + '\x74' + chr(0b111111 + 0o47) + chr(0b100111 + 0o6) + chr(0b11011 + 0o35))) is None or xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b' @\xe8_\x1a\xa1\xee\x0f!\x93\x99\x90'), chr(0b1100100) + chr(101) + chr(8113 - 8014) + '\157' + '\144' + chr(101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101100 + 0o1) + chr(810 - 754))) is None: raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\x19\n\xbfY.\xae\xb1/7\xbe\x96\x93\xa3\xac^!Bwy9V5\xa3\xd3\xd0\xe5d(@\x88y\xcb['), '\144' + '\145' + chr(99) + chr(8172 - 8061) + chr(100) + '\145')('\x75' + chr(2154 - 2038) + chr(102) + chr(45) + chr(1541 - 1485))) aJT_MpennmIq = OdN6N_xOuOFt() (VNGQdHSFPrso, HACUjGtEjLIN, VNGQdHSFPrso, VNGQdHSFPrso, VNGQdHSFPrso, VNGQdHSFPrso) = P8lnsClJdUFG(oVre8I6UXc3b.CYCr3xzMHl4K) xafqLlk3kkUe(aJT_MpennmIq, xafqLlk3kkUe(SXOLrMavuUCe(b'\r\x1d\xbet0\xae\xaf9`\xb0\x8a\x93'), chr(9600 - 9500) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(890 - 788) + chr(45) + '\070'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0b3\x9cn1\x96\x8d\x0b#\x9b\x91\xc2'), chr(0b1000001 + 0o43) + '\x65' + chr(0b1100011) + chr(6439 - 6328) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b100100 + 0o11) + chr(56))), HACUjGtEjLIN, xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b' 4\xbc|\x0b\xa6\xef\x19R\x9b\x8b\xbd'), chr(100) + chr(101) + chr(99) + chr(10774 - 10663) + '\144' + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38')), xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b' @\xe8_\x1a\xa1\xee\x0f!\x93\x99\x90'), chr(100) + '\x65' + chr(0b101010 + 0o71) + chr(111) + chr(6593 - 6493) + chr(0b1100101))(chr(117) + chr(4470 - 4354) + chr(0b1011001 + 0o15) + chr(45) + chr(0b111000)))) oVre8I6UXc3b.uk51GFjJ93oU = qLzBkA9x9vie(aJT_MpennmIq)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.register
def register(self, metadata): """ Register a distribution on PyPI, using the provided metadata. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the distribution to be registered. :return: The HTTP response received from PyPI upon submission of the request. """ self.check_credentials() metadata.validate() d = metadata.todict() d[':action'] = 'verify' request = self.encode_request(d.items(), []) response = self.send_request(request) d[':action'] = 'submit' request = self.encode_request(d.items(), []) return self.send_request(request)
python
def register(self, metadata): """ Register a distribution on PyPI, using the provided metadata. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the distribution to be registered. :return: The HTTP response received from PyPI upon submission of the request. """ self.check_credentials() metadata.validate() d = metadata.todict() d[':action'] = 'verify' request = self.encode_request(d.items(), []) response = self.send_request(request) d[':action'] = 'submit' request = self.encode_request(d.items(), []) return self.send_request(request)
[ "def", "register", "(", "self", ",", "metadata", ")", ":", "self", ".", "check_credentials", "(", ")", "metadata", ".", "validate", "(", ")", "d", "=", "metadata", ".", "todict", "(", ")", "d", "[", "':action'", "]", "=", "'verify'", "request", "=", "self", ".", "encode_request", "(", "d", ".", "items", "(", ")", ",", "[", "]", ")", "response", "=", "self", ".", "send_request", "(", "request", ")", "d", "[", "':action'", "]", "=", "'submit'", "request", "=", "self", ".", "encode_request", "(", "d", ".", "items", "(", ")", ",", "[", "]", ")", "return", "self", ".", "send_request", "(", "request", ")" ]
Register a distribution on PyPI, using the provided metadata. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the distribution to be registered. :return: The HTTP response received from PyPI upon submission of the request.
[ "Register", "a", "distribution", "on", "PyPI", "using", "the", "provided", "metadata", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L114-L132
train
Register a distribution on PyPI using the provided metadata.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,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1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(214 - 164) + chr(0b110101) + chr(55), 22108 - 22100), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(2468 - 2413) + chr(49), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b100111 + 0o14) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(111) + '\x33' + chr(1280 - 1232) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(54) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b1001 + 0o50) + '\x34' + '\061', 0o10), ehT0Px3KOsy9('\x30' + chr(0b100011 + 0o114) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x31' + chr(1855 - 1807) + chr(49), 31286 - 31278), ehT0Px3KOsy9(chr(368 - 320) + chr(0b1101111) + chr(0b110001) + '\060' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + '\x36' + chr(49), 20079 - 20071), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + '\063' + chr(50) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + chr(2056 - 2002) + chr(0b110001), 8), ehT0Px3KOsy9(chr(784 - 736) + chr(1720 - 1609) + chr(49) + chr(662 - 613) + '\061', 0o10), ehT0Px3KOsy9(chr(168 - 120) + chr(0b101 + 0o152) + chr(0b110011) + chr(51) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(55) + chr(0b100 + 0o56), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(52) + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b111101 + 0o62) + chr(0b101111 + 0o3) + chr(0b110001) + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2334 - 2284), 29723 - 29715), ehT0Px3KOsy9(chr(1854 - 1806) + chr(0b100010 + 0o115) + chr(0b110101) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1486 - 1438) + '\157' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(0b101101 + 0o6) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(0b10110 + 0o131) + '\062' + chr(0b110 + 0o54) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111000 + 0o67) + chr(1795 - 1744) + '\064' + chr(0b101011 + 0o5), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1011000 + 0o27) + chr(51) + '\063' + '\067', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000111 + 0o50) + chr(335 - 286) + chr(48) + chr(562 - 514), ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(50) + chr(0b110010) + '\064', 63659 - 63651), ehT0Px3KOsy9('\060' + '\x6f' + chr(1583 - 1532) + chr(1899 - 1844) + chr(2238 - 2186), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + '\x31' + '\x37' + chr(0b100010 + 0o22), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(48) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(5785 - 5674) + chr(0b110010) + chr(0b110001) + chr(0b10010 + 0o45), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010101 + 0o32) + chr(0b100101 + 0o14) + chr(2508 - 2456) + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\063' + '\x37', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + '\065' + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110010) + chr(49) + chr(0b110011 + 0o3), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(10360 - 10249) + chr(52) + chr(2151 - 2103), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(53) + '\x36', 0o10), ehT0Px3KOsy9(chr(354 - 306) + chr(111) + chr(51) + chr(0b100101 + 0o14) + chr(50), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011101 + 0o22) + '\x32' + chr(0b1111 + 0o47), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x32' + chr(2294 - 2246) + chr(55), 0b1000), ehT0Px3KOsy9('\060' + chr(2040 - 1929) + chr(2239 - 2185) + '\063', 35829 - 35821)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1493 - 1440) + '\x30', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x81'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1000110 + 0o51) + '\x64' + chr(2899 - 2798))('\x75' + chr(0b110100 + 0o100) + chr(0b1100110) + chr(0b101 + 0o50) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WlGrEKpik_hR(oVre8I6UXc3b, mU7wOAGoTnlM): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\x91}\xa6^>d3"\xd5\xb2\xdf=\xb3\x9b\xcb\xfa'), chr(0b1001011 + 0o31) + chr(101) + chr(99) + chr(0b1101110 + 0o1) + chr(2813 - 2713) + chr(101))('\165' + '\164' + chr(0b100011 + 0o103) + '\x2d' + chr(2665 - 2609)))() xafqLlk3kkUe(mU7wOAGoTnlM, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\x97R\x84L\x10K4\x0c\xc2\x83\x80'), chr(0b110010 + 0o62) + '\145' + chr(1252 - 1153) + '\157' + '\x64' + '\x65')(chr(117) + '\x74' + chr(0b100 + 0o142) + chr(0b101000 + 0o5) + chr(56)))() pd3lxn9vqWxp = mU7wOAGoTnlM.todict() pd3lxn9vqWxp[xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\x98{\xb1\\\x0ei'), chr(100) + chr(0b101100 + 0o71) + chr(0b100 + 0o137) + chr(111) + '\x64' + '\145')(chr(0b1010000 + 0o45) + chr(116) + chr(0b1000111 + 0o37) + '\x2d' + chr(56))] = xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\x9cj\xacS\x18'), '\144' + chr(1053 - 952) + chr(99) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(0b1000000 + 0o64) + chr(0b1100101 + 0o1) + '\055' + chr(56)) r9Xp41HGNpwj = oVre8I6UXc3b.encode_request(pd3lxn9vqWxp.NzveIZ3IlSH9(), []) ekFGDFIe9V8v = oVre8I6UXc3b.send_request(r9Xp41HGNpwj) pd3lxn9vqWxp[xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\x98{\xb1\\\x0ei'), chr(0b1011110 + 0o6) + chr(0b1100101) + chr(0b1000001 + 0o42) + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(101))(chr(117) + '\x74' + chr(0b10011 + 0o123) + chr(0b101101) + chr(2699 - 2643))] = xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x8cz\xa8\\\x15'), chr(6225 - 6125) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(8360 - 8259))('\165' + chr(0b1011110 + 0o26) + '\x66' + chr(45) + chr(0b111000)) r9Xp41HGNpwj = oVre8I6UXc3b.encode_request(pd3lxn9vqWxp.NzveIZ3IlSH9(), []) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x9cv\xa1j\x13b02\xd4\xa4\xc5'), chr(0b1100100) + '\x65' + chr(99) + '\x6f' + chr(6634 - 6534) + '\x65')('\x75' + chr(0b111111 + 0o65) + '\x66' + chr(0b101101) + chr(2826 - 2770)))(r9Xp41HGNpwj)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex._reader
def _reader(self, name, stream, outbuf): """ Thread runner for reading lines of from a subprocess into a buffer. :param name: The logical name of the stream (used for logging only). :param stream: The stream to read from. This will typically a pipe connected to the output stream of a subprocess. :param outbuf: The list to append the read lines to. """ while True: s = stream.readline() if not s: break s = s.decode('utf-8').rstrip() outbuf.append(s) logger.debug('%s: %s' % (name, s)) stream.close()
python
def _reader(self, name, stream, outbuf): """ Thread runner for reading lines of from a subprocess into a buffer. :param name: The logical name of the stream (used for logging only). :param stream: The stream to read from. This will typically a pipe connected to the output stream of a subprocess. :param outbuf: The list to append the read lines to. """ while True: s = stream.readline() if not s: break s = s.decode('utf-8').rstrip() outbuf.append(s) logger.debug('%s: %s' % (name, s)) stream.close()
[ "def", "_reader", "(", "self", ",", "name", ",", "stream", ",", "outbuf", ")", ":", "while", "True", ":", "s", "=", "stream", ".", "readline", "(", ")", "if", "not", "s", ":", "break", "s", "=", "s", ".", "decode", "(", "'utf-8'", ")", ".", "rstrip", "(", ")", "outbuf", ".", "append", "(", "s", ")", "logger", ".", "debug", "(", "'%s: %s'", "%", "(", "name", ",", "s", ")", ")", "stream", ".", "close", "(", ")" ]
Thread runner for reading lines of from a subprocess into a buffer. :param name: The logical name of the stream (used for logging only). :param stream: The stream to read from. This will typically a pipe connected to the output stream of a subprocess. :param outbuf: The list to append the read lines to.
[ "Thread", "runner", "for", "reading", "lines", "of", "from", "a", "subprocess", "into", "a", "buffer", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L134-L150
train
A thread that reads lines of from a subprocess into a buffer.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u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c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + '\x33' + '\067' + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + chr(8113 - 8002) + chr(0b101111 + 0o3) + chr(0b101 + 0o53) + chr(1151 - 1096), 60301 - 60293), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + chr(244 - 193) + '\066' + chr(2605 - 2552), 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(111) + chr(50) + '\x31' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\061' + chr(55), 55263 - 55255), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1934 - 1884) + chr(53) + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b11101 + 0o25) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3175 - 3064) + chr(0b110111) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(11831 - 11720) + chr(1137 - 1086) + '\060' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(0b110010) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + '\x32' + '\x37' + chr(0b100010 + 0o20), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(514 - 463) + chr(783 - 729) + '\x31', 42325 - 42317), ehT0Px3KOsy9(chr(1782 - 1734) + chr(8514 - 8403) + chr(0b100101 + 0o16) + '\066' + '\x37', 0o10), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111) + chr(53) + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b10 + 0o155) + '\x31' + chr(1181 - 1129) + chr(55), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110010 + 0o0) + chr(0b110010) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6512 - 6401) + '\x37' + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b10111 + 0o34) + '\x34' + chr(0b110000 + 0o0), 42686 - 42678), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11010 + 0o30) + '\x32' + '\x37', 29081 - 29073), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(6230 - 6119) + '\x32' + '\061' + '\061', 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + '\061' + chr(50) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10100 + 0o37) + '\060' + chr(51), 8168 - 8160), ehT0Px3KOsy9(chr(1699 - 1651) + chr(0b1101111) + chr(50) + '\067' + '\063', 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(5005 - 4894) + chr(1916 - 1866) + chr(0b110100) + chr(139 - 91), 0b1000), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b1101111) + '\x33' + chr(55) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b10000 + 0o137) + '\063' + chr(2298 - 2246) + chr(0b100010 + 0o16), 8), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + '\062' + '\067' + chr(1295 - 1247), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10100 + 0o35) + chr(0b110011) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\060', 61459 - 61451), ehT0Px3KOsy9(chr(671 - 623) + chr(7061 - 6950) + chr(251 - 200) + chr(1388 - 1338) + '\065', 12102 - 12094), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b100011 + 0o23) + chr(1147 - 1094), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010101 + 0o32) + chr(0b101010 + 0o7) + chr(0b110000) + '\x30', 1689 - 1681), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101 + 0o56) + chr(0b10000 + 0o46) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1011000 + 0o27) + chr(0b110 + 0o54) + '\x34' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b10110 + 0o131) + chr(49) + chr(0b100011 + 0o23) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100 + 0o57) + chr(51) + chr(899 - 847), 40582 - 40574), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(5353 - 5242) + '\x31' + '\063' + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100110 + 0o11) + chr(49) + chr(0b110010) + chr(51), 8), ehT0Px3KOsy9(chr(509 - 461) + chr(562 - 451) + chr(49) + '\x32' + '\066', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1010 + 0o53) + '\x30', 19674 - 19666)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2'), chr(4461 - 4361) + '\145' + chr(0b11 + 0o140) + chr(0b101001 + 0o106) + chr(0b1100100) + '\145')(chr(117) + '\164' + chr(0b1100110) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def fXkcLuM0So68(oVre8I6UXc3b, AIvJRzLdDfgF, Mj3LKRMxKCNZ, hSBpRk1boFl6): while ehT0Px3KOsy9(chr(0b0 + 0o60) + '\157' + '\061', 0o10): vGrByMSYMp9h = Mj3LKRMxKCNZ.readline() if not vGrByMSYMp9h: break vGrByMSYMp9h = vGrByMSYMp9h.decode(xafqLlk3kkUe(SXOLrMavuUCe(b'\x89\xf3\x93\xa6\xf7'), chr(3561 - 3461) + chr(0b1100101) + chr(0b1100001 + 0o2) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1000110 + 0o56) + chr(8515 - 8413) + chr(0b10101 + 0o30) + chr(56))).rstrip() xafqLlk3kkUe(hSBpRk1boFl6, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d\xf7\x85\xee\xa1\xce'), chr(4816 - 4716) + chr(0b1100101) + chr(7191 - 7092) + chr(111) + chr(0b101011 + 0o71) + chr(0b1100101))(chr(0b1011011 + 0o32) + chr(5970 - 5854) + chr(0b1010001 + 0o25) + chr(45) + chr(0b10100 + 0o44)))(vGrByMSYMp9h) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\xe2\x97\xfe\xa8'), chr(0b110010 + 0o62) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(1616 - 1515))(chr(0b1110101) + '\164' + chr(3221 - 3119) + chr(328 - 283) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\xf4\xcf\xab\xea\xd9'), chr(100) + chr(101) + chr(2579 - 2480) + chr(111) + chr(0b1100100) + chr(0b1010100 + 0o21))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + '\070') % (AIvJRzLdDfgF, vGrByMSYMp9h)) xafqLlk3kkUe(Mj3LKRMxKCNZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f\xeb\x9a\xf8\xaa'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(0b10110 + 0o137) + chr(0b1011111 + 0o25) + '\x66' + chr(0b101101) + '\x38'))()
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.get_sign_command
def get_sign_command(self, filename, signer, sign_password, keystore=None): """ Return a suitable command for signing a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The signing command as a list suitable to be passed to :class:`subprocess.Popen`. """ cmd = [self.gpg, '--status-fd', '2', '--no-tty'] if keystore is None: keystore = self.gpg_home if keystore: cmd.extend(['--homedir', keystore]) if sign_password is not None: cmd.extend(['--batch', '--passphrase-fd', '0']) td = tempfile.mkdtemp() sf = os.path.join(td, os.path.basename(filename) + '.asc') cmd.extend(['--detach-sign', '--armor', '--local-user', signer, '--output', sf, filename]) logger.debug('invoking: %s', ' '.join(cmd)) return cmd, sf
python
def get_sign_command(self, filename, signer, sign_password, keystore=None): """ Return a suitable command for signing a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The signing command as a list suitable to be passed to :class:`subprocess.Popen`. """ cmd = [self.gpg, '--status-fd', '2', '--no-tty'] if keystore is None: keystore = self.gpg_home if keystore: cmd.extend(['--homedir', keystore]) if sign_password is not None: cmd.extend(['--batch', '--passphrase-fd', '0']) td = tempfile.mkdtemp() sf = os.path.join(td, os.path.basename(filename) + '.asc') cmd.extend(['--detach-sign', '--armor', '--local-user', signer, '--output', sf, filename]) logger.debug('invoking: %s', ' '.join(cmd)) return cmd, sf
[ "def", "get_sign_command", "(", "self", ",", "filename", ",", "signer", ",", "sign_password", ",", "keystore", "=", "None", ")", ":", "cmd", "=", "[", "self", ".", "gpg", ",", "'--status-fd'", ",", "'2'", ",", "'--no-tty'", "]", "if", "keystore", "is", "None", ":", "keystore", "=", "self", ".", "gpg_home", "if", "keystore", ":", "cmd", ".", "extend", "(", "[", "'--homedir'", ",", "keystore", "]", ")", "if", "sign_password", "is", "not", "None", ":", "cmd", ".", "extend", "(", "[", "'--batch'", ",", "'--passphrase-fd'", ",", "'0'", "]", ")", "td", "=", "tempfile", ".", "mkdtemp", "(", ")", "sf", "=", "os", ".", "path", ".", "join", "(", "td", ",", "os", ".", "path", ".", "basename", "(", "filename", ")", "+", "'.asc'", ")", "cmd", ".", "extend", "(", "[", "'--detach-sign'", ",", "'--armor'", ",", "'--local-user'", ",", "signer", ",", "'--output'", ",", "sf", ",", "filename", "]", ")", "logger", ".", "debug", "(", "'invoking: %s'", ",", "' '", ".", "join", "(", "cmd", ")", ")", "return", "cmd", ",", "sf" ]
Return a suitable command for signing a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The signing command as a list suitable to be passed to :class:`subprocess.Popen`.
[ "Return", "a", "suitable", "command", "for", "signing", "a", "file", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L152-L179
train
Returns a command to sign a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker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V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(178 - 124) + '\063', 0b1000), ehT0Px3KOsy9(chr(48) + chr(2008 - 1897) + '\x32' + chr(2196 - 2144) + chr(0b1000 + 0o55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011110 + 0o21) + chr(1436 - 1386) + chr(53) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1100011 + 0o14) + '\061' + '\062', 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + chr(654 - 601) + chr(1890 - 1839), 44224 - 44216), ehT0Px3KOsy9('\x30' + chr(9159 - 9048) + chr(51) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + chr(625 - 575) + '\064', 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110010) + '\x32' + chr(761 - 710), 0b1000), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b10010 + 0o135) + '\x32' + chr(0b110001) + chr(49), 0b1000), ehT0Px3KOsy9(chr(1369 - 1321) + chr(4772 - 4661) + chr(0b10100 + 0o36) + chr(221 - 172) + chr(0b11010 + 0o27), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(1558 - 1508) + '\x36' + '\x34', 53048 - 53040), ehT0Px3KOsy9(chr(1467 - 1419) + '\x6f' + chr(0b110011) + '\063', 8), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1110 + 0o43) + chr(1507 - 1458) + chr(1767 - 1719), 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + '\061' + chr(0b110011 + 0o1) + '\x33', 18314 - 18306), ehT0Px3KOsy9('\060' + chr(11340 - 11229) + '\x32' + chr(1495 - 1445) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b10000 + 0o47) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(1614 - 1566) + chr(0b1101111) + chr(49) + chr(1520 - 1469) + chr(55), 26247 - 26239), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + '\066' + chr(0b111 + 0o57), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b101111 + 0o3), 0o10), ehT0Px3KOsy9(chr(48) + chr(2988 - 2877) + '\x32' + chr(51) + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + chr(0b110011) + chr(1273 - 1224), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x34' + chr(0b100011 + 0o15), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + chr(2274 - 2222) + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(54) + chr(54), 24407 - 24399), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\x6f' + chr(0b110010) + chr(1647 - 1597) + chr(0b110011), 8), ehT0Px3KOsy9(chr(523 - 475) + '\x6f' + chr(0b110101) + chr(0b100011 + 0o22), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\x33' + '\060' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1011101 + 0o22) + chr(0b110011) + chr(0b110101) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(429 - 376) + '\x37', 41581 - 41573), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b10101 + 0o132) + chr(0b1011 + 0o46) + chr(0b110001 + 0o6) + chr(1454 - 1403), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(0b110000) + chr(0b1101 + 0o50), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\063' + chr(739 - 687), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x37', 29554 - 29546), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\064' + chr(0b10100 + 0o36), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b110110 + 0o71) + chr(50) + chr(472 - 418) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(356 - 308) + chr(2692 - 2581) + chr(0b11 + 0o56) + chr(0b11010 + 0o31) + chr(1307 - 1258), 2035 - 2027), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b101 + 0o56) + chr(0b1101 + 0o50) + '\x36', 0b1000), ehT0Px3KOsy9(chr(745 - 697) + chr(0b1010 + 0o145) + '\062' + chr(0b101111 + 0o3) + '\x33', 8), ehT0Px3KOsy9(chr(574 - 526) + '\157' + chr(0b110010) + chr(0b1010 + 0o54) + chr(0b110001), 26848 - 26840)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(11656 - 11545) + chr(451 - 398) + '\060', 4373 - 4365)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdd'), '\144' + chr(0b110001 + 0o64) + chr(6948 - 6849) + chr(0b1001100 + 0o43) + chr(0b1010100 + 0o20) + chr(1574 - 1473))(chr(117) + chr(9682 - 9566) + '\146' + chr(0b101101) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def IoOeaztOWc3W(oVre8I6UXc3b, xw4DsBfIJ22E, GiY7DzoYI7BR, eFvgnN338VXf, ntoT58WsgVDp=None): cTsjNbtiBYNK = [oVre8I6UXc3b.gpg, xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xde~Joa\xe0\xa4\xef\xd0'), '\144' + '\145' + chr(3047 - 2948) + chr(0b1101111) + chr(0b1100100) + chr(0b1000001 + 0o44))(chr(117) + '\x74' + chr(8957 - 8855) + chr(45) + chr(1409 - 1353)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc1'), chr(100) + chr(101) + chr(0b1001001 + 0o32) + chr(0b1101111) + '\x64' + '\145')(chr(0b100000 + 0o125) + chr(0b1110100) + chr(1295 - 1193) + '\055' + chr(0b10110 + 0o42)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xc3e\x06o`\xea'), chr(0b1100100) + chr(5837 - 5736) + chr(99) + '\x6f' + '\144' + '\x65')(chr(10216 - 10099) + chr(0b1110100) + '\x66' + chr(45) + chr(0b100101 + 0o23))] if ntoT58WsgVDp is None: ntoT58WsgVDp = oVre8I6UXc3b.gpg_home if ntoT58WsgVDp: xafqLlk3kkUe(cTsjNbtiBYNK, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xdd\xd9oE\x7f'), chr(100) + chr(0b1100101) + chr(9344 - 9245) + '\157' + '\x64' + chr(6876 - 6775))(chr(117) + '\x74' + '\146' + chr(1591 - 1546) + '\070'))([xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xc5eF~p\xfa\xfb'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + '\144' + chr(101))(chr(8570 - 8453) + '\164' + chr(0b11110 + 0o110) + '\055' + chr(0b111000)), ntoT58WsgVDp]) if eFvgnN338VXf is not None: xafqLlk3kkUe(cTsjNbtiBYNK, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xdd\xd9oE\x7f'), '\x64' + chr(101) + chr(5921 - 5822) + chr(0b1001 + 0o146) + chr(9109 - 9009) + chr(8126 - 8025))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b11011 + 0o22) + chr(0b111000)))([xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xcfk_x|'), '\x64' + chr(5033 - 4932) + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))(chr(10395 - 10278) + '\164' + chr(1119 - 1017) + chr(0b101101) + chr(0b11101 + 0o33)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xddkXhd\xfb\xfb\xe8\xc7~e\x05\xf1'), '\144' + chr(101) + '\x63' + '\157' + chr(6822 - 6722) + '\x65')(chr(0b1110101) + '\164' + chr(9642 - 9540) + chr(0b101101) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc3'), chr(1993 - 1893) + '\145' + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1000011 + 0o62) + '\x74' + chr(0b101000 + 0o76) + chr(0b101101) + chr(0b11111 + 0o31))]) KQXAGRRtq6ty = IvD8hQuFpT7c.mkdtemp() ww7XbU7PlZ_f = oqhJDdMJfuwx.path._oWXztVNnqHF(KQXAGRRtq6ty, oqhJDdMJfuwx.path.g_1BfC8eoU5Q(xw4DsBfIJ22E) + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdd\xc4\xdei'), chr(0b1100100) + chr(1515 - 1414) + chr(0b1100011) + '\x6f' + chr(346 - 246) + '\x65')(chr(117) + chr(10210 - 10094) + chr(0b1100110) + chr(0b101101) + chr(2965 - 2909))) xafqLlk3kkUe(cTsjNbtiBYNK, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\xdd\xd9oE\x7f'), chr(100) + chr(0b1100101) + '\143' + chr(0b111000 + 0o67) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(56)))([xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xc9o_zw\xfb\xa4\xfa\xdd|&'), chr(0b1100100) + '\145' + '\x63' + chr(111) + '\144' + chr(9298 - 9197))('\x75' + chr(0b10001 + 0o143) + chr(0b1010101 + 0o21) + '\055' + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xccxFtf'), chr(3484 - 3384) + chr(0b111011 + 0o52) + '\143' + '\157' + '\144' + '\145')(chr(117) + chr(116) + chr(0b110101 + 0o61) + chr(1350 - 1305) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xc1eHzx\xbe\xfc\xfa\xd1i'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b101011 + 0o71) + chr(1761 - 1660))('\x75' + '\164' + '\146' + chr(45) + chr(56)), GiY7DzoYI7BR, xafqLlk3kkUe(SXOLrMavuUCe(b'\xde\x88\xc2\x7f_ka\xe7'), chr(0b1100100) + chr(0b1100000 + 0o5) + chr(0b10001 + 0o122) + '\157' + chr(0b1100100) + chr(101))('\165' + chr(116) + '\x66' + chr(0b11000 + 0o25) + chr(56)), ww7XbU7PlZ_f, xw4DsBfIJ22E]) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97\xc0\xcf\x7fL'), chr(0b1000110 + 0o36) + chr(101) + chr(5419 - 5320) + chr(111) + '\x64' + '\x65')(chr(117) + '\x74' + '\146' + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\xcb\xdbe@rz\xf4\xb3\xa9\x91h'), chr(0b101 + 0o137) + chr(0b111001 + 0o54) + chr(0b1100011) + chr(5384 - 5273) + '\x64' + chr(0b1100101))('\165' + '\164' + '\x66' + chr(1560 - 1515) + chr(2103 - 2047)), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3'), chr(8725 - 8625) + '\x65' + chr(0b110111 + 0o54) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(3703 - 3586) + chr(0b1000111 + 0o55) + chr(0b1100110) + chr(0b101010 + 0o3) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\xca\xfaRQoB\xdd\xe7\xf8\xfc]'), chr(0b1100100) + '\145' + '\143' + chr(8378 - 8267) + chr(0b110100 + 0o60) + chr(101))('\x75' + chr(4386 - 4270) + chr(4447 - 4345) + chr(45) + chr(2447 - 2391)))(cTsjNbtiBYNK)) return (cTsjNbtiBYNK, ww7XbU7PlZ_f)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.run_command
def run_command(self, cmd, input_data=None): """ Run a command in a child process , passing it any input data specified. :param cmd: The command to run. :param input_data: If specified, this must be a byte string containing data to be sent to the child process. :return: A tuple consisting of the subprocess' exit code, a list of lines read from the subprocess' ``stdout``, and a list of lines read from the subprocess' ``stderr``. """ kwargs = { 'stdout': subprocess.PIPE, 'stderr': subprocess.PIPE, } if input_data is not None: kwargs['stdin'] = subprocess.PIPE stdout = [] stderr = [] p = subprocess.Popen(cmd, **kwargs) # We don't use communicate() here because we may need to # get clever with interacting with the command t1 = Thread(target=self._reader, args=('stdout', p.stdout, stdout)) t1.start() t2 = Thread(target=self._reader, args=('stderr', p.stderr, stderr)) t2.start() if input_data is not None: p.stdin.write(input_data) p.stdin.close() p.wait() t1.join() t2.join() return p.returncode, stdout, stderr
python
def run_command(self, cmd, input_data=None): """ Run a command in a child process , passing it any input data specified. :param cmd: The command to run. :param input_data: If specified, this must be a byte string containing data to be sent to the child process. :return: A tuple consisting of the subprocess' exit code, a list of lines read from the subprocess' ``stdout``, and a list of lines read from the subprocess' ``stderr``. """ kwargs = { 'stdout': subprocess.PIPE, 'stderr': subprocess.PIPE, } if input_data is not None: kwargs['stdin'] = subprocess.PIPE stdout = [] stderr = [] p = subprocess.Popen(cmd, **kwargs) # We don't use communicate() here because we may need to # get clever with interacting with the command t1 = Thread(target=self._reader, args=('stdout', p.stdout, stdout)) t1.start() t2 = Thread(target=self._reader, args=('stderr', p.stderr, stderr)) t2.start() if input_data is not None: p.stdin.write(input_data) p.stdin.close() p.wait() t1.join() t2.join() return p.returncode, stdout, stderr
[ "def", "run_command", "(", "self", ",", "cmd", ",", "input_data", "=", "None", ")", ":", "kwargs", "=", "{", "'stdout'", ":", "subprocess", ".", "PIPE", ",", "'stderr'", ":", "subprocess", ".", "PIPE", ",", "}", "if", "input_data", "is", "not", "None", ":", "kwargs", "[", "'stdin'", "]", "=", "subprocess", ".", "PIPE", "stdout", "=", "[", "]", "stderr", "=", "[", "]", "p", "=", "subprocess", ".", "Popen", "(", "cmd", ",", "*", "*", "kwargs", ")", "# We don't use communicate() here because we may need to", "# get clever with interacting with the command", "t1", "=", "Thread", "(", "target", "=", "self", ".", "_reader", ",", "args", "=", "(", "'stdout'", ",", "p", ".", "stdout", ",", "stdout", ")", ")", "t1", ".", "start", "(", ")", "t2", "=", "Thread", "(", "target", "=", "self", ".", "_reader", ",", "args", "=", "(", "'stderr'", ",", "p", ".", "stderr", ",", "stderr", ")", ")", "t2", ".", "start", "(", ")", "if", "input_data", "is", "not", "None", ":", "p", ".", "stdin", ".", "write", "(", "input_data", ")", "p", ".", "stdin", ".", "close", "(", ")", "p", ".", "wait", "(", ")", "t1", ".", "join", "(", ")", "t2", ".", "join", "(", ")", "return", "p", ".", "returncode", ",", "stdout", ",", "stderr" ]
Run a command in a child process , passing it any input data specified. :param cmd: The command to run. :param input_data: If specified, this must be a byte string containing data to be sent to the child process. :return: A tuple consisting of the subprocess' exit code, a list of lines read from the subprocess' ``stdout``, and a list of lines read from the subprocess' ``stderr``.
[ "Run", "a", "command", "in", "a", "child", "process", "passing", "it", "any", "input", "data", "specified", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L181-L214
train
Runs a command in a child process passing it any input data specified.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,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ZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + chr(0b1000 + 0o54) + chr(0b10101 + 0o35), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b110011 + 0o4), 34276 - 34268), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(53) + chr(0b11101 + 0o26), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1774 - 1725) + '\064', 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\157' + chr(0b101010 + 0o11) + '\060' + '\064', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\x37' + chr(0b100 + 0o60), 0o10), ehT0Px3KOsy9(chr(673 - 625) + chr(0b1101111) + chr(617 - 566) + '\066' + '\x33', 21166 - 21158), ehT0Px3KOsy9(chr(128 - 80) + '\157' + chr(1679 - 1628) + '\063' + chr(51), 0b1000), ehT0Px3KOsy9(chr(80 - 32) + chr(111) + chr(809 - 758) + '\x37' + chr(0b100000 + 0o26), 0b1000), ehT0Px3KOsy9(chr(650 - 602) + chr(653 - 542) + chr(0b110001) + chr(51) + chr(51), 267 - 259), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100110 + 0o11) + chr(0b11011 + 0o27) + chr(0b110110) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + chr(1651 - 1602), 0o10), ehT0Px3KOsy9(chr(48) + chr(3797 - 3686) + chr(0b100111 + 0o12) + chr(49) + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1679 - 1629) + chr(51) + chr(0b11111 + 0o21), 15683 - 15675), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + '\063', 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1101111) + chr(0b101000 + 0o12) + chr(1024 - 974), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b100100 + 0o113) + '\061' + '\x30' + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + chr(2691 - 2638) + '\x32', 0o10), ehT0Px3KOsy9(chr(720 - 672) + chr(11322 - 11211) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + '\064' + '\062', 60089 - 60081), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1914 - 1864) + '\x31' + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + '\064' + chr(0b110011), 24719 - 24711), ehT0Px3KOsy9(chr(0b110000) + chr(10060 - 9949) + '\061' + chr(50) + chr(1420 - 1370), 37600 - 37592), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(2821 - 2767) + chr(963 - 915), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110100), 22186 - 22178), ehT0Px3KOsy9('\060' + '\157' + chr(0b101111 + 0o4) + chr(55) + '\x32', 43870 - 43862), ehT0Px3KOsy9('\060' + chr(111) + '\064' + chr(0b0 + 0o65), 10661 - 10653), ehT0Px3KOsy9('\060' + chr(0b101 + 0o152) + '\063' + chr(0b1100 + 0o51) + chr(1129 - 1074), 0o10), ehT0Px3KOsy9(chr(1799 - 1751) + chr(9589 - 9478) + '\x33' + chr(0b110101) + chr(2541 - 2489), 36468 - 36460), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(960 - 912) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + chr(53) + chr(1844 - 1790), 0o10), ehT0Px3KOsy9(chr(1321 - 1273) + chr(0b1101111) + chr(50) + chr(0b11000 + 0o34) + chr(0b1011 + 0o50), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b11000 + 0o31) + '\061', 39053 - 39045), ehT0Px3KOsy9('\x30' + chr(1337 - 1226) + chr(0b11010 + 0o31) + chr(0b110100) + chr(2353 - 2298), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + '\x34' + chr(0b110011), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110000 + 0o3) + chr(0b110100) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(1808 - 1756) + chr(0b1011 + 0o54), 839 - 831), ehT0Px3KOsy9('\060' + '\x6f' + chr(430 - 380) + chr(0b100101 + 0o16) + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(2786 - 2733), 8389 - 8381), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(50) + '\x37' + chr(54), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11 + 0o55) + '\157' + chr(1240 - 1187) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'L'), '\144' + '\x65' + chr(786 - 687) + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b100010 + 0o13) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def P7USupEMynDR(oVre8I6UXc3b, cTsjNbtiBYNK, CE7M9xPq0X8s=None): M8EIoTs2GJXE = {xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\x0fc\xb1\x88'), chr(0b1010100 + 0o20) + chr(101) + chr(9452 - 9353) + chr(0b1101011 + 0o4) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56)): SorA9b5x63bd.PIPE, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\x0fi\xb6\x8e'), chr(0b1010 + 0o132) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b11010 + 0o113))('\165' + '\x74' + chr(102) + '\055' + chr(56)): SorA9b5x63bd.PIPE} if CE7M9xPq0X8s is not None: M8EIoTs2GJXE[xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\x0fe\xaa'), '\x64' + chr(2657 - 2556) + chr(0b1100011) + chr(3330 - 3219) + chr(5240 - 5140) + chr(0b101001 + 0o74))(chr(0b1110101) + chr(10308 - 10192) + '\146' + chr(248 - 203) + chr(1951 - 1895))] = SorA9b5x63bd.PIPE GnvYj2DgYjeo = [] A3pdyqhrZVRK = [] UyakMW2IMFEj = SorA9b5x63bd.Popen(cTsjNbtiBYNK, **M8EIoTs2GJXE) ePnIUew7NPYz = cWd7MrLpnu4C(target=oVre8I6UXc3b._reader, args=(xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\x0fc\xb1\x88'), '\x64' + '\145' + chr(1009 - 910) + '\157' + chr(0b1100011 + 0o1) + chr(0b1110 + 0o127))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(0b1110 + 0o52)), UyakMW2IMFEj.GnvYj2DgYjeo, GnvYj2DgYjeo)) xafqLlk3kkUe(ePnIUew7NPYz, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\n~\xb0'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(0b11101 + 0o130) + '\164' + chr(102) + chr(0b101101) + '\070'))() kzlXoYCxxWLU = cWd7MrLpnu4C(target=oVre8I6UXc3b._reader, args=(xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\x0fi\xb6\x8e'), chr(100) + chr(0b1100011 + 0o2) + chr(0b1100011) + '\157' + chr(5729 - 5629) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(1733 - 1688) + chr(56)), UyakMW2IMFEj.A3pdyqhrZVRK, A3pdyqhrZVRK)) xafqLlk3kkUe(kzlXoYCxxWLU, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11c\n~\xb0'), '\144' + '\145' + '\x63' + chr(0b111101 + 0o62) + chr(0b1100100) + '\145')(chr(8747 - 8630) + '\164' + '\146' + '\x2d' + chr(56)))() if CE7M9xPq0X8s is not None: xafqLlk3kkUe(UyakMW2IMFEj.stdin, xafqLlk3kkUe(SXOLrMavuUCe(b'\x15e\x02x\xa1'), chr(0b1100100) + '\145' + '\143' + chr(111) + chr(0b1101 + 0o127) + chr(2528 - 2427))('\165' + chr(116) + '\x66' + chr(0b100110 + 0o7) + chr(0b100001 + 0o27)))(CE7M9xPq0X8s) xafqLlk3kkUe(UyakMW2IMFEj.stdin, xafqLlk3kkUe(SXOLrMavuUCe(b'\x01{\x04\x7f\xa1'), chr(193 - 93) + chr(0b1100101) + chr(0b1000001 + 0o42) + chr(4129 - 4018) + chr(0b1100100) + chr(8631 - 8530))(chr(0b1110101) + '\164' + chr(7377 - 7275) + chr(1949 - 1904) + chr(0b111000)))() xafqLlk3kkUe(UyakMW2IMFEj, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0b~\x005\xb3\x9a\x8a\xe3\x90\x16\xf7W'), chr(100) + chr(0b1100000 + 0o5) + chr(6023 - 5924) + chr(0b1101111) + chr(8999 - 8899) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(1168 - 1123) + '\x38'))() xafqLlk3kkUe(ePnIUew7NPYz, xafqLlk3kkUe(SXOLrMavuUCe(b'=x<T\xbe\x88\xa5\x95\x90*\xfaG'), chr(0b1011100 + 0o10) + '\145' + '\143' + '\x6f' + '\x64' + chr(0b1001100 + 0o31))('\165' + chr(0b1110100) + '\x66' + chr(45) + '\x38'))() xafqLlk3kkUe(kzlXoYCxxWLU, xafqLlk3kkUe(SXOLrMavuUCe(b'=x<T\xbe\x88\xa5\x95\x90*\xfaG'), chr(0b1100100) + chr(1636 - 1535) + '\143' + '\157' + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(1615 - 1513) + chr(0b101101) + chr(846 - 790)))() return (xafqLlk3kkUe(UyakMW2IMFEj, xafqLlk3kkUe(SXOLrMavuUCe(b'\x10r\x1fy\xb6\x92\x90\xb4\x9a>'), chr(100) + chr(101) + '\143' + chr(1545 - 1434) + chr(0b1100100) + chr(0b101000 + 0o75))(chr(3516 - 3399) + '\164' + chr(7407 - 7305) + chr(1121 - 1076) + chr(0b111000))), GnvYj2DgYjeo, A3pdyqhrZVRK)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.sign_file
def sign_file(self, filename, signer, sign_password, keystore=None): """ Sign a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in signing. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The absolute pathname of the file where the signature is stored. """ cmd, sig_file = self.get_sign_command(filename, signer, sign_password, keystore) rc, stdout, stderr = self.run_command(cmd, sign_password.encode('utf-8')) if rc != 0: raise DistlibException('sign command failed with error ' 'code %s' % rc) return sig_file
python
def sign_file(self, filename, signer, sign_password, keystore=None): """ Sign a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in signing. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The absolute pathname of the file where the signature is stored. """ cmd, sig_file = self.get_sign_command(filename, signer, sign_password, keystore) rc, stdout, stderr = self.run_command(cmd, sign_password.encode('utf-8')) if rc != 0: raise DistlibException('sign command failed with error ' 'code %s' % rc) return sig_file
[ "def", "sign_file", "(", "self", ",", "filename", ",", "signer", ",", "sign_password", ",", "keystore", "=", "None", ")", ":", "cmd", ",", "sig_file", "=", "self", ".", "get_sign_command", "(", "filename", ",", "signer", ",", "sign_password", ",", "keystore", ")", "rc", ",", "stdout", ",", "stderr", "=", "self", ".", "run_command", "(", "cmd", ",", "sign_password", ".", "encode", "(", "'utf-8'", ")", ")", "if", "rc", "!=", "0", ":", "raise", "DistlibException", "(", "'sign command failed with error '", "'code %s'", "%", "rc", ")", "return", "sig_file" ]
Sign a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in signing. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The absolute pathname of the file where the signature is stored.
[ "Sign", "a", "file", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L216-L237
train
Sign a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc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ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11010 + 0o32) + chr(1446 - 1394), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010 + 0o0) + chr(2052 - 2003) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x31' + '\067' + chr(49), 0o10), ehT0Px3KOsy9(chr(1760 - 1712) + chr(111) + chr(1298 - 1246) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(1009 - 959) + '\067', 38809 - 38801), ehT0Px3KOsy9('\x30' + chr(0b100011 + 0o114) + chr(1532 - 1483) + '\066' + '\066', 38928 - 38920), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + chr(602 - 554) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(1697 - 1649) + chr(0b1101111) + chr(50) + chr(2573 - 2518) + chr(1333 - 1280), 41167 - 41159), ehT0Px3KOsy9(chr(0b110000) + chr(3950 - 3839) + chr(1609 - 1559) + chr(0b101 + 0o56), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(2040 - 1985) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3236 - 3125) + chr(1579 - 1529) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(5235 - 5124) + chr(0b110011) + chr(0b11100 + 0o33) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100011 + 0o14) + chr(575 - 526) + '\x34' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(111) + chr(51) + chr(52) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(8686 - 8575) + '\064' + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1000011 + 0o54) + chr(504 - 453) + '\064' + '\061', 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1101111) + '\x34' + chr(0b110011), 9906 - 9898), ehT0Px3KOsy9(chr(48) + chr(1546 - 1435) + chr(50) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b10110 + 0o33) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(926 - 878) + '\x6f' + chr(457 - 408) + chr(0b110111) + '\062', 0o10), ehT0Px3KOsy9('\x30' + chr(11424 - 11313) + chr(0b110010) + '\x37' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010111 + 0o30) + chr(2306 - 2255) + '\062' + chr(0b100001 + 0o21), 64567 - 64559), ehT0Px3KOsy9('\060' + '\157' + chr(0b110000 + 0o1) + '\x32', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + '\064', 22454 - 22446), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(53) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(0b10011 + 0o134) + chr(0b1001 + 0o52) + chr(0b110001) + chr(0b11111 + 0o30), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\066' + chr(2211 - 2161), 34206 - 34198), ehT0Px3KOsy9(chr(1409 - 1361) + chr(0b1100100 + 0o13) + chr(1496 - 1446) + chr(0b110100) + chr(0b11011 + 0o34), 0b1000), ehT0Px3KOsy9('\x30' + chr(6072 - 5961) + '\x32' + chr(998 - 949) + chr(2049 - 2001), 0o10), ehT0Px3KOsy9(chr(1959 - 1911) + '\x6f' + '\061' + chr(53) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(11495 - 11384) + '\x32' + '\061' + chr(54), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + '\x35' + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1645 - 1594) + '\064' + '\x36', 8), ehT0Px3KOsy9('\060' + chr(0b1011101 + 0o22) + chr(50) + '\x33' + chr(50), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + '\062' + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b100 + 0o153) + chr(51) + chr(0b110000) + chr(512 - 461), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x32' + '\064' + chr(0b1011 + 0o53), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\x34' + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\063' + chr(0b11001 + 0o33) + '\063', 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\x6f' + chr(0b1111 + 0o43) + chr(0b110101) + '\x31', 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1011011 + 0o24) + chr(0b110101) + chr(1485 - 1437), 6224 - 6216)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\n'), chr(0b11011 + 0o111) + chr(7082 - 6981) + '\x63' + chr(111) + '\x64' + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(2144 - 2088)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PpYRQzecESgc(oVre8I6UXc3b, xw4DsBfIJ22E, GiY7DzoYI7BR, eFvgnN338VXf, ntoT58WsgVDp=None): (cTsjNbtiBYNK, nzyq3ytoJEcW) = oVre8I6UXc3b.get_sign_command(xw4DsBfIJ22E, GiY7DzoYI7BR, eFvgnN338VXf, ntoT58WsgVDp) (b4QH1EghD9MY, GnvYj2DgYjeo, A3pdyqhrZVRK) = oVre8I6UXc3b.run_command(cTsjNbtiBYNK, eFvgnN338VXf.encode(xafqLlk3kkUe(SXOLrMavuUCe(b'Q\xff\x1f\x0bo'), '\144' + chr(0b1010000 + 0o25) + chr(0b1010001 + 0o22) + '\x6f' + chr(1098 - 998) + '\145')(chr(117) + chr(0b1110100) + chr(0b1000101 + 0o41) + chr(0b101101) + '\x38'))) if b4QH1EghD9MY != ehT0Px3KOsy9(chr(48) + '\157' + chr(660 - 612), 0o10): raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'W\xe2\x1eHw\x15\xee\xd0~\\x\x9b@\x80C\x88OukZ\xc9\xbb~|\x89\xaa\x00\xd5\xe7\x1c\xae\xcf\x89\xfe\xb0\xe3\x83\x97'), chr(8697 - 8597) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1011 + 0o131) + chr(101))(chr(0b1100 + 0o151) + chr(0b1100101 + 0o17) + '\x66' + '\055' + '\x38') % b4QH1EghD9MY) return nzyq3ytoJEcW
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.upload_documentation
def upload_documentation(self, metadata, doc_dir): """ Upload documentation to the index. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the documentation to be uploaded. :param doc_dir: The pathname of the directory which contains the documentation. This should be the directory that contains the ``index.html`` for the documentation. :return: The HTTP response received from PyPI upon submission of the request. """ self.check_credentials() if not os.path.isdir(doc_dir): raise DistlibException('not a directory: %r' % doc_dir) fn = os.path.join(doc_dir, 'index.html') if not os.path.exists(fn): raise DistlibException('not found: %r' % fn) metadata.validate() name, version = metadata.name, metadata.version zip_data = zip_dir(doc_dir).getvalue() fields = [(':action', 'doc_upload'), ('name', name), ('version', version)] files = [('content', name, zip_data)] request = self.encode_request(fields, files) return self.send_request(request)
python
def upload_documentation(self, metadata, doc_dir): """ Upload documentation to the index. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the documentation to be uploaded. :param doc_dir: The pathname of the directory which contains the documentation. This should be the directory that contains the ``index.html`` for the documentation. :return: The HTTP response received from PyPI upon submission of the request. """ self.check_credentials() if not os.path.isdir(doc_dir): raise DistlibException('not a directory: %r' % doc_dir) fn = os.path.join(doc_dir, 'index.html') if not os.path.exists(fn): raise DistlibException('not found: %r' % fn) metadata.validate() name, version = metadata.name, metadata.version zip_data = zip_dir(doc_dir).getvalue() fields = [(':action', 'doc_upload'), ('name', name), ('version', version)] files = [('content', name, zip_data)] request = self.encode_request(fields, files) return self.send_request(request)
[ "def", "upload_documentation", "(", "self", ",", "metadata", ",", "doc_dir", ")", ":", "self", ".", "check_credentials", "(", ")", "if", "not", "os", ".", "path", ".", "isdir", "(", "doc_dir", ")", ":", "raise", "DistlibException", "(", "'not a directory: %r'", "%", "doc_dir", ")", "fn", "=", "os", ".", "path", ".", "join", "(", "doc_dir", ",", "'index.html'", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "fn", ")", ":", "raise", "DistlibException", "(", "'not found: %r'", "%", "fn", ")", "metadata", ".", "validate", "(", ")", "name", ",", "version", "=", "metadata", ".", "name", ",", "metadata", ".", "version", "zip_data", "=", "zip_dir", "(", "doc_dir", ")", ".", "getvalue", "(", ")", "fields", "=", "[", "(", "':action'", ",", "'doc_upload'", ")", ",", "(", "'name'", ",", "name", ")", ",", "(", "'version'", ",", "version", ")", "]", "files", "=", "[", "(", "'content'", ",", "name", ",", "zip_data", ")", "]", "request", "=", "self", ".", "encode_request", "(", "fields", ",", "files", ")", "return", "self", ".", "send_request", "(", "request", ")" ]
Upload documentation to the index. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the documentation to be uploaded. :param doc_dir: The pathname of the directory which contains the documentation. This should be the directory that contains the ``index.html`` for the documentation. :return: The HTTP response received from PyPI upon submission of the request.
[ "Upload", "documentation", "to", "the", "index", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L296-L322
train
Uploads documentation to the index.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1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FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110010) + '\064', 4614 - 4606), ehT0Px3KOsy9(chr(1699 - 1651) + chr(8630 - 8519) + '\061' + chr(55) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1026 - 974) + chr(0b1110 + 0o43), 19257 - 19249), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(1184 - 1132) + chr(2288 - 2236), ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1010111 + 0o30) + chr(0b110011) + '\064' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x32' + chr(1545 - 1496), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + '\062' + chr(1374 - 1326), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b100010 + 0o16) + chr(1426 - 1375), 19933 - 19925), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\157' + chr(0b110010) + '\x35' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(0b110110) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(75 - 25) + chr(0b10011 + 0o42) + chr(0b1100 + 0o45), 11033 - 11025), ehT0Px3KOsy9(chr(48) + chr(4320 - 4209) + '\x33' + chr(0b110011 + 0o1), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100100 + 0o13) + '\x33' + chr(0b110001) + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b110110 + 0o71) + chr(49) + chr(0b10101 + 0o40) + chr(2183 - 2131), 0o10), ehT0Px3KOsy9('\x30' + chr(6186 - 6075) + '\x33' + chr(49) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1691 - 1642) + '\061' + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b101000 + 0o11) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + chr(51) + chr(54) + chr(236 - 187), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + '\x34' + chr(0b100000 + 0o20), 25875 - 25867), ehT0Px3KOsy9(chr(1118 - 1070) + chr(111) + chr(0b110010 + 0o0) + chr(2150 - 2100) + '\x32', 30646 - 30638), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10010 + 0o37) + '\066' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1691 - 1640) + chr(0b10110 + 0o36) + chr(1797 - 1745), 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(1437 - 1387) + chr(2550 - 2499) + chr(0b11011 + 0o26), 61146 - 61138), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + '\066' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1798 - 1749) + chr(0b110010) + chr(0b11110 + 0o23), 0o10), ehT0Px3KOsy9('\x30' + chr(0b110000 + 0o77) + chr(50) + '\066' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1010010 + 0o35) + chr(0b110011) + '\x31' + chr(51), 8), ehT0Px3KOsy9(chr(1089 - 1041) + chr(11050 - 10939) + chr(0b100100 + 0o22) + chr(0b11010 + 0o26), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1001011 + 0o44) + chr(0b100101 + 0o15) + '\x37' + chr(52), 0o10), ehT0Px3KOsy9(chr(1905 - 1857) + chr(0b1101111) + chr(0b1000 + 0o53) + '\x30' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + '\063' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + '\065' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(10686 - 10575) + '\062' + chr(49) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1010101 + 0o32) + chr(2160 - 2109) + chr(0b110001) + chr(0b1 + 0o64), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(0b1110 + 0o45) + chr(0b110110), 9198 - 9190), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001 + 0o2) + chr(0b110101) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110100) + chr(51), 0b1000), ehT0Px3KOsy9(chr(1513 - 1465) + chr(0b110100 + 0o73) + chr(1590 - 1539) + '\x31' + chr(0b1011 + 0o46), 26198 - 26190), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110111), 26796 - 26788), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(5449 - 5338) + chr(49) + chr(49) + chr(0b101000 + 0o11), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(11774 - 11663) + chr(53) + chr(0b101111 + 0o1), 23160 - 23152)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xba'), chr(950 - 850) + chr(0b1100101) + chr(9141 - 9042) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(567 - 511)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def E5mdHlLl5CzU(oVre8I6UXc3b, mU7wOAGoTnlM, rlBarPIKMXmO): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7\x17D\x87\x88N\xf31\xc8\xd0\xccr\xbf\x05\xae"y'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(0b1001 + 0o132) + chr(0b1100111 + 0o10) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + chr(0b100 + 0o64)))() if not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd\x0cE\x8d\x91'), chr(0b1100100) + chr(101) + chr(0b1011001 + 0o12) + chr(111) + chr(0b110111 + 0o55) + '\145')(chr(3721 - 3604) + chr(0b1110100) + chr(1168 - 1066) + chr(0b101101) + '\070'))(rlBarPIKMXmO): raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfa\x10U\xc4\x821\xf4*\xdf\xd1\xcah\xa4\x1e\xb6t*\xd4\xd2'), chr(0b1100100) + chr(0b10101 + 0o120) + chr(3500 - 3401) + '\x6f' + '\x64' + chr(0b1100100 + 0o1))(chr(0b11000 + 0o135) + '\x74' + chr(0b1110 + 0o130) + '\x2d' + '\070') % rlBarPIKMXmO) wDsB9Ho570J9 = oqhJDdMJfuwx.path._oWXztVNnqHF(rlBarPIKMXmO, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd\x11E\x81\x9b?\xf87\xc0\xd8'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101011 + 0o4) + chr(0b10111 + 0o115) + '\145')('\165' + chr(0b100111 + 0o115) + chr(0b1100110) + '\055' + '\x38')) if not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf1\x07H\x97\x97b'), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(2019 - 1974) + '\x38'))(wDsB9Ho570J9): raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfa\x10U\xc4\x85~\xe5-\xc9\x8e\x899\xb9'), chr(0b1100100) + '\145' + chr(0b110010 + 0o61) + chr(111) + chr(7558 - 7458) + chr(101))('\x75' + chr(116) + '\146' + '\x2d' + chr(56)) % wDsB9Ho570J9) xafqLlk3kkUe(mU7wOAGoTnlM, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\x11k\xa5\x9a`\xdc6\xe6\xc7\xfd-'), chr(0b1100100) + '\145' + chr(0b111100 + 0o47) + chr(1365 - 1254) + '\144' + chr(993 - 892))(chr(0b1000000 + 0o65) + chr(116) + chr(102) + chr(45) + '\070'))() (AIvJRzLdDfgF, cpMfQ_4_Vb7C) = (mU7wOAGoTnlM.AIvJRzLdDfgF, mU7wOAGoTnlM.cpMfQ_4_Vb7C) Ri4xESnDtI7z = UXXfVPBohnH_(rlBarPIKMXmO).getvalue() _yavFU6VJ0wY = [(xafqLlk3kkUe(SXOLrMavuUCe(b'\xae\x1eB\x90\x8a~\xfe'), chr(5631 - 5531) + chr(0b1100101) + '\143' + chr(0b1010 + 0o145) + chr(100) + chr(0b1100 + 0o131))(chr(0b1011011 + 0o32) + chr(0b1110100) + chr(0b1100110) + chr(544 - 499) + chr(1929 - 1873)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\x10B\xbb\x96a\xfc,\xcc\xd0'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(100) + '\145')(chr(117) + '\164' + chr(102) + '\x2d' + '\070')), (xafqLlk3kkUe(SXOLrMavuUCe(b'\xfa\x1eL\x81'), chr(0b1011100 + 0o10) + '\145' + chr(0b1100011) + chr(8468 - 8357) + chr(0b1100100) + chr(0b1100101 + 0o0))('\x75' + '\164' + chr(4293 - 4191) + chr(0b101101) + chr(1295 - 1239)), AIvJRzLdDfgF), (xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\x1aS\x97\x8a~\xfe'), chr(0b100110 + 0o76) + chr(0b1011110 + 0o7) + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)), cpMfQ_4_Vb7C)] uyc48vokp5OE = [(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7\x10O\x90\x86\x7f\xe4'), chr(0b1100100) + chr(1411 - 1310) + chr(0b1100011) + chr(111) + chr(100) + chr(6277 - 6176))(chr(117) + chr(2941 - 2825) + chr(0b111110 + 0o50) + chr(45) + chr(0b111000)), AIvJRzLdDfgF, Ri4xESnDtI7z)] r9Xp41HGNpwj = oVre8I6UXc3b.encode_request(_yavFU6VJ0wY, uyc48vokp5OE) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\x1aO\x80\xbcc\xf52\xd8\xd1\xdah'), chr(0b110011 + 0o61) + chr(9189 - 9088) + chr(1328 - 1229) + chr(111) + chr(5921 - 5821) + '\x65')(chr(0b1110101) + chr(9648 - 9532) + '\x66' + chr(45) + chr(608 - 552)))(r9Xp41HGNpwj)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.get_verify_command
def get_verify_command(self, signature_filename, data_filename, keystore=None): """ Return a suitable command for verifying a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The verifying command as a list suitable to be passed to :class:`subprocess.Popen`. """ cmd = [self.gpg, '--status-fd', '2', '--no-tty'] if keystore is None: keystore = self.gpg_home if keystore: cmd.extend(['--homedir', keystore]) cmd.extend(['--verify', signature_filename, data_filename]) logger.debug('invoking: %s', ' '.join(cmd)) return cmd
python
def get_verify_command(self, signature_filename, data_filename, keystore=None): """ Return a suitable command for verifying a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The verifying command as a list suitable to be passed to :class:`subprocess.Popen`. """ cmd = [self.gpg, '--status-fd', '2', '--no-tty'] if keystore is None: keystore = self.gpg_home if keystore: cmd.extend(['--homedir', keystore]) cmd.extend(['--verify', signature_filename, data_filename]) logger.debug('invoking: %s', ' '.join(cmd)) return cmd
[ "def", "get_verify_command", "(", "self", ",", "signature_filename", ",", "data_filename", ",", "keystore", "=", "None", ")", ":", "cmd", "=", "[", "self", ".", "gpg", ",", "'--status-fd'", ",", "'2'", ",", "'--no-tty'", "]", "if", "keystore", "is", "None", ":", "keystore", "=", "self", ".", "gpg_home", "if", "keystore", ":", "cmd", ".", "extend", "(", "[", "'--homedir'", ",", "keystore", "]", ")", "cmd", ".", "extend", "(", "[", "'--verify'", ",", "signature_filename", ",", "data_filename", "]", ")", "logger", ".", "debug", "(", "'invoking: %s'", ",", "' '", ".", "join", "(", "cmd", ")", ")", "return", "cmd" ]
Return a suitable command for verifying a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The verifying command as a list suitable to be passed to :class:`subprocess.Popen`.
[ "Return", "a", "suitable", "command", "for", "verifying", "a", "file", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L324-L346
train
Returns a list suitable to be passed to subprocess. Popen to verify a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToT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f_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\157' + chr(55) + '\067', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(882 - 829) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101111 + 0o100) + '\061' + chr(0b110100) + chr(0b101001 + 0o15), ord("\x08")), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(11255 - 11144) + chr(0b10101 + 0o34) + chr(2045 - 1994) + chr(0b101111 + 0o1), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + '\x32' + '\x33', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + '\065' + chr(0b1010 + 0o54), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\063' + chr(0b11110 + 0o27) + chr(1661 - 1613), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b10110 + 0o131) + chr(0b110010) + chr(0b110100) + '\065', 0b1000), ehT0Px3KOsy9(chr(760 - 712) + chr(0b100011 + 0o114) + '\x32' + chr(0b110001) + chr(102 - 53), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b101000 + 0o13) + chr(0b110110) + chr(195 - 143), 0o10), ehT0Px3KOsy9('\060' + chr(6072 - 5961) + '\061' + '\x34' + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(53) + chr(0b110000), 11980 - 11972), ehT0Px3KOsy9(chr(1106 - 1058) + chr(0b1000001 + 0o56) + chr(886 - 835) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(2992 - 2937) + '\x35', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(389 - 339), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(3631 - 3520) + '\063' + chr(0b110011) + '\063', 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(111) + '\x31' + '\x30' + '\x31', 14749 - 14741), ehT0Px3KOsy9('\060' + chr(132 - 21) + chr(1384 - 1334) + chr(49) + chr(0b110111), 56948 - 56940), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b10100 + 0o133) + chr(0b11101 + 0o26) + chr(56 - 2) + '\067', 2011 - 2003), ehT0Px3KOsy9('\x30' + chr(0b10011 + 0o134) + '\063' + chr(1205 - 1155) + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1732 - 1682) + chr(0b10100 + 0o36) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + '\x33' + chr(0b110001) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\060' + chr(55), 0b1000), ehT0Px3KOsy9(chr(1918 - 1870) + chr(0b1101111) + chr(53) + chr(1541 - 1486), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010000 + 0o37) + '\x33' + chr(53) + chr(0b110011), 21845 - 21837), ehT0Px3KOsy9(chr(1074 - 1026) + '\x6f' + chr(1865 - 1814) + '\x30' + '\x31', 2708 - 2700), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(905 - 851) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101010 + 0o7) + '\x35' + chr(0b101101 + 0o3), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(620 - 569) + chr(0b110101) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(0b110001) + chr(55), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(1433 - 1385) + chr(0b110000), 25524 - 25516), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(0b10010 + 0o41) + chr(2162 - 2108), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x35' + chr(0b100111 + 0o16), 27504 - 27496), ehT0Px3KOsy9('\060' + chr(0b1010000 + 0o37) + chr(1472 - 1421) + chr(0b101100 + 0o13) + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10000 + 0o137) + chr(50) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011 + 0o144) + chr(426 - 377) + '\067' + chr(0b100111 + 0o17), 0o10), ehT0Px3KOsy9(chr(2023 - 1975) + '\x6f' + chr(0b110001) + '\x35' + '\060', 8), ehT0Px3KOsy9('\060' + chr(111) + '\063' + chr(344 - 295) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1063 - 1012) + chr(0b100100 + 0o17) + chr(81 - 33), 0o10), ehT0Px3KOsy9('\060' + chr(11958 - 11847) + chr(0b110011) + chr(0b1001 + 0o56) + chr(0b11100 + 0o31), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(675 - 627) + chr(8135 - 8024) + chr(53) + chr(0b11100 + 0o24), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x11'), '\x64' + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(0b1100101))('\x75' + '\164' + chr(0b110000 + 0o66) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _OK9hYbYV8vB(oVre8I6UXc3b, GEhoKXkr1fhw, J3NpzUEe22CI, ntoT58WsgVDp=None): cTsjNbtiBYNK = [oVre8I6UXc3b.gpg, xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\x06\x15,2\x1a\x9d\xd6\xa4\x92\x05'), '\144' + '\x65' + chr(0b10100 + 0o117) + chr(0b1101111) + chr(9298 - 9198) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(987 - 942) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\r'), chr(100) + chr(101) + chr(0b1100011) + chr(5541 - 5430) + chr(0b111011 + 0o51) + chr(5197 - 5096))('\x75' + chr(12093 - 11977) + chr(0b1000111 + 0o37) + chr(45) + chr(0b101001 + 0o17)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\x06\x087~\x1a\x9c\xdc'), chr(0b1100100) + '\145' + chr(0b11111 + 0o104) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))] if ntoT58WsgVDp is None: ntoT58WsgVDp = oVre8I6UXc3b.gpg_home if ntoT58WsgVDp: xafqLlk3kkUe(cTsjNbtiBYNK, xafqLlk3kkUe(SXOLrMavuUCe(b'ZS\x12==\n'), '\144' + chr(1837 - 1736) + chr(4688 - 4589) + chr(0b110101 + 0o72) + chr(100) + '\145')(chr(4881 - 4764) + chr(6925 - 6809) + chr(6974 - 6872) + chr(940 - 895) + chr(2794 - 2738)))([xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\x06\x0e7>\x0b\x8c\xcc\xfb'), chr(100) + chr(4771 - 4670) + chr(0b10001 + 0o122) + '\x6f' + '\144' + chr(101))(chr(117) + chr(116) + chr(0b1111 + 0o127) + '\x2d' + chr(2302 - 2246)), ntoT58WsgVDp]) xafqLlk3kkUe(cTsjNbtiBYNK, xafqLlk3kkUe(SXOLrMavuUCe(b'ZS\x12==\n'), '\x64' + '\x65' + chr(0b1001101 + 0o26) + chr(0b101110 + 0o101) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(45) + chr(0b100110 + 0o22)))([xafqLlk3kkUe(SXOLrMavuUCe(b'\x12\x06\x10=!\x07\x8e\xdc'), '\x64' + chr(0b1100101) + chr(0b1000 + 0o133) + '\x6f' + chr(0b101110 + 0o66) + chr(0b1100101))(chr(6847 - 6730) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b101111 + 0o11)), GEhoKXkr1fhw, J3NpzUEe22CI]) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'[N\x04-4'), chr(0b101101 + 0o67) + chr(1434 - 1333) + chr(9684 - 9585) + chr(0b1101111) + chr(3692 - 3592) + '\x65')('\165' + chr(0b1101001 + 0o13) + chr(0b1100011 + 0o3) + chr(1372 - 1327) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'VE\x1078\x07\x86\xc2\xb3\xd4D\xdb'), chr(100) + chr(101) + '\x63' + chr(0b1000 + 0o147) + chr(0b111011 + 0o51) + '\x65')('\165' + '\x74' + chr(0b100101 + 0o101) + chr(1133 - 1088) + chr(0b110100 + 0o4)), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1f'), chr(100) + '\x65' + chr(0b1101 + 0o126) + '\x6f' + chr(0b1100100) + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(0b101111 + 0o11)), xafqLlk3kkUe(SXOLrMavuUCe(b'`D1\x00)\x1a\xbe\xeb\xe7\x85)\xee'), '\144' + chr(0b1010111 + 0o16) + chr(9546 - 9447) + chr(4267 - 4156) + chr(0b1100100) + chr(101))(chr(117) + chr(8695 - 8579) + chr(0b1100110) + chr(0b101101) + chr(56)))(cTsjNbtiBYNK)) return cTsjNbtiBYNK
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.verify_signature
def verify_signature(self, signature_filename, data_filename, keystore=None): """ Verify a signature for a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: True if the signature was verified, else False. """ if not self.gpg: raise DistlibException('verification unavailable because gpg ' 'unavailable') cmd = self.get_verify_command(signature_filename, data_filename, keystore) rc, stdout, stderr = self.run_command(cmd) if rc not in (0, 1): raise DistlibException('verify command failed with error ' 'code %s' % rc) return rc == 0
python
def verify_signature(self, signature_filename, data_filename, keystore=None): """ Verify a signature for a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: True if the signature was verified, else False. """ if not self.gpg: raise DistlibException('verification unavailable because gpg ' 'unavailable') cmd = self.get_verify_command(signature_filename, data_filename, keystore) rc, stdout, stderr = self.run_command(cmd) if rc not in (0, 1): raise DistlibException('verify command failed with error ' 'code %s' % rc) return rc == 0
[ "def", "verify_signature", "(", "self", ",", "signature_filename", ",", "data_filename", ",", "keystore", "=", "None", ")", ":", "if", "not", "self", ".", "gpg", ":", "raise", "DistlibException", "(", "'verification unavailable because gpg '", "'unavailable'", ")", "cmd", "=", "self", ".", "get_verify_command", "(", "signature_filename", ",", "data_filename", ",", "keystore", ")", "rc", ",", "stdout", ",", "stderr", "=", "self", ".", "run_command", "(", "cmd", ")", "if", "rc", "not", "in", "(", "0", ",", "1", ")", ":", "raise", "DistlibException", "(", "'verify command failed with error '", "'code %s'", "%", "rc", ")", "return", "rc", "==", "0" ]
Verify a signature for a file. :param signature_filename: The pathname to the file containing the signature. :param data_filename: The pathname to the file containing the signed data. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: True if the signature was verified, else False.
[ "Verify", "a", "signature", "for", "a", "file", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L348-L371
train
Verify a signature for a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMC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s,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + '\x34' + chr(0b11100 + 0o25), 50553 - 50545), ehT0Px3KOsy9(chr(48) + chr(3184 - 3073) + chr(2019 - 1970) + chr(0b110001) + chr(233 - 178), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(1029 - 978) + '\067' + '\066', 0o10), ehT0Px3KOsy9('\x30' + chr(9834 - 9723) + chr(0b1 + 0o62) + '\066', 57118 - 57110), ehT0Px3KOsy9(chr(1402 - 1354) + '\x6f' + chr(0b110010) + '\x31' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\x33' + chr(1573 - 1520), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(11531 - 11420) + chr(0b110001) + chr(0b110111 + 0o0) + chr(591 - 537), 24588 - 24580), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(48) + chr(49), 0b1000), ehT0Px3KOsy9(chr(2257 - 2209) + chr(3744 - 3633) + chr(0b110101) + chr(2044 - 1992), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110000) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + chr(0b11101 + 0o25) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001100 + 0o43) + chr(51) + chr(560 - 508) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10111 + 0o130) + '\x33' + chr(300 - 252) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(53) + chr(0b1000 + 0o53), 27594 - 27586), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b1011 + 0o51) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b100001 + 0o116) + chr(0b110001) + chr(2155 - 2103) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + '\x30' + chr(390 - 338), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b11001 + 0o126) + chr(0b110100) + '\x34', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11111 + 0o23) + chr(0b1010 + 0o55) + chr(883 - 835), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100101 + 0o15) + chr(772 - 717) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\067' + chr(0b11101 + 0o24), 24379 - 24371), ehT0Px3KOsy9(chr(776 - 728) + chr(0b101010 + 0o105) + '\061' + '\065' + '\x34', 50649 - 50641), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(11030 - 10919) + chr(627 - 577) + chr(0b110011) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\157' + chr(0b110 + 0o55) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b111 + 0o54) + chr(0b101101 + 0o3), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\062' + '\x35' + chr(0b0 + 0o67), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001101 + 0o42) + chr(1427 - 1378) + chr(1190 - 1142) + chr(53), 42839 - 42831), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110111), 46208 - 46200), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1101111) + '\x33' + chr(0b110110) + '\064', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b1010 + 0o52) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(111) + chr(607 - 558) + chr(2622 - 2570) + chr(0b1011 + 0o45), 9980 - 9972), ehT0Px3KOsy9(chr(48) + chr(0b1100 + 0o143) + '\066' + '\x30', 55219 - 55211), ehT0Px3KOsy9('\060' + chr(3050 - 2939) + chr(52) + chr(0b10 + 0o65), 8), ehT0Px3KOsy9('\x30' + chr(111) + chr(1285 - 1236) + chr(51) + chr(1596 - 1545), 0b1000), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + chr(0b110010) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\065' + chr(0b110000 + 0o2), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110000) + '\062', 0b1000), ehT0Px3KOsy9(chr(1156 - 1108) + chr(0b1010 + 0o145) + chr(0b111 + 0o53) + '\062' + '\x36', 36935 - 36927), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + '\060' + chr(0b110001), 27598 - 27590), ehT0Px3KOsy9('\060' + '\157' + chr(55) + chr(50), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(7769 - 7658) + chr(0b110011 + 0o2) + chr(184 - 136), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'O'), '\144' + '\x65' + '\143' + chr(0b1 + 0o156) + chr(4494 - 4394) + chr(0b1011 + 0o132))(chr(0b1001111 + 0o46) + chr(116) + chr(102) + chr(0b10001 + 0o34) + chr(1146 - 1090)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def n3mW59ejs4Uw(oVre8I6UXc3b, GEhoKXkr1fhw, J3NpzUEe22CI, ntoT58WsgVDp=None): if not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x06?\x99'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(2978 - 2862) + chr(3503 - 3401) + chr(0b100111 + 0o6) + '\x38')): raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\x17*\x8cw\xebt\x1d\xe0X\xea\xba\x88\xe2^I\x05\xb2E\xd1\xd3X\x0e\xf4\x7f\xf8\xcd d\x95\x90\x13U\x07<fM\xa2\xe3/[\x17.\x97r\xec\x7f\x12\xe4'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(0b101010 + 0o73))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(456 - 411) + chr(1042 - 986))) cTsjNbtiBYNK = oVre8I6UXc3b.get_verify_command(GEhoKXkr1fhw, J3NpzUEe22CI, ntoT58WsgVDp) (b4QH1EghD9MY, GnvYj2DgYjeo, A3pdyqhrZVRK) = oVre8I6UXc3b.run_command(cTsjNbtiBYNK) if b4QH1EghD9MY not in (ehT0Px3KOsy9(chr(1554 - 1506) + '\157' + chr(0b11000 + 0o30), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001), 52022 - 52014)): raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\x17*\x8cw\xebd^\xe2C\xee\xb8\x87\xacO\x07\x02\xa5M\xd4\xda]L\xefs\xac\xc7eb\x86\x97\x0fB\x078yN\xe7\xb6dI'), '\144' + chr(0b11010 + 0o113) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b101101 + 0o70))('\165' + chr(7897 - 7781) + chr(0b1100110) + '\055' + chr(2982 - 2926)) % b4QH1EghD9MY) return b4QH1EghD9MY == ehT0Px3KOsy9(chr(48) + chr(2744 - 2633) + '\060', 8)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.download_file
def download_file(self, url, destfile, digest=None, reporthook=None): """ This is a convenience method for downloading a file from an URL. Normally, this will be a file from the index, though currently no check is made for this (i.e. a file can be downloaded from anywhere). The method is just like the :func:`urlretrieve` function in the standard library, except that it allows digest computation to be done during download and checking that the downloaded data matched any expected value. :param url: The URL of the file to be downloaded (assumed to be available via an HTTP GET request). :param destfile: The pathname where the downloaded file is to be saved. :param digest: If specified, this must be a (hasher, value) tuple, where hasher is the algorithm used (e.g. ``'md5'``) and ``value`` is the expected value. :param reporthook: The same as for :func:`urlretrieve` in the standard library. """ if digest is None: digester = None logger.debug('No digest specified') else: if isinstance(digest, (list, tuple)): hasher, digest = digest else: hasher = 'md5' digester = getattr(hashlib, hasher)() logger.debug('Digest specified: %s' % digest) # The following code is equivalent to urlretrieve. # We need to do it this way so that we can compute the # digest of the file as we go. with open(destfile, 'wb') as dfp: # addinfourl is not a context manager on 2.x # so we have to use try/finally sfp = self.send_request(Request(url)) try: headers = sfp.info() blocksize = 8192 size = -1 read = 0 blocknum = 0 if "content-length" in headers: size = int(headers["Content-Length"]) if reporthook: reporthook(blocknum, blocksize, size) while True: block = sfp.read(blocksize) if not block: break read += len(block) dfp.write(block) if digester: digester.update(block) blocknum += 1 if reporthook: reporthook(blocknum, blocksize, size) finally: sfp.close() # check that we got the whole file, if we can if size >= 0 and read < size: raise DistlibException( 'retrieval incomplete: got only %d out of %d bytes' % (read, size)) # if we have a digest, it must match. if digester: actual = digester.hexdigest() if digest != actual: raise DistlibException('%s digest mismatch for %s: expected ' '%s, got %s' % (hasher, destfile, digest, actual)) logger.debug('Digest verified: %s', digest)
python
def download_file(self, url, destfile, digest=None, reporthook=None): """ This is a convenience method for downloading a file from an URL. Normally, this will be a file from the index, though currently no check is made for this (i.e. a file can be downloaded from anywhere). The method is just like the :func:`urlretrieve` function in the standard library, except that it allows digest computation to be done during download and checking that the downloaded data matched any expected value. :param url: The URL of the file to be downloaded (assumed to be available via an HTTP GET request). :param destfile: The pathname where the downloaded file is to be saved. :param digest: If specified, this must be a (hasher, value) tuple, where hasher is the algorithm used (e.g. ``'md5'``) and ``value`` is the expected value. :param reporthook: The same as for :func:`urlretrieve` in the standard library. """ if digest is None: digester = None logger.debug('No digest specified') else: if isinstance(digest, (list, tuple)): hasher, digest = digest else: hasher = 'md5' digester = getattr(hashlib, hasher)() logger.debug('Digest specified: %s' % digest) # The following code is equivalent to urlretrieve. # We need to do it this way so that we can compute the # digest of the file as we go. with open(destfile, 'wb') as dfp: # addinfourl is not a context manager on 2.x # so we have to use try/finally sfp = self.send_request(Request(url)) try: headers = sfp.info() blocksize = 8192 size = -1 read = 0 blocknum = 0 if "content-length" in headers: size = int(headers["Content-Length"]) if reporthook: reporthook(blocknum, blocksize, size) while True: block = sfp.read(blocksize) if not block: break read += len(block) dfp.write(block) if digester: digester.update(block) blocknum += 1 if reporthook: reporthook(blocknum, blocksize, size) finally: sfp.close() # check that we got the whole file, if we can if size >= 0 and read < size: raise DistlibException( 'retrieval incomplete: got only %d out of %d bytes' % (read, size)) # if we have a digest, it must match. if digester: actual = digester.hexdigest() if digest != actual: raise DistlibException('%s digest mismatch for %s: expected ' '%s, got %s' % (hasher, destfile, digest, actual)) logger.debug('Digest verified: %s', digest)
[ "def", "download_file", "(", "self", ",", "url", ",", "destfile", ",", "digest", "=", "None", ",", "reporthook", "=", "None", ")", ":", "if", "digest", "is", "None", ":", "digester", "=", "None", "logger", ".", "debug", "(", "'No digest specified'", ")", "else", ":", "if", "isinstance", "(", "digest", ",", "(", "list", ",", "tuple", ")", ")", ":", "hasher", ",", "digest", "=", "digest", "else", ":", "hasher", "=", "'md5'", "digester", "=", "getattr", "(", "hashlib", ",", "hasher", ")", "(", ")", "logger", ".", "debug", "(", "'Digest specified: %s'", "%", "digest", ")", "# The following code is equivalent to urlretrieve.", "# We need to do it this way so that we can compute the", "# digest of the file as we go.", "with", "open", "(", "destfile", ",", "'wb'", ")", "as", "dfp", ":", "# addinfourl is not a context manager on 2.x", "# so we have to use try/finally", "sfp", "=", "self", ".", "send_request", "(", "Request", "(", "url", ")", ")", "try", ":", "headers", "=", "sfp", ".", "info", "(", ")", "blocksize", "=", "8192", "size", "=", "-", "1", "read", "=", "0", "blocknum", "=", "0", "if", "\"content-length\"", "in", "headers", ":", "size", "=", "int", "(", "headers", "[", "\"Content-Length\"", "]", ")", "if", "reporthook", ":", "reporthook", "(", "blocknum", ",", "blocksize", ",", "size", ")", "while", "True", ":", "block", "=", "sfp", ".", "read", "(", "blocksize", ")", "if", "not", "block", ":", "break", "read", "+=", "len", "(", "block", ")", "dfp", ".", "write", "(", "block", ")", "if", "digester", ":", "digester", ".", "update", "(", "block", ")", "blocknum", "+=", "1", "if", "reporthook", ":", "reporthook", "(", "blocknum", ",", "blocksize", ",", "size", ")", "finally", ":", "sfp", ".", "close", "(", ")", "# check that we got the whole file, if we can", "if", "size", ">=", "0", "and", "read", "<", "size", ":", "raise", "DistlibException", "(", "'retrieval incomplete: got only %d out of %d bytes'", "%", "(", "read", ",", "size", ")", ")", "# if we have a digest, it must match.", "if", "digester", ":", "actual", "=", "digester", ".", "hexdigest", "(", ")", "if", "digest", "!=", "actual", ":", "raise", "DistlibException", "(", "'%s digest mismatch for %s: expected '", "'%s, got %s'", "%", "(", "hasher", ",", "destfile", ",", "digest", ",", "actual", ")", ")", "logger", ".", "debug", "(", "'Digest verified: %s'", ",", "digest", ")" ]
This is a convenience method for downloading a file from an URL. Normally, this will be a file from the index, though currently no check is made for this (i.e. a file can be downloaded from anywhere). The method is just like the :func:`urlretrieve` function in the standard library, except that it allows digest computation to be done during download and checking that the downloaded data matched any expected value. :param url: The URL of the file to be downloaded (assumed to be available via an HTTP GET request). :param destfile: The pathname where the downloaded file is to be saved. :param digest: If specified, this must be a (hasher, value) tuple, where hasher is the algorithm used (e.g. ``'md5'``) and ``value`` is the expected value. :param reporthook: The same as for :func:`urlretrieve` in the standard library.
[ "This", "is", "a", "convenience", "method", "for", "downloading", "a", "file", "from", "an", "URL", ".", "Normally", "this", "will", "be", "a", "file", "from", "the", "index", "though", "currently", "no", "check", "is", "made", "for", "this", "(", "i", ".", "e", ".", "a", "file", "can", "be", "downloaded", "from", "anywhere", ")", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L373-L448
train
Download a file from a URL and save it to a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qq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Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(127 - 79) + chr(111) + chr(0b1000 + 0o53) + '\062' + '\067', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(454 - 403) + chr(49), 47418 - 47410), ehT0Px3KOsy9(chr(696 - 648) + '\157' + chr(0b10100 + 0o35) + chr(0b110010) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(6359 - 6248) + chr(0b110001) + '\065' + chr(0b1001 + 0o53), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(49) + chr(48) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(12198 - 12087) + chr(0b110010) + chr(1931 - 1883) + chr(2801 - 2746), 21010 - 21002), ehT0Px3KOsy9('\060' + chr(0b100111 + 0o110) + chr(0b110010) + chr(48) + chr(182 - 133), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(0b101001 + 0o15), 64334 - 64326), ehT0Px3KOsy9('\060' + chr(10891 - 10780) + chr(0b10111 + 0o33) + chr(0b10100 + 0o34) + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111010 + 0o65) + chr(50) + chr(288 - 238) + '\060', 0b1000), ehT0Px3KOsy9(chr(413 - 365) + '\157' + chr(0b110001) + '\061' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(2262 - 2214) + '\157' + chr(0b110010) + chr(49) + chr(0b100010 + 0o16), 988 - 980), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\x6f' + chr(2335 - 2286) + chr(2483 - 2433) + chr(0b100001 + 0o17), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b110110) + chr(527 - 475), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(800 - 749) + chr(921 - 870), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b110000) + chr(972 - 924), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(111) + '\062' + chr(0b110101) + chr(0b100010 + 0o23), 19779 - 19771), ehT0Px3KOsy9(chr(504 - 456) + chr(0b1000111 + 0o50) + chr(0b101101 + 0o5) + chr(49) + chr(53), 40898 - 40890), ehT0Px3KOsy9('\060' + chr(4967 - 4856) + '\x32' + chr(0b11110 + 0o25) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(7604 - 7493) + '\062' + chr(0b110011) + chr(0b10000 + 0o41), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b110111 + 0o0), 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1101111) + '\061' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\157' + chr(0b10110 + 0o34) + chr(0b11110 + 0o25) + chr(50), 0b1000), ehT0Px3KOsy9(chr(710 - 662) + '\x6f' + '\x33' + chr(0b110011) + chr(49), 0o10), ehT0Px3KOsy9(chr(48) + chr(12135 - 12024) + chr(0b111 + 0o54) + chr(0b110101) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + chr(0b10001 + 0o37) + chr(336 - 284), 0o10), ehT0Px3KOsy9(chr(2051 - 2003) + chr(8690 - 8579) + '\061' + chr(52), 0o10), ehT0Px3KOsy9(chr(48) + chr(3491 - 3380) + '\061' + chr(1886 - 1837), 4123 - 4115), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(1152 - 1102) + '\x30', 8), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\x6f' + chr(0b111 + 0o53) + chr(0b110011) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(5478 - 5367) + '\061' + chr(50) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110 + 0o151) + chr(0b101011 + 0o10) + chr(0b10 + 0o62) + chr(2353 - 2299), 22149 - 22141), ehT0Px3KOsy9(chr(335 - 287) + '\x6f' + chr(0b11000 + 0o31) + '\061' + '\x30', 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000) + chr(51), 5206 - 5198), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110 + 0o53) + chr(0b110000), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(57 - 7) + '\063' + chr(55), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2470 - 2415) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(1640 - 1592) + chr(0b1101111) + chr(52) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(1391 - 1343) + '\157' + chr(49) + '\067' + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\157' + '\063' + chr(55) + '\066', 8120 - 8112)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(399 - 351) + chr(0b1101111) + '\x35' + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9'), '\x64' + '\x65' + chr(0b10011 + 0o120) + chr(111) + chr(0b10000 + 0o124) + chr(0b101001 + 0o74))('\x75' + '\x74' + '\146' + chr(45) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def kacAZuJlkC3G(oVre8I6UXc3b, CYCr3xzMHl4K, B9vaNCRsIMPK, iZmz0GueQtBv=None, lXxKZNq6jz0a=None): if iZmz0GueQtBv is None: IchHBkWVHo7Z = None xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3|0\x19%'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b101110 + 0o66) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(1715 - 1670) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x99vr\x08+\xe0\xe4m\xf1\xb0;\xf85\xd7r\xe6\xc4\xe8\xfb'), '\x64' + chr(101) + chr(0b110000 + 0o63) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101 + 0o0) + chr(0b1110100) + chr(102) + chr(45) + chr(56))) else: if PlSM16l2KDPD(iZmz0GueQtBv, (YyaZ4tpXu4lf, KNyTy8rYcwji)): (mEXDiz1phBqz, iZmz0GueQtBv) = iZmz0GueQtBv else: mEXDiz1phBqz = xafqLlk3kkUe(SXOLrMavuUCe(b'\xba}g'), chr(100) + chr(10064 - 9963) + chr(99) + chr(12275 - 12164) + '\144' + chr(0b1100101))('\x75' + '\164' + chr(6215 - 6113) + chr(1873 - 1828) + chr(0b101101 + 0o13)) IchHBkWVHo7Z = xafqLlk3kkUe(sNzNrLIR8V9g, mEXDiz1phBqz)() xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3|0\x19%'), '\144' + chr(377 - 276) + chr(3543 - 3444) + chr(111) + chr(3673 - 3573) + chr(101))(chr(5542 - 5425) + chr(1444 - 1328) + chr(5405 - 5303) + '\x2d' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x93p5\t1\xf3\xa1m\xf5\xf5+\xe16\xdd~\xe4\x97\xad\xba\xea'), '\144' + chr(0b1001000 + 0o35) + chr(0b1000100 + 0o37) + chr(0b1101111) + '\x64' + '\145')(chr(13491 - 13374) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b1100 + 0o54)) % iZmz0GueQtBv) with _fwkIVCGgtAN(B9vaNCRsIMPK, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa0{'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(2002 - 1901))(chr(0b111111 + 0o66) + chr(0b1000111 + 0o55) + chr(0b1100110) + '\055' + chr(0b111000))) as gMqCXJtMIPdn: KwCwbWMrkBU7 = oVre8I6UXc3b.send_request(OIfWRB_hTcOp(CYCr3xzMHl4K)) try: Po1zXXTKc_sm = KwCwbWMrkBU7.S7Hxucg7jlZk() pu13gqGUWpFK = ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1011001 + 0o26) + chr(0b110010) + chr(2026 - 1978) + chr(0b1010 + 0o46) + chr(0b110000) + chr(0b110000), ord("\x08")) NLcc3BCJnQka = -ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\x6f' + chr(2107 - 2058), ord("\x08")) U6MiWrhuCi2Y = ehT0Px3KOsy9('\x30' + '\x6f' + chr(703 - 655), 47394 - 47386) KNawWvJJW4mZ = ehT0Px3KOsy9(chr(364 - 316) + chr(0b110111 + 0o70) + '\060', 8) if xafqLlk3kkUe(SXOLrMavuUCe(b"\xb4v<\x18'\xe9\xf53\xe9\xf5&\xef$\xdc"), chr(100) + '\145' + '\x63' + '\157' + '\144' + chr(0b1100101))('\x75' + '\164' + chr(6657 - 6555) + chr(0b101101) + chr(56)) in Po1zXXTKc_sm: NLcc3BCJnQka = ehT0Px3KOsy9(Po1zXXTKc_sm[xafqLlk3kkUe(SXOLrMavuUCe(b"\x94v<\x18'\xe9\xf53\xc9\xf5&\xef$\xdc"), '\144' + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1001110 + 0o27))('\165' + '\x74' + '\x66' + '\x2d' + '\x38')]) if lXxKZNq6jz0a: lXxKZNq6jz0a(KNawWvJJW4mZ, pu13gqGUWpFK, NLcc3BCJnQka) while ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(111) + chr(0b110001), 8): cid3MTmW5yAA = KwCwbWMrkBU7.U6MiWrhuCi2Y(pu13gqGUWpFK) if not cid3MTmW5yAA: break U6MiWrhuCi2Y += c2A0yzQpDQB3(cid3MTmW5yAA) xafqLlk3kkUe(gMqCXJtMIPdn, xafqLlk3kkUe(SXOLrMavuUCe(b"\xa0k;\x18'"), chr(0b1100100) + chr(101) + chr(8511 - 8412) + chr(0b101 + 0o152) + chr(0b1001101 + 0o27) + '\145')(chr(12855 - 12738) + '\x74' + '\x66' + '\x2d' + chr(56)))(cid3MTmW5yAA) if IchHBkWVHo7Z: xafqLlk3kkUe(IchHBkWVHo7Z, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8dm\x13)+\xc9\xcbp\xfc\xa4-\xb8'), chr(0b1100100) + '\145' + '\x63' + '\157' + chr(0b11101 + 0o107) + '\x65')(chr(117) + '\164' + chr(0b1000011 + 0o43) + chr(1903 - 1858) + chr(2100 - 2044)))(cid3MTmW5yAA) KNawWvJJW4mZ += ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49), 8) if lXxKZNq6jz0a: lXxKZNq6jz0a(KNawWvJJW4mZ, pu13gqGUWpFK, NLcc3BCJnQka) finally: xafqLlk3kkUe(KwCwbWMrkBU7, xafqLlk3kkUe(SXOLrMavuUCe(b"\xb4u=\x1f'"), '\x64' + '\145' + '\x63' + '\157' + chr(1657 - 1557) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + '\x2d' + '\070'))() if NLcc3BCJnQka >= ehT0Px3KOsy9(chr(1176 - 1128) + '\x6f' + chr(48), 8) and U6MiWrhuCi2Y < NLcc3BCJnQka: raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5|&\x1e+\xe2\xf7\x7f\xe9\xb0!\xe63\xdbv\xf0\xc1\xe8\xeb\xfc%(\xfd\xb6\x9d\xa4cg\xfc\xe1v\xc3,\xe3g\xeaI\x05\x12\x98\xf7<6L \xfe\xf5{\xf6'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(111) + chr(0b1000001 + 0o43) + '\145')(chr(1834 - 1717) + '\x74' + chr(0b1000110 + 0o40) + '\x2d' + '\x38') % (U6MiWrhuCi2Y, NLcc3BCJnQka)) if IchHBkWVHo7Z: wck9zjlQjd4A = IchHBkWVHo7Z.hexdigest() if iZmz0GueQtBv != wck9zjlQjd4A: raise zOvIlQV1u_Sh(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf2jr\x08+\xe0\xe4m\xf1\xb0%\xe1#\xd9z\xf4\xce\xe5\xbf\xffpz\xba\xfc\x9a\xbe,l\xe8\xe83\x85<\xa6l\xbf\x18VQ\xde\xb0v&Lg\xf4'), chr(9490 - 9390) + '\145' + chr(0b100010 + 0o101) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(45) + '\070') % (mEXDiz1phBqz, B9vaNCRsIMPK, iZmz0GueQtBv, wck9zjlQjd4A)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3|0\x19%'), chr(100) + '\145' + chr(6619 - 6520) + '\157' + chr(7668 - 7568) + chr(0b110111 + 0o56))(chr(0b100010 + 0o123) + '\x74' + '\x66' + chr(0b1 + 0o54) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x93p5\t1\xf3\xa1h\xe0\xe2!\xee9\xd1\x7f\xba\x8d\xa8\xec'), chr(100) + '\x65' + '\143' + chr(0b1000011 + 0o54) + chr(7730 - 7630) + chr(0b1100101))(chr(0b1011110 + 0o27) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b1111 + 0o51)), iZmz0GueQtBv)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.send_request
def send_request(self, req): """ Send a standard library :class:`Request` to PyPI and return its response. :param req: The request to send. :return: The HTTP response from PyPI (a standard library HTTPResponse). """ handlers = [] if self.password_handler: handlers.append(self.password_handler) if self.ssl_verifier: handlers.append(self.ssl_verifier) opener = build_opener(*handlers) return opener.open(req)
python
def send_request(self, req): """ Send a standard library :class:`Request` to PyPI and return its response. :param req: The request to send. :return: The HTTP response from PyPI (a standard library HTTPResponse). """ handlers = [] if self.password_handler: handlers.append(self.password_handler) if self.ssl_verifier: handlers.append(self.ssl_verifier) opener = build_opener(*handlers) return opener.open(req)
[ "def", "send_request", "(", "self", ",", "req", ")", ":", "handlers", "=", "[", "]", "if", "self", ".", "password_handler", ":", "handlers", ".", "append", "(", "self", ".", "password_handler", ")", "if", "self", ".", "ssl_verifier", ":", "handlers", ".", "append", "(", "self", ".", "ssl_verifier", ")", "opener", "=", "build_opener", "(", "*", "handlers", ")", "return", "opener", ".", "open", "(", "req", ")" ]
Send a standard library :class:`Request` to PyPI and return its response. :param req: The request to send. :return: The HTTP response from PyPI (a standard library HTTPResponse).
[ "Send", "a", "standard", "library", ":", "class", ":", "Request", "to", "PyPI", "and", "return", "its", "response", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L450-L464
train
Send a standard library request to PyPI and return its response.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB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ot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(111) + chr(78 - 27) + chr(52) + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b101110 + 0o11) + chr(53), 0b1000), ehT0Px3KOsy9(chr(1832 - 1784) + chr(844 - 733) + '\x32' + chr(1146 - 1094), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(888 - 777) + chr(0b110011) + chr(1886 - 1833) + chr(0b100111 + 0o13), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + '\x33' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + chr(0b10101 + 0o35) + chr(53) + chr(396 - 346), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(5477 - 5366) + chr(129 - 78) + '\067' + chr(1348 - 1298), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(8967 - 8856) + chr(51) + chr(0b110001 + 0o2), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11100 + 0o27) + '\x33', 8), ehT0Px3KOsy9(chr(0b110000) + chr(11914 - 11803) + chr(0b101001 + 0o10) + chr(49) + chr(0b11100 + 0o27), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + '\065' + chr(0b110 + 0o61), 57845 - 57837), ehT0Px3KOsy9('\060' + '\157' + chr(2124 - 2074) + chr(1565 - 1516) + chr(49), 2207 - 2199), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(52) + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\061' + chr(50), ord("\x08")), ehT0Px3KOsy9('\060' + chr(7680 - 7569) + '\062' + chr(0b110110) + '\x31', 28695 - 28687), ehT0Px3KOsy9('\060' + chr(6503 - 6392) + chr(0b110101) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + '\062' + chr(0b110001), 29479 - 29471), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100100 + 0o15) + chr(49) + chr(0b11010 + 0o35), 0o10), ehT0Px3KOsy9(chr(709 - 661) + '\x6f' + chr(0b1100 + 0o45) + chr(484 - 432) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b111101 + 0o62) + chr(0b110001) + chr(0b110111) + '\x30', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b110101) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(51) + chr(514 - 465), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(12208 - 12097) + '\063' + '\066' + chr(0b110110), 8645 - 8637), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + '\060' + '\x31', 37610 - 37602), ehT0Px3KOsy9(chr(1161 - 1113) + chr(0b1101111) + chr(1601 - 1552) + chr(0b10111 + 0o37) + chr(0b10001 + 0o40), 0b1000), ehT0Px3KOsy9(chr(1271 - 1223) + chr(2735 - 2624) + '\063' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2175 - 2122), 8566 - 8558), ehT0Px3KOsy9(chr(2043 - 1995) + chr(111) + chr(51) + chr(2264 - 2215) + '\061', 0o10), ehT0Px3KOsy9(chr(817 - 769) + chr(0b1101111) + chr(309 - 260) + '\065' + chr(2474 - 2420), 33169 - 33161), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110110) + '\061', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b101011 + 0o6) + '\x34' + chr(574 - 520), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(601 - 550) + '\065' + chr(1093 - 1042), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100101 + 0o112) + chr(2587 - 2536) + chr(0b101101 + 0o4) + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x32' + '\061' + chr(0b110001), 8), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + chr(52) + '\x37', 36567 - 36559), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(2315 - 2264) + chr(0b11 + 0o64) + chr(2257 - 2204), ord("\x08")), ehT0Px3KOsy9(chr(1105 - 1057) + chr(0b1101111) + chr(49) + '\060' + chr(1388 - 1340), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(9961 - 9850) + chr(0b1111 + 0o44) + chr(1015 - 962) + chr(0b110010), 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b100010 + 0o25) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\157' + chr(50) + chr(1625 - 1570) + '\x34', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b101110 + 0o101) + chr(53) + chr(48), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd'), '\144' + chr(5614 - 5513) + chr(0b101 + 0o136) + chr(0b1000101 + 0o52) + chr(100) + '\x65')(chr(0b1110101) + chr(11035 - 10919) + chr(0b110001 + 0o65) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def q79T1kNGW5HP(oVre8I6UXc3b, RaJ10cX5BL3G): s5BdCC_l4nQA = [] if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\x16!\xdb\x9f\xec\x90Q"x\x80\xdc'), '\144' + chr(561 - 460) + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))(chr(0b0 + 0o165) + '\164' + chr(0b1100110) + '\x2d' + chr(321 - 265))): xafqLlk3kkUe(s5BdCC_l4nQA, xafqLlk3kkUe(SXOLrMavuUCe(b'\x82\rd\x8f\xb6\xce'), chr(100) + '\x65' + chr(6906 - 6807) + '\x6f' + chr(0b1010011 + 0o21) + chr(0b1100101))(chr(0b1110100 + 0o1) + chr(0b1100011 + 0o21) + chr(0b1101 + 0o131) + chr(45) + '\x38'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x96\x16!\xdb\x9f\xec\x90Q"x\x80\xdc'), chr(5820 - 5720) + chr(101) + chr(8002 - 7903) + chr(8011 - 7900) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b10101 + 0o137) + chr(0b111100 + 0o52) + chr(0b11111 + 0o16) + chr(56)))) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x90\x0ex\xb5\xae\xcf\x88r}"\x8a\xfb'), chr(0b110010 + 0o62) + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(0b11010 + 0o113))('\x75' + '\164' + chr(102) + chr(0b101 + 0o50) + '\x38')): xafqLlk3kkUe(s5BdCC_l4nQA, xafqLlk3kkUe(SXOLrMavuUCe(b'\x82\rd\x8f\xb6\xce'), '\x64' + chr(0b111101 + 0o50) + chr(0b1100011) + chr(9481 - 9370) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x90\x0ex\xb5\xae\xcf\x88r}"\x8a\xfb'), chr(0b1100100) + '\x65' + '\x63' + '\157' + '\144' + chr(101))(chr(0b1100101 + 0o20) + chr(0b100001 + 0o123) + chr(0b1100110) + chr(0b101101) + '\070'))) CuFtTZs77QON = Jcp2Guq3KYeT(*s5BdCC_l4nQA) return xafqLlk3kkUe(CuFtTZs77QON, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c\rq\x84'), chr(0b1100 + 0o130) + '\x65' + chr(99) + '\157' + chr(0b1100100) + '\145')(chr(0b111101 + 0o70) + '\164' + chr(0b1010000 + 0o26) + chr(0b101101) + '\x38'))(RaJ10cX5BL3G)
pypa/pipenv
pipenv/vendor/distlib/index.py
PackageIndex.encode_request
def encode_request(self, fields, files): """ Encode fields and files for posting to an HTTP server. :param fields: The fields to send as a list of (fieldname, value) tuples. :param files: The files to send as a list of (fieldname, filename, file_bytes) tuple. """ # Adapted from packaging, which in turn was adapted from # http://code.activestate.com/recipes/146306 parts = [] boundary = self.boundary for k, values in fields: if not isinstance(values, (list, tuple)): values = [values] for v in values: parts.extend(( b'--' + boundary, ('Content-Disposition: form-data; name="%s"' % k).encode('utf-8'), b'', v.encode('utf-8'))) for key, filename, value in files: parts.extend(( b'--' + boundary, ('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)).encode('utf-8'), b'', value)) parts.extend((b'--' + boundary + b'--', b'')) body = b'\r\n'.join(parts) ct = b'multipart/form-data; boundary=' + boundary headers = { 'Content-type': ct, 'Content-length': str(len(body)) } return Request(self.url, body, headers)
python
def encode_request(self, fields, files): """ Encode fields and files for posting to an HTTP server. :param fields: The fields to send as a list of (fieldname, value) tuples. :param files: The files to send as a list of (fieldname, filename, file_bytes) tuple. """ # Adapted from packaging, which in turn was adapted from # http://code.activestate.com/recipes/146306 parts = [] boundary = self.boundary for k, values in fields: if not isinstance(values, (list, tuple)): values = [values] for v in values: parts.extend(( b'--' + boundary, ('Content-Disposition: form-data; name="%s"' % k).encode('utf-8'), b'', v.encode('utf-8'))) for key, filename, value in files: parts.extend(( b'--' + boundary, ('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)).encode('utf-8'), b'', value)) parts.extend((b'--' + boundary + b'--', b'')) body = b'\r\n'.join(parts) ct = b'multipart/form-data; boundary=' + boundary headers = { 'Content-type': ct, 'Content-length': str(len(body)) } return Request(self.url, body, headers)
[ "def", "encode_request", "(", "self", ",", "fields", ",", "files", ")", ":", "# Adapted from packaging, which in turn was adapted from", "# http://code.activestate.com/recipes/146306", "parts", "=", "[", "]", "boundary", "=", "self", ".", "boundary", "for", "k", ",", "values", "in", "fields", ":", "if", "not", "isinstance", "(", "values", ",", "(", "list", ",", "tuple", ")", ")", ":", "values", "=", "[", "values", "]", "for", "v", "in", "values", ":", "parts", ".", "extend", "(", "(", "b'--'", "+", "boundary", ",", "(", "'Content-Disposition: form-data; name=\"%s\"'", "%", "k", ")", ".", "encode", "(", "'utf-8'", ")", ",", "b''", ",", "v", ".", "encode", "(", "'utf-8'", ")", ")", ")", "for", "key", ",", "filename", ",", "value", "in", "files", ":", "parts", ".", "extend", "(", "(", "b'--'", "+", "boundary", ",", "(", "'Content-Disposition: form-data; name=\"%s\"; filename=\"%s\"'", "%", "(", "key", ",", "filename", ")", ")", ".", "encode", "(", "'utf-8'", ")", ",", "b''", ",", "value", ")", ")", "parts", ".", "extend", "(", "(", "b'--'", "+", "boundary", "+", "b'--'", ",", "b''", ")", ")", "body", "=", "b'\\r\\n'", ".", "join", "(", "parts", ")", "ct", "=", "b'multipart/form-data; boundary='", "+", "boundary", "headers", "=", "{", "'Content-type'", ":", "ct", ",", "'Content-length'", ":", "str", "(", "len", "(", "body", ")", ")", "}", "return", "Request", "(", "self", ".", "url", ",", "body", ",", "headers", ")" ]
Encode fields and files for posting to an HTTP server. :param fields: The fields to send as a list of (fieldname, value) tuples. :param files: The files to send as a list of (fieldname, filename, file_bytes) tuple.
[ "Encode", "fields", "and", "files", "for", "posting", "to", "an", "HTTP", "server", "." ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/distlib/index.py#L466-L507
train
Encode fields and files for posting to an HTTP server.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeX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M4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(8897 - 8786) + chr(2040 - 1990) + chr(744 - 692) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1101111) + chr(0b110001) + chr(0b10011 + 0o42) + chr(2390 - 2341), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b111 + 0o54) + chr(0b110001 + 0o6) + '\064', 10471 - 10463), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b111 + 0o52) + '\x30' + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\062' + chr(0b110000) + chr(1283 - 1230), 37296 - 37288), ehT0Px3KOsy9('\060' + chr(0b10 + 0o155) + chr(0b101011 + 0o10) + chr(304 - 254) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(50) + '\060' + '\x33', 60665 - 60657), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + chr(0b11000 + 0o31) + chr(0b110100) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1417 - 1366) + chr(48) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(1761 - 1713) + '\x6f' + '\061' + '\x37' + '\x37', 12305 - 12297), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2116 - 2065) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(5868 - 5757) + chr(1453 - 1404) + chr(0b101001 + 0o10) + chr(0b110111), 0o10), ehT0Px3KOsy9('\060' + chr(0b1000110 + 0o51) + '\063' + chr(0b110101) + '\x32', 0o10), ehT0Px3KOsy9('\060' + chr(2067 - 1956) + chr(51) + '\066' + chr(0b110011), 2522 - 2514), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b0 + 0o61) + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b100100 + 0o113) + chr(1168 - 1119) + '\062' + '\065', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + chr(0b110100) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b110010) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(0b110010) + chr(52) + chr(472 - 423), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(55) + chr(169 - 114), 52460 - 52452), ehT0Px3KOsy9('\060' + chr(0b1011101 + 0o22) + chr(0b11110 + 0o24) + '\x32' + '\061', 0o10), ehT0Px3KOsy9('\x30' + chr(5304 - 5193) + chr(956 - 905) + chr(0b100100 + 0o15) + chr(260 - 212), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b100000 + 0o21) + chr(523 - 473), 0b1000), ehT0Px3KOsy9('\x30' + chr(10153 - 10042) + chr(1517 - 1467) + '\067' + '\x32', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(1215 - 1161) + chr(0b110100 + 0o2), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1797 - 1686) + '\063' + chr(0b110011) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(1719 - 1671) + chr(111) + chr(0b110010) + '\x30', 3482 - 3474), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(0b11010 + 0o35) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(111) + '\x31' + chr(0b100110 + 0o17) + chr(0b110110), 50068 - 50060), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + '\065' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(2288 - 2240) + '\157' + chr(52) + '\060', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(0b110010) + chr(0b1011 + 0o47), 0o10), ehT0Px3KOsy9('\x30' + chr(11015 - 10904) + chr(0b1101 + 0o47) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + '\062' + '\x30' + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2810 - 2755) + chr(0b11001 + 0o33), 0b1000), ehT0Px3KOsy9(chr(2013 - 1965) + chr(111) + chr(51) + chr(767 - 716) + chr(104 - 50), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(977 - 924) + chr(0b1100 + 0o51), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x35' + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + '\064' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010100 + 0o33) + '\x33' + '\x35' + chr(57 - 2), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + '\065' + chr(1356 - 1308), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d'), '\144' + '\x65' + chr(0b1010000 + 0o23) + '\157' + chr(8773 - 8673) + '\x65')(chr(117) + '\164' + chr(4377 - 4275) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def u3zjkzxM3M6b(oVre8I6UXc3b, _yavFU6VJ0wY, uyc48vokp5OE): gIfWK5W_pmM4 = [] btzPOzjO3_Wq = oVre8I6UXc3b.boundary for (OolUPRJhRaJd, SPnCNu54H1db) in _yavFU6VJ0wY: if not PlSM16l2KDPD(SPnCNu54H1db, (YyaZ4tpXu4lf, KNyTy8rYcwji)): SPnCNu54H1db = [SPnCNu54H1db] for cMbll0QYhULo in SPnCNu54H1db: xafqLlk3kkUe(gIfWK5W_pmM4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x11\x88#\xeb\xb7'), chr(0b1100001 + 0o3) + chr(0b1010110 + 0o17) + '\x63' + '\x6f' + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(102) + '\055' + '\x38'))((SXOLrMavuUCe(b'\x8eD') + btzPOzjO3_Wq, xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x06\x922\xe0\xbd\xf7L\x81\x16i?\x85\x80`!\xcd\xba\xcf\x85\xb1\xae\xa5\xc8\x9b\xf0t\x1f\x1a\xc8\x1b\xf2K\xe3Q\xbb\xd0\x0f\xc3\x9c\x81'), '\x64' + chr(0b1100010 + 0o3) + '\x63' + chr(0b110010 + 0o75) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1011011 + 0o13) + '\055' + '\x38') % OolUPRJhRaJd, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x07\x9f)\xe1\xb6'), chr(0b1100100) + '\x65' + '\143' + chr(2733 - 2622) + '\x64' + chr(0b1100101))('\165' + '\164' + chr(0b1001110 + 0o30) + chr(0b101010 + 0o3) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\x1d\x9ak\xbd'), chr(0b1100100) + chr(101) + '\143' + chr(9152 - 9041) + chr(0b111101 + 0o47) + '\x65')(chr(7022 - 6905) + '\164' + '\x66' + chr(0b101101) + chr(56))), SXOLrMavuUCe(b''), xafqLlk3kkUe(cMbll0QYhULo, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x07\x9f)\xe1\xb6'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\x1d\x9ak\xbd'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(4951 - 4840) + chr(0b1100100) + chr(8417 - 8316))('\165' + chr(116) + chr(102) + chr(0b101101) + '\070')))) for (K3J4ZwSlE0sT, xw4DsBfIJ22E, QmmgWUB13VCJ) in uyc48vokp5OE: xafqLlk3kkUe(gIfWK5W_pmM4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x11\x88#\xeb\xb7'), '\x64' + '\145' + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + '\055' + chr(2087 - 2031)))((SXOLrMavuUCe(b'\x8eD') + btzPOzjO3_Wq, xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x06\x922\xe0\xbd\xf7L\x81\x16i?\x85\x80`!\xcd\xba\xcf\x85\xb1\xae\xa5\xc8\x9b\xf0t\x1f\x1a\xc8\x1b\xf2K\xe3Q\xbb\xd0\x0f\xc3\x9c\x81R\xdc \xec\xbf\xe6\x0f\xa4\x12\x7fr\xc8\xd6zw'), '\x64' + chr(101) + chr(0b1010110 + 0o15) + '\x6f' + chr(100) + chr(0b1011110 + 0o7))(chr(8745 - 8628) + chr(116) + '\146' + '\x2d' + '\070') % (K3J4ZwSlE0sT, xw4DsBfIJ22E), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x07\x9f)\xe1\xb6'), '\144' + '\x65' + chr(99) + '\157' + chr(100) + chr(101))(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(0b101000 + 0o20)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\x1d\x9ak\xbd'), chr(100) + chr(10174 - 10073) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b0 + 0o55) + chr(56))), SXOLrMavuUCe(b''), QmmgWUB13VCJ)) xafqLlk3kkUe(gIfWK5W_pmM4, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x11\x88#\xeb\xb7'), chr(100) + chr(8486 - 8385) + chr(99) + '\157' + chr(0b110001 + 0o63) + '\x65')(chr(117) + chr(0b101001 + 0o113) + '\x66' + chr(0b101101) + chr(56)))((SXOLrMavuUCe(b'\x8eD') + btzPOzjO3_Wq + SXOLrMavuUCe(b'\x8eD'), SXOLrMavuUCe(b''))) TD8C81EGml3n = SXOLrMavuUCe(b'\xaec')._oWXztVNnqHF(gIfWK5W_pmM4) lRI8N49UnuLF = SXOLrMavuUCe(b'\xce\x1c\x902\xec\xa3\xe2\x13\xb1P| \x98\x9e$1\xc5\xa1\xc0\x84\xb1\xaa\xa5\xcf\x98\xb9q\x0c\x17\x94') + btzPOzjO3_Wq Po1zXXTKc_sm = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x06\x922\xe0\xbd\xf7L\xb1\x06j*'), chr(2862 - 2762) + chr(0b11000 + 0o115) + '\143' + chr(8851 - 8740) + chr(100) + chr(101))(chr(117) + chr(116) + chr(102) + chr(1236 - 1191) + chr(0b111000)): lRI8N49UnuLF, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x06\x922\xe0\xbd\xf7L\xa9\x1at(\x9e\x9b'), chr(0b1111 + 0o125) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(8369 - 8268))(chr(117) + chr(0b110011 + 0o101) + chr(0b0 + 0o146) + chr(1593 - 1548) + chr(0b111000)): M8_cKLkHVB2V(c2A0yzQpDQB3(TD8C81EGml3n))} return OIfWRB_hTcOp(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe00\xbf4\xb6\xab\xf9,\x8d\x13.\x04'), chr(0b1100100) + chr(0b1001010 + 0o33) + '\x63' + chr(10072 - 9961) + chr(0b0 + 0o144) + '\x65')(chr(0b10 + 0o163) + '\x74' + chr(9409 - 9307) + chr(0b1000 + 0o45) + '\070')), TD8C81EGml3n, Po1zXXTKc_sm)
pypa/pipenv
pipenv/vendor/click_completion/core.py
do_bash_complete
def do_bash_complete(cli, prog_name): """Do the completion for bash Parameters ---------- cli : click.Command The main click Command of the program prog_name : str The program name on the command line Returns ------- bool True if the completion was successful, False otherwise """ comp_words = os.environ['COMP_WORDS'] try: cwords = shlex.split(comp_words) quoted = False except ValueError: # No closing quotation cwords = split_args(comp_words) quoted = True cword = int(os.environ['COMP_CWORD']) args = cwords[1:cword] try: incomplete = cwords[cword] except IndexError: incomplete = '' choices = get_choices(cli, prog_name, args, incomplete) if quoted: echo('\t'.join(opt for opt, _ in choices), nl=False) else: echo('\t'.join(re.sub(r"""([\s\\"'()])""", r'\\\1', opt) for opt, _ in choices), nl=False) return True
python
def do_bash_complete(cli, prog_name): """Do the completion for bash Parameters ---------- cli : click.Command The main click Command of the program prog_name : str The program name on the command line Returns ------- bool True if the completion was successful, False otherwise """ comp_words = os.environ['COMP_WORDS'] try: cwords = shlex.split(comp_words) quoted = False except ValueError: # No closing quotation cwords = split_args(comp_words) quoted = True cword = int(os.environ['COMP_CWORD']) args = cwords[1:cword] try: incomplete = cwords[cword] except IndexError: incomplete = '' choices = get_choices(cli, prog_name, args, incomplete) if quoted: echo('\t'.join(opt for opt, _ in choices), nl=False) else: echo('\t'.join(re.sub(r"""([\s\\"'()])""", r'\\\1', opt) for opt, _ in choices), nl=False) return True
[ "def", "do_bash_complete", "(", "cli", ",", "prog_name", ")", ":", "comp_words", "=", "os", ".", "environ", "[", "'COMP_WORDS'", "]", "try", ":", "cwords", "=", "shlex", ".", "split", "(", "comp_words", ")", "quoted", "=", "False", "except", "ValueError", ":", "# No closing quotation", "cwords", "=", "split_args", "(", "comp_words", ")", "quoted", "=", "True", "cword", "=", "int", "(", "os", ".", "environ", "[", "'COMP_CWORD'", "]", ")", "args", "=", "cwords", "[", "1", ":", "cword", "]", "try", ":", "incomplete", "=", "cwords", "[", "cword", "]", "except", "IndexError", ":", "incomplete", "=", "''", "choices", "=", "get_choices", "(", "cli", ",", "prog_name", ",", "args", ",", "incomplete", ")", "if", "quoted", ":", "echo", "(", "'\\t'", ".", "join", "(", "opt", "for", "opt", ",", "_", "in", "choices", ")", ",", "nl", "=", "False", ")", "else", ":", "echo", "(", "'\\t'", ".", "join", "(", "re", ".", "sub", "(", "r\"\"\"([\\s\\\\\"'()])\"\"\"", ",", "r'\\\\\\1'", ",", "opt", ")", "for", "opt", ",", "_", "in", "choices", ")", ",", "nl", "=", "False", ")", "return", "True" ]
Do the completion for bash Parameters ---------- cli : click.Command The main click Command of the program prog_name : str The program name on the command line Returns ------- bool True if the completion was successful, False otherwise
[ "Do", "the", "completion", "for", "bash" ]
cae8d76c210b9777e90aab76e9c4b0e53bb19cde
https://github.com/pypa/pipenv/blob/cae8d76c210b9777e90aab76e9c4b0e53bb19cde/pipenv/vendor/click_completion/core.py#L141-L176
train
Do the completion for bash
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc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ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1010011 + 0o34) + '\x33' + '\062' + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(0b1000 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(703 - 592) + chr(0b110011) + chr(167 - 115) + chr(0b110000 + 0o1), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b110100) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + '\061' + chr(0b1111 + 0o43) + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2362 - 2311) + chr(1714 - 1664) + chr(0b110111), 48684 - 48676), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + chr(813 - 763), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(0b10101 + 0o33) + chr(0b110000 + 0o5), 19509 - 19501), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\x33' + '\x34', 0b1000), ehT0Px3KOsy9('\060' + chr(9990 - 9879) + '\x33' + chr(818 - 766) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(761 - 706) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1060 - 1009) + '\x34' + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b1001001 + 0o46) + chr(616 - 565) + chr(55) + chr(409 - 360), ord("\x08")), ehT0Px3KOsy9(chr(1090 - 1042) + '\x6f' + chr(0b100010 + 0o24) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + chr(1433 - 1384) + '\064' + chr(48), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + chr(52) + '\062', 0b1000), ehT0Px3KOsy9(chr(1642 - 1594) + chr(0b1101111) + chr(0b110101) + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\157' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11110 + 0o24) + chr(2401 - 2350) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + '\067' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(1142 - 1094) + chr(933 - 822) + chr(0b10 + 0o61) + chr(53) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(51) + chr(50), 5908 - 5900), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b11 + 0o60) + chr(0b110011) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b100101 + 0o112) + chr(0b101000 + 0o13) + chr(50) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b11101 + 0o122) + '\063' + '\x37' + '\063', 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1100111 + 0o10) + chr(0b11101 + 0o24) + chr(0b101101 + 0o3) + chr(0b110111), 28661 - 28653), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(51) + chr(55), 59568 - 59560), ehT0Px3KOsy9(chr(48) + chr(0b101000 + 0o107) + chr(0b110011) + chr(0b101110 + 0o11) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b1001 + 0o54) + chr(0b101100 + 0o4), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + '\x32' + '\063' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(1783 - 1732) + chr(0b11000 + 0o32), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1627 - 1578) + chr(0b110010) + chr(0b110100), 8), ehT0Px3KOsy9(chr(681 - 633) + '\157' + chr(1162 - 1112) + chr(0b110001) + chr(411 - 361), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b101011 + 0o104) + chr(0b11111 + 0o22) + '\x36' + '\x34', 21993 - 21985), ehT0Px3KOsy9(chr(48) + chr(0b101 + 0o152) + chr(0b110011) + chr(0b110110) + '\062', 52462 - 52454), ehT0Px3KOsy9(chr(48) + chr(111) + '\x30', 8), ehT0Px3KOsy9(chr(1021 - 973) + chr(0b1101111) + chr(51) + '\066' + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(1187 - 1132) + chr(0b110110), 61311 - 61303), ehT0Px3KOsy9('\060' + chr(111) + '\062' + '\x30' + '\x37', 54445 - 54437), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\x6f' + chr(0b110011) + chr(0b100100 + 0o16) + chr(51), 10516 - 10508)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\x6f' + '\065' + chr(0b110000), 199 - 191)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xfb'), chr(0b1100010 + 0o2) + chr(101) + '\x63' + chr(0b111011 + 0o64) + chr(1147 - 1047) + chr(7427 - 7326))(chr(0b1110101) + chr(0b1001010 + 0o52) + '\146' + chr(0b101001 + 0o4) + chr(2986 - 2930)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def GP1YU39LiY_x(SiR99Ppy5Z8h, X_kxBYNxp356): eR3KIWg97bnZ = oqhJDdMJfuwx.rNK60KZ67nXB[xafqLlk3kkUe(SXOLrMavuUCe(b'\x96V\xac0\x0b\x80E\x17\xd8\xb7'), '\x64' + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(0b110110 + 0o57))(chr(13338 - 13221) + '\x74' + chr(0b101001 + 0o75) + chr(0b101101) + chr(0b111000))] try: NdEwHCpnTqF4 = w0v7VWB72j00.split(eR3KIWg97bnZ) ovrSzraVQFrd = ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\x6f' + chr(906 - 858), 8) except q1QCh3W88sgk: NdEwHCpnTqF4 = qpDyCzq9PlrZ(eR3KIWg97bnZ) ovrSzraVQFrd = ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + '\x31', 63877 - 63869) U135K2jeIxMV = ehT0Px3KOsy9(oqhJDdMJfuwx.rNK60KZ67nXB[xafqLlk3kkUe(SXOLrMavuUCe(b'\x96V\xac0\x0b\x94]\n\xce\xa0'), chr(8484 - 8384) + '\145' + chr(0b101001 + 0o72) + '\157' + '\x64' + '\x65')(chr(0b1110101) + chr(0b100100 + 0o120) + chr(102) + chr(1278 - 1233) + chr(2471 - 2415))]) kJDRfRhcZHjS = NdEwHCpnTqF4[ehT0Px3KOsy9(chr(385 - 337) + chr(0b1001111 + 0o40) + chr(49), 8):U135K2jeIxMV] try: OV4anwHSEt3I = NdEwHCpnTqF4[U135K2jeIxMV] except _fsda0v2_OKU: OV4anwHSEt3I = xafqLlk3kkUe(SXOLrMavuUCe(b''), '\x64' + '\145' + '\143' + chr(3476 - 3365) + chr(100) + chr(0b111101 + 0o50))(chr(117) + chr(0b1100101 + 0o17) + chr(102) + chr(45) + chr(0b101000 + 0o20)) XPnoMuK4S7nS = I5rKA3ltczND(SiR99Ppy5Z8h, X_kxBYNxp356, kJDRfRhcZHjS, OV4anwHSEt3I) if ovrSzraVQFrd: Fm6P_5rksoCH(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc'), chr(0b1010100 + 0o20) + chr(0b1100101) + chr(549 - 450) + chr(0b1101111) + chr(0b1011001 + 0o13) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1000101 + 0o41) + chr(0b11010 + 0o23) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8av\xb68.\xa3\\\x0b\xf2\x95w\xa0'), chr(100) + chr(7212 - 7111) + '\143' + chr(111) + chr(3606 - 3506) + '\x65')(chr(117) + chr(0b1110100) + chr(102) + chr(0b100010 + 0o13) + chr(56)))((PFDxXM_vbSsA for (PFDxXM_vbSsA, VNGQdHSFPrso) in XPnoMuK4S7nS)), nl=ehT0Px3KOsy9('\060' + chr(10762 - 10651) + chr(0b101 + 0o53), 8)) else: Fm6P_5rksoCH(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc'), chr(7966 - 7866) + '\145' + chr(6423 - 6324) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x8av\xb68.\xa3\\\x0b\xf2\x95w\xa0'), chr(9432 - 9332) + chr(0b1100101) + '\143' + chr(0b100000 + 0o117) + chr(0b1100100) + chr(101))(chr(0b10111 + 0o136) + chr(0b1101111 + 0o5) + chr(102) + chr(45) + '\x38'))((xafqLlk3kkUe(_7u55U49WwX2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6l\x83'), chr(0b1100010 + 0o2) + chr(0b1010001 + 0o24) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1011110 + 0o27) + '\164' + chr(7862 - 7760) + '\055' + chr(0b1011 + 0o55)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfdB\xbd\x13\x08\x8b(b\xb4\xcdb\xcf'), chr(0b110000 + 0o64) + chr(7112 - 7011) + chr(6960 - 6861) + chr(0b1101111) + '\x64' + chr(0b1010110 + 0o17))(chr(0b1101101 + 0o10) + chr(116) + chr(102) + chr(0b11100 + 0o21) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x89E\xbdQ'), '\144' + chr(0b1100000 + 0o5) + chr(0b11111 + 0o104) + chr(0b1010110 + 0o31) + chr(5597 - 5497) + chr(9352 - 9251))(chr(0b1110101) + chr(0b1110000 + 0o4) + chr(7562 - 7460) + chr(0b101101) + '\070'), PFDxXM_vbSsA) for (PFDxXM_vbSsA, VNGQdHSFPrso) in XPnoMuK4S7nS)), nl=ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + chr(0b100100 + 0o14), 8)) return ehT0Px3KOsy9(chr(241 - 193) + '\x6f' + chr(49), 8)