Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
î e fG:ã@s&dZddlZddlZddlmZddlmZ ddddd d gZ dd d dd ddd„Z d d dd ddd„Z dd „Z dd„Zdd„ZGdd„dƒZdd„ZGdd „d ƒZdd„Zdd„Zddd„Zedkr"eƒndS) a/Support to pretty-print lists, tuples, & dictionaries recursively. Very simple, but useful, especially in debugging data structures. Classes ------- PrettyPrinter() Handle pretty-printing operations onto a stream using a configured set of formatting parameters. Functions --------- pformat() Format a Python object into a pretty-printed representation. pprint() Pretty-print a Python object to a stream [default is sys.stdout]. saferepr() Generate a 'standard' repr()-like value, but protect against recursive data structures. éN)Ú OrderedDict)ÚStringIOÚpprintÚpformatÚ isreadableÚ isrecursiveÚsafereprÚ PrettyPrinterééPÚcompactFc Cs8td|d|d|d|d|ƒ}|j|ƒdS)zAPretty-print a Python object to a stream [default is sys.stdout].ÚstreamÚindentÚwidthÚdepthr N)r r)Úobjectr rrrr Zprinter©rú+/opt/alt/python34/lib64/python3.4/pprint.pyr.s c Cs(td|d|d|d|ƒj|ƒS)z= 0Nzdepth must be > 0zwidth must be != 0) ÚintÚAssertionErrorÚ_depthÚ_indent_per_levelÚ_widthÚ_streamÚ_sysÚstdoutÚboolÚ_compact)rrrrr r rrrrfs  $      zPrettyPrinter.__init__cCs3|j||jddidƒ|jjdƒdS)NrÚ )Ú_formatr.Úwrite)rrrrrrŠszPrettyPrinter.pprintcCs/tƒ}|j||ddidƒ|jƒS)Nr)Ú _StringIOr4Úgetvalue)rrÚsiorrrrŽs zPrettyPrinter.pformatcCs|j|iddƒdS)Nrr)Úformat)rrrrrr“szPrettyPrinter.isrecursivecCs,|j|iddƒ\}}}|o+| S)Nr)r9)rrÚsÚreadableÚ recursiverrrr–s!zPrettyPrinter.isreadablecCsv|d}t|ƒ}||krK|jt|ƒƒd|_d|_dS|j|||dƒ}t|ƒ} |jd||} t|ƒ| k} |j} | rht | ddƒ} t | t ƒrt| dƒ|j dkrø| |j ddƒnt|ƒ}|rfd||<||j }t | t ƒrEt|jƒƒ}nt|jƒdtƒ}|d\}}|j|||ƒ}| |ƒ| d ƒ|j|||t|ƒd |d||ƒ|dkrOx||dd…D]g\}}|j|||ƒ}| d d||fƒ|j|||t|ƒd |d||ƒqáWn||j }||=n| d ƒdSt | tƒr’| tjksìt | tƒr°| tjksìt | tƒrÎ| tjksìt | tƒrS| tjkrSt|ƒ}t | tƒr| d ƒd}n›t | tƒr<| dƒd}ny|sP| |ƒdS| tkro| dƒd }n4| | jƒ| dƒd}|t| jƒd7}t|dtƒ}|j dkrÜ| |j ddƒn|rd||<|j||||j |d||ƒ||=nt | tƒrE|dkrE| dƒn| |ƒdSt | tƒrht|ƒdkrh| tjkrhg}|jdƒ}|dkr»|d7}| d 8} nx t|ƒD]û\}}t|ƒ}t|ƒ| kr|j|ƒqÈtj d|ƒdg}d}xƒt!dt|ƒd ƒD]i}||||d}||}tt|ƒƒ| kr|r”|jt|ƒƒn|}q:|}q:W|rÈ|jt|ƒƒqÈqÈWt|ƒdkrç| |ƒdS|dkr| dƒnxEt|ƒD]7\}}|dkr:| dd|ƒn| |ƒq W|dkra| dƒndSn| |ƒdS)Nr TFÚ__repr__ú{ú Úkeyrz: rz, %s%s: ú}ú[ú]ú(ú)z({z})ú,z(\s+)Úr3)"rr5Ú _recursionÚ _recursiveÚ _readableÚ_reprrr-ÚlenÚgetattrÚ issubclassÚdictr,Ú _OrderedDictÚlistÚitemsÚsortedr(r4r=ÚtupleÚsetÚ frozensetr"rÚ _format_itemsrÚ splitlinesÚ enumerateÚreprÚappendÚreÚsplitÚrange)rrr rÚ allowanceÚcontextÚlevelÚobjidÚrepÚtypÚ max_widthZsepLinesr5ÚrZlengthrRr@ÚentZendcharZchunksÚlinesÚiÚlineÚpartsZcurrentÚpartÚ candidaterrrr4šsÜ                                  0             zPrettyPrinter._formatcCs|j}dd|}d} |j||d} } xÅ|D]½} |jrÎ|j| ||ƒ} t| ƒd}| |kr•| } | r•|} q•n| |krÎ| |8} || ƒd} || ƒq=qÎn|| ƒ|} |j| |||||ƒq=WdS)Nz, r?rGrz, )r5r-r2rKrLr4)rrRr rr_r`rar5ZdelimnlZdelimrrergrcÚwrrrrWs*           zPrettyPrinter._format_itemscCsR|j||jƒ|j|ƒ\}}}|s<d|_n|rNd|_n|S)NFT)r9Úcopyr+rJrI)rrr`rarZr;r<rrrrK+s  zPrettyPrinter._reprcCst||||ƒS)zÈFormat object for a specific context, returning a string and flags indicating whether the representation is 'readable' and whether the object represents a recursive construct. )r)rrr`Ú maxlevelsrarrrr94szPrettyPrinter.format) r"r#r$rrrrrr4rWrKr9rrrrr es #     z  c!Cs6t|ƒ}|tkrdtjkr:t|ƒddfSd|krhd|krhd}idd6}nd}idd6}|j}tƒ}|j} xJ|D]B} | jƒr¼| | ƒq| || t| ƒdd…ƒƒqWd ||j ƒ|fddfSt |d dƒ} t |t ƒr‰| t j kr‰|s=dSt|ƒ} |rn||krnd d| |kfS| |krt|ƒddfSd|| s˜         '                    rcCsdt|ƒjt|ƒfS)Nz)rr"r)rrrrrH“srHcCs»ddl}|dkrHddddgidd6d d 6fgd }ntƒ}|jƒ}t|iddƒ|jƒ}|j|ƒ|jƒ}td ||ƒtd ||ƒdS)NrÚstringr rééééééi †z _safe_repr:zpformat:)r r)Útimer rrÚprint)rrˆÚpZt1Zt2Zt3rrrÚ _perfcheck˜s  0     r‹Ú__main__)r%r\Úsysr/Ú collectionsrrPÚiorr6Ú__all__rrrrrrr(r rrHr‹r"rrrrÚ#s(       Ù U