|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib/python2.7/site-packages/werkzeug/debug/ |
Upload File : |
�
./�_c @ s1 d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
d d l m Z d d l m Z d d
l m
Z
d d l m Z e � Z e j d � Z e e � Z d
Z d Z d � Z e d � Z d e f d � � YZ e � Z d � Z d e f d � � YZ d S( s�
werkzeug.debug.repr
~~~~~~~~~~~~~~~~~~~
This module implements object representations for debugging purposes.
Unlike the default repr these reprs expose a lot more information and
produce HTML instead of ASCII.
Together with the CSS and JavaScript files of the debugger this gives
a colorful and more compact output.
:copyright: 2007 Pallets
:license: BSD-3-Clause
i����N( t deque( t format_exception_onlyi ( t
integer_types( t iteritems( t PY2( t string_types( t text_type( t escapes (?:\r\n|\r|\n){2,}sL <div class=box>
<h3>%(title)s</h3>
<pre class=help>%(text)s</pre>
</div>sQ <div class=box>
<h3>%(title)s</h3>
%(repr)s
<table>%(items)s</table>
</div>c C s t � j | � S( s9 Creates a debug repr of an object as HTML unicode string.( t DebugReprGeneratort repr( t obj( ( s7 /tmp/pip-install-sTXtzD/Werkzeug/werkzeug/debug/repr.pyt
debug_repr2 s c C sV t � } | t k r3 | j t j d � j � } n | j | � } t j j | � d S( sd Print the object details to stdout._write (for the interactive
console of the web debugger.
i N( R t missingt dump_localst syst _getframet f_localst dump_objectt stdoutt _write( R
t gent rv( ( s7 /tmp/pip-install-sTXtzD/Werkzeug/werkzeug/debug/repr.pyt dump7 s
t _Helperc B s# e Z d Z d � Z d d � Z RS( s� Displays an HTML version of the normal help, for the interactive
debugger only because it requires a patched sys.stdout.
c C s d S( Ns( Type help(object) for help about object.( ( t self( ( s7 /tmp/pip-install-sTXtzD/Werkzeug/werkzeug/debug/repr.pyt __repr__H s c C s� | d k r* t j j d t | � � d Sd d l } | j | � t j j � } t | t � rv | j
d d � } n t j | � } t
| � d k r� | d } d j | d � } n d } | d } t j j t i | d 6| d
6� d S( Ns <span class=help>%s</span>i����s utf-8t ignorei i s
t Helpt titlet text( t NoneR R R R t pydoct helpt resett
isinstancet bytest decodet
_paragraph_ret splitt lent joint HELP_HTML( R t topicR R t
paragraphsR R ( ( s7 /tmp/pip-install-sTXtzD/Werkzeug/werkzeug/debug/repr.pyt __call__K s
N( t __name__t
__module__t __doc__R R R, ( ( ( s7 /tmp/pip-install-sTXtzD/Werkzeug/werkzeug/debug/repr.pyR C s c C s� t | t � r9 x= | D] } t | � | k r | Sq Wn t | � | k rO | Sd } | j j d k rz d | j j } n d | | j j | f S( Nt t __builtin__t
exceptionss <span class="module">%s.</span>s %s%s(%s)( s __builtin__s
exceptions( R"