U a@sddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl m Z ddl m Z ddlmZddlmZddlmZddlmZdd lmZdd lmZdd lmZdd lmZdd lmZddlmZddlmZddlm Z ej!r$ddl"m#Z#ddl$m%Z%ddl&m'Z'e(dZ)e*dZ+e*dZ,dZ-Gddde.ej/e)Z0e1e2ddddZ3GdddeeZ4Gdd d eeZ5Gd!d"d"Z6e6d#Z7e6d$Z8d%d&d'd(d)d*hZ9e2e2e2d+d,d-Z:e;e2d.d/d0Zfe2d1d2d3Z?e2e2d4d5d6Z@ej>e2d7d8d9ZAe2e2d7d:d;ZBd\e2eCejDejEd=d=d>d?d@ZFd]dBeCd=dCdDdEZGd^ejHejIe2ejJfdBejDe2eKejDe2eKejHeKe2fejDejHe eCeLfejDejHeCejMejDe2gejDeCffeKejDejEd=ejDejHejIe2fd=dH dIdJZNejHejIe2fejHejIe2fdBej>d=dKdLdMZOd_e2eKej>dNdOdPZPd`e2eKeKejQe2dQdRdSZRdadTdUZSdVdWZTGdXdYdYeUZVGdZd[d[eWZXdS)bN)datetime)name2codepoint)time)adler32)_DictAccessorProperty)_missing)_parse_signature)_TAccessorValue)Headers)NotFound)RequestedRangeNotSatisfiable) safe_join) url_quote) wrap_file)WSGIEnvironment)RequestResponse_T &([^;]+);z[^A-Za-z0-9_.-]) CONAUXZCOM1ZCOM2ZCOM3ZCOM4ZLPT1ZLPT2ZLPT3PRNNULcs~eZdZdZdejejgefeje eje ddfdd Z e eddddZ de e ed d d Ze dd d dZZS)cached_propertyaA :func:`property` that is only evaluated once. Subsequent access returns the cached value. Setting the property sets the cached value. Deleting the property clears the cached value, accessing it again will evaluate it again. .. code-block:: python class Example: @cached_property def value(self): # calculate something important here return 42 e = Example() e.value # evaluates e.value # uses cache e.value = 16 # sets cache del e.value # clears cache The class must have a ``__dict__`` for this to work. .. versionchanged:: 2.0 ``del obj.name`` clears the cached value. N)fgetnamedocreturncs(tj||d|p|j|_|j|_dS)N)r)super__init____name__ __module__)selfrrr __class__OC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-1tps7o9u\werkzeug\utils.pyr!Ms zcached_property.__init__)objvaluercCs||j|j<dSN__dict__r")r$r)r*r'r'r(__set__Wszcached_property.__set__)r)typercCs>|dkr |S|j|jt}|tkr:||}||j|j<|Sr+)r-getr"rr)r$r)r/r*r'r'r(__get__Zs  zcached_property.__get__r)rcCs|j|j=dSr+r,r$r)r'r'r( __delete__fszcached_property.__delete__)NN)N)r"r# __qualname____doc__tCallableAnyrOptionalstrr!objectr.r/r1r4 __classcell__r'r'r%r(r3s  r)r)rrcCstjdtddt||dS)afInvalidates the cache for a :class:`cached_property`: >>> class Test(object): ... @cached_property ... def magic_number(self): ... print("recalculating...") ... return 42 ... >>> var = Test() >>> var.magic_number recalculating... 42 >>> var.magic_number 42 >>> invalidate_cached_property(var, "magic_number") >>> var.magic_number recalculating... 42 You must pass the name of the cached property as the second argument. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use ``del obj.name`` instead. zk'invalidate_cached_property' is deprecated and will be removed in Werkzeug 2.1. Use 'del obj.name' instead. stacklevelN)warningswarnDeprecationWarningdelattr)r)rr'r'r(invalidate_cached_propertyjs rEc@s$eZdZdZdZdddddZdS) environ_propertyaMaps request attributes to environment variables. This works not only for the Werkzeug request object, but also any other class with an environ attribute: >>> class Test(object): ... environ = {'key': 'value'} ... test = environ_property('key') >>> var = Test() >>> var.test 'value' If you pass it a second value it's used as default if the key does not exist, the third one can be a converter that takes a value and converts it. If it raises :exc:`ValueError` or :exc:`TypeError` the default value is used. If no default value is provided `None` is used. Per default the property is read only. You have to explicitly enable it by passing ``read_only=False`` to the constructor. Trrr2cCs|jSr+)environr3r'r'r(lookupszenviron_property.lookupN)r"r#r5r6Z read_onlyrHr'r'r'r(rFsrFc@s&eZdZdZejdedddZdS)header_propertyz(Like `environ_property` but for headers.)rrr2cCs|jSr+)headersr3r'r'r(rHszheader_property.lookupN)r"r#r5r6r7Unionr rHr'r'r'r(rIsrIc@seZdZdZedZeZ de d<ddddd d d d d dddddddddhZ dddddddddd d!d"h Z d#hZ d$d%hZ d&d'Zd(d)Zd*d+Zed,d-d.Zd/S)0 HTMLBuildera2Helper object for HTML generation. Per default there are two instances of that class. The `html` one, and the `xhtml` one for those two dialects. The class uses keyword parameters and positional parameters to generate small snippets of HTML. Keyword parameters are converted to XML/SGML attributes, positional arguments are used as children. Because Python accepts positional arguments before keyword arguments it's a good idea to use a list with the star-syntax for some children: >>> html.p(class_='foo', *[html.a('foo', href='foo.html'), ' ', ... html.a('bar', href='bar.html')]) '

foo bar

' This class works around some browser limitations and can not be used for arbitrary SGML/XML generation. For that purpose lxml and similar libraries exist. Calling the builder escapes the string passed: >>> html.p(html("")) '

<foo>

' .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. r'ZaposareabasebasefontbrcolcommandembedframehrimginputkeygenisindexlinkmetaparamsourcewbrselectedcheckedcompactZdeclaredeferdisabledismapmultipleZnohrefZnoresizenoshadeZnowraptextareascriptstylecCs ||_dSr+)_dialect)r$dialectr'r'r(r!szHTMLBuilder.__init__cCs"ddl}tjdtdd||S)NrF'utils.HTMLBuilder' is deprecated and will be removed in Werkzeug 2.1.r>r?)htmlrArBrCescape)r$srnr'r'r(__call__szHTMLBuilder.__call__csDddltjdtdddddkr0tfdd}|S)Nrrmr>r?__cs2d}|D]|\}}|dkr$q|ddkr<|dd}|jkrj|sLqjdkrdd|d}q|d}nd|d}|d||7}q|sjkrjdkr|d 7}n|d 7}|S|d 7}dd d |D}|rjkr|}n$jkrjdkrd |d}||dd 7}|S)N<_xhtmlz="" z />>cSsg|]}|dk rt|qSr+)r;.0xr'r'r( $sz:HTMLBuilder.__getattr__..proxy..z /**/z.proxy)rnrArBrCAttributeError)r$rrr'rr( __getattr__s#zHTMLBuilder.__getattr__rcCsdt|jd|jdS)Nrsz for rz)r/r"rkr$r'r'r(__repr__0szHTMLBuilder.__repr__N)r"r#r5r6recompile _entity_rercopyZ _entitiesrrrrr!rqrr;rr'r'r'r(rLsT  0rLrnrvzapplication/ecmascriptzapplication/javascriptzapplication/sqlzapplication/xmlzapplication/xml-dtdz&application/xml-external-parsed-entity)mimetypecharsetrcCs.|ds|tks|dr*|d|7}|S)aLReturns the full content type string with charset for a mimetype. If the mimetype represents text, the charset parameter will be appended, otherwise the mimetype is returned unchanged. :param mimetype: The mimetype to be used as content type. :param charset: The charset to be appended for text mimetypes. :return: The content type. .. versionchanged:: 0.15 Any type that ends with ``+xml`` gets a charset, not just those that start with ``application/``. Known text types such as ``application/javascript`` are also given charsets. ztext/z+xmlz ; charset=) startswith_charset_mimetypesendswith)rrr'r'r(get_content_typeDsr)datarcCstjdtdd|dd}|ddtjkr2dSd|kr>d S|tjtjfkrRd S|ddtjtjfkrnd St |dkr|ddd krd S|ddddkrdS|ddd krdS|ddddkrdSt |dkr| drdSdSd S)aDetect which UTF encoding was used to encode the given bytes. The latest JSON standard (:rfc:`8259`) suggests that only UTF-8 is accepted. Older documents allowed 8, 16, or 32. 16 and 32 can be big or little endian. Some editors or libraries may prepend a BOM. :internal: :param data: Bytes in unknown UTF encoding. :return: UTF encoding name .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. This is built in to :func:`json.loads`. .. versionadded:: 0.15 zj'detect_utf_encoding' is deprecated and will be removed in Werkzeug 2.1. This is built in to 'json.loads'.r>r?Nz utf-8-sigutf-8zutf-32zutf-16sz utf-32-besz utf-16-berz utf-32-lez utf-16-le) rArBrCcodecsBOM_UTF8 BOM_UTF32_BE BOM_UTF32_LE BOM_UTF16_BE BOM_UTF16_LElenr)rheadr'r'r(detect_utf_encoding]s4   r)stringcontextrcCs*ddlm}tjdtdd|||S)akString-template format a string: >>> format_string('$foo and ${foo}s', dict(foo=42)) '42 and 42s' This does not do any attribute lookup. :param string: the format string. :param context: a dict with the variables to insert. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use :class:`string.Template` instead. r)Templatezg'utils.format_string' is deprecated and will be removed in Werkzeug 2.1. Use 'string.Template' instead.r>r?)rrrArBrC substitute)rrrr'r'r( format_strings r)filenamercCstd|}|ddd}tjjtjjfD]}|r.||d}q.t t dd | d}tjdkr|r| d d tkrd|}|S) atPass it a filename and it will return a secure version of it. This filename can then safely be stored on a regular file system and passed to :func:`os.path.join`. The filename returned is an ASCII only string for maximum portability. On windows systems the function also makes sure that the file is not named after one of the special device files. >>> secure_filename("My cool movie.mov") 'My_cool_movie.mov' >>> secure_filename("../../../etc/passwd") 'etc_passwd' >>> secure_filename('i contain cool \xfcml\xe4uts.txt') 'i_contain_cool_umlauts.txt' The function might return an empty filename. It's your responsibility to ensure that the filename is unique and that you abort or generate a random filename if the function returned an empty one. .. versionadded:: 0.5 :param filename: the filename to secure NFKDasciiignoreryrxruz._nt.r) unicodedata normalizeencodedecodeospathsepaltsepreplacer;_filename_ascii_strip_resubrsplitstriprupper_windows_device_files)rrr'r'r(secure_filenames   r)rprcCsVddl}tjdtdd|dkr$dSt|dr6|St|tsHt|}|j|dd S) zReplace ``&``, ``<``, ``>``, ``"``, and ``'`` with HTML-safe sequences. ``None`` is escaped to an empty string. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use MarkupSafe instead. rNzY'utils.escape' is deprecated and will be removed in Werkzeug 2.1. Use MarkupSafe instead.r>r?rx__html__T)quote) rnrArBrChasattrr isinstancer;rorprnr'r'r(ros   rocCs"ddl}tjdtdd||S)zThe reverse of :func:`escape`. This unescapes all the HTML entities, not only those inserted by ``escape``. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use MarkupSafe instead. rNz['utils.unescape' is deprecated and will be removed in Werkzueg 2.1. Use MarkupSafe instead.r>r?)rnrArBrCunescaperr'r'r(rsr.r)locationcoderrcCsxddl}|dkrddlm}||}t|trHddlm}||dd}|d||d |d |d d }||jd <|S)aaReturns a response object (a WSGI application) that, if called, redirects the client to the target location. Supported codes are 301, 302, 303, 305, 307, and 308. 300 is not supported because it's not a real redirect and 304 because it's the answer for a request with a request with defined If-Modified-Since headers. .. versionadded:: 0.6 The location can now be a unicode string that is encoded using the :func:`iri_to_uri` function. .. versionadded:: 0.10 The class used for the Response object can now be passed in. :param location: the location the response should redirect to. :param code: the redirect status code. defaults to 302. :param class Response: a Response class to use when instantiating a response. The default is :class:`werkzeug.wrappers.Response` if unspecified. rNrr) iri_to_uriT)Zsafe_conversionz Redirecting...

Redirecting...

You should be redirected automatically to target URL: z. If not click the link.z text/html)rZLocation) rnwrappersrrorr;urlsrrJ)rrrrnZdisplay_locationrresponser'r'r(redirects      r-r)rGrrcCs8|ddd}|d}|r.|d|7}t||S)a-Redirects to the same URL but with a slash appended. The behavior of this function is undefined if the path ends with a slash already. :param environ: the WSGI environment for the request that triggers the redirect. :param code: the status code for the redirect. Z PATH_INFO/ QUERY_STRING?)rr0r)rGrnew_pathZ query_stringr'r'r(append_slash_redirect?s  rFT) path_or_filerGr as_attachment download_name conditionaletag last_modifiedmax_ageuse_x_sendfileresponse_class _root_pathrc Csd| dkrddlm} | } d} d}d}d}t}t|tjtfsHt|drt tj tjtf|}| dk rxtj | |} n tj |} t| }|j}|j}n|}|dkr| dk rtj | }|dkr|dkrtdt|\}}|dkrd}|dk r|d||dk rz|dWnPtk rntd |}|dd d}t|d d }|d |d}Yn Xd|i}|rdnd}|jd|f|n|rtd| r| dk r| |d<d}nP|dkrt| d}n0t|tjr|j }nt|tj!r t"dt#||}| |||dd}|dk r4||_$|dk rF||_%n|dk rV||_%d|j&_'t(|rp|| }|dk r|dkrd|j&_'d|j&_)||j&_*t+t,||_-t|tr|.|n<|r| dk rt/| dd@}|.|d|d||r`z|j0|d|d}Wn*t1k rD|dk r>|2YnX|j3dkr`|j45dd|S) ae Send the contents of a file to the client. The first argument can be a file path or a file-like object. Paths are preferred in most cases because Werkzeug can manage the file and get extra information from the path. Passing a file-like object requires that the file is opened in binary mode, and is mostly useful when building a file in memory with :class:`io.BytesIO`. Never pass file paths provided by a user. The path is assumed to be trusted, so a user could craft a path to access a file you didn't intend. If the WSGI server sets a ``file_wrapper`` in ``environ``, it is used, otherwise Werkzeug's built-in wrapper is used. Alternatively, if the HTTP server supports ``X-Sendfile``, ``use_x_sendfile=True`` will tell the server to send the given path, which is much more efficient than reading it in Python. :param path_or_file: The path to the file to send, relative to the current working directory if a relative path is given. Alternatively, a file-like object opened in binary mode. Make sure the file pointer is seeked to the start of the data. :param environ: The WSGI environ for the current request. :param mimetype: The MIME type to send for the file. If not provided, it will try to detect it from the file name. :param as_attachment: Indicate to a browser that it should offer to save the file instead of displaying it. :param download_name: The default name browsers will use when saving the file. Defaults to the passed file name. :param conditional: Enable conditional and range responses based on request headers. Requires passing a file path and ``environ``. :param etag: Calculate an ETag for the file, which requires passing a file path. Can also be a string to use instead. :param last_modified: The last modified time to send for the file, in seconds. If not provided, it will try to detect it from the file path. :param max_age: How long the client should cache the file, in seconds. If set, ``Cache-Control`` will be ``public``, otherwise it will be ``no-cache`` to prefer conditional caching. :param use_x_sendfile: Set the ``X-Sendfile`` header to let the server to efficiently send the file. Requires support from the HTTP server. Requires passing a file path. :param response_class: Build the response using this class. Defaults to :class:`~werkzeug.wrappers.Response`. :param _root_path: Do not use. For internal use only. Use :func:`send_from_directory` to safely send files under a path. .. versionadded:: 2.0 Adapted from Flask's implementation. .. versionchanged:: 2.0 ``download_name`` replaces Flask's ``attachment_filename`` parameter. If ``as_attachment=False``, it is passed with ``Content-Disposition: inline`` instead. .. versionchanged:: 2.0 ``max_age`` replaces Flask's ``cache_timeout`` parameter. ``conditional`` is enabled and ``max_age`` is not set by default. .. versionchanged:: 2.0 ``etag`` replaces Flask's ``add_etags`` parameter. It can be a string to use instead of generating one. .. versionchanged:: 2.0 If an encoding is returned when guessing ``mimetype`` from ``download_name``, set the ``Content-Encoding`` header. Nrr __fspath__zUnable to detect the MIME type because a file name is not available. Either set 'download_name', pass a path instead of a file, or set 'mimetype'.zapplication/octet-streamzContent-Encodingrrrrx)safezUTF-8'')rz filename*r attachmentinlinezContent-Dispositionz]No name provided for attachment. Either set 'download_name' or pass a path instead of a file.z X-Sendfilerbz3Files must be opened in binary mode or use BytesIO.T)rrJZdirect_passthroughrrl-)Z accept_rangesZcomplete_lengthi0z x-sendfile)6rrr rrPathLiker;rr7castrKrrabspathstatst_sizest_mtimebasename TypeError mimetypes guess_typesetrUnicodeEncodeErrorrrrropenioBytesIO getbuffernbytes TextIOBase ValueErrorrcontent_lengthrZ cache_controlno_cachecallablepublicrintrexpiresZset_etagrZmake_conditionalr close status_coderJpop)rrGrrrrrrrrrrrrfilesizemtimerJrencodingsimplequotednamesr*rrvcheckr'r'r( send_fileNsT                        r ) directoryrrGkwargsrcKs~tt|t|}|dkr$td|kr>tj|d|}ztj|sRtWntk rntYnXt||f|S)aSend a file from within a directory using :func:`send_file`. This is a secure way to serve files from a folder, such as static files or uploads. Uses :func:`~werkzeug.security.safe_join` to ensure the path coming from the client is not maliciously crafted to point outside the specified directory. If the final path does not point to an existing regular file, returns a 404 :exc:`~werkzeug.exceptions.NotFound` error. :param directory: The directory that ``path`` must be located under. :param path: The path to the file to send, relative to ``directory``. :param environ: The WSGI environ for the current request. :param kwargs: Arguments to pass to :func:`send_file`. .. versionadded:: 2.0 Adapted from Flask's implementation. Nr) rrfspathr rrisfilerr )rrrGrr'r'r(send_from_directory$s   r) import_namesilentrc Cs|dd}zz t|Wntk r8d|kr4YnXtj|WS|dd\}}t|tt|g}zt||WWSt k r}z t|W5d}~XYnXWn>tk r}z |st || t dW5d}~XYnXdS)aCImports an object based on a string. This is useful if you want to use import paths as endpoints or something similar. An import path can be specified either in dotted notation (``xml.sax.saxutils.escape``) or with a colon as object delimiter (``xml.sax.saxutils:escape``). If `silent` is True the return value will be `None` if the import fails. :param import_name: the dotted name for the object to import. :param silent: if set to `True` import errors are ignored and `None` is returned instead. :return: imported object :rrNr>) r __import__ ImportErrorsysmodulesrsplitglobalslocalsgetattrrImportStringErrorwith_tracebackexc_info)rr module_nameZobj_namemoduleer'r'r( import_stringQs$   *r$) import_pathinclude_packages recursiverc cst|}t|dd}|dkr*t|d|jd}t|D]>\}}}||}|rx|r`|V|r~t||dEdHq@|Vq@dS)aFinds all the modules below a package. This can be useful to automatically import all views / controllers so that their metaclasses / function decorators have a chance to register themselves on the application. Packages are not returned unless `include_packages` is `True`. This can also recursively list modules but in that case it will import all the packages to get the correct load path of that module. :param import_path: the dotted name for the package to find child modules. :param include_packages: set to `True` if packages should be returned, too. :param recursive: set to `True` if recursion should happen. :return: generator __path__Nz is not a packagerT)r$rrr"pkgutil iter_modules find_modules) r%r&r'r"rr _importermodnameispkgr'r'r(r+vs  r+cCsjtjdtddt|}|||dd\}}}}}|rFtt|n|sN|r^|s^td||t||fS)a3Checks if the function accepts the arguments and keyword arguments. Returns a new ``(args, kwargs)`` tuple that can safely be passed to the function without causing a `TypeError` because the function signature is incompatible. If `drop_extra` is set to `True` (which is the default) any extra positional or keyword arguments are dropped automatically. The exception raised provides three attributes: `missing` A set of argument names that the function expected but where missing. `extra` A dict of keyword arguments that the function can not handle but where provided. `extra_positional` A list of values that where given by positional argument but the function cannot accept. This can be useful for decorators that forward user submitted data to a view function:: from werkzeug.utils import ArgumentValidationError, validate_arguments def sanitize(f): def proxy(request): data = request.values.to_dict() try: args, kwargs = validate_arguments(f, (request,), data) except ArgumentValidationError: raise BadRequest('The browser failed to transmit all ' 'the data expected.') return f(*args, **kwargs) return proxy :param func: the function the validation is performed against. :param args: a tuple of positional arguments. :param kwargs: a dict of keyword arguments. :param drop_extra: set to `False` if you don't want extra arguments to be silently dropped. :return: tuple in the form ``(args, kwargs)``. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use :func:`inspect.signature` instead. zn'utils.validate_arguments' is deprecated and will be removed in Werkzeug 2.1. Use 'inspect.signature' instead.r>r?N)rArBrCr ArgumentValidationErrortuple)funcargsrZ drop_extraparsermissingextraextra_positionalr'r'r(validate_argumentss0  r8cCstjdtddt|||\}}}}}}}}i} t||D]\\} } } } | | | <q<|dk rjt|| |<n |rvtd|dk rt|dd|D@}|rtdtt ||| |<n|rtd tt || S) aBind the arguments provided into a dict. When passed a function, a tuple of arguments and a dict of keyword arguments `bind_arguments` returns a dict of names as the function would see it. This can be useful to implement a cache decorator that uses the function arguments to build the cache key based on the values of the arguments. :param func: the function the arguments should be bound for. :param args: tuple of positional arguments. :param kwargs: a dict of keyword arguments. :return: a :class:`dict` of bound keyword arguments. .. deprecated:: 2.0 Will be removed in Werkzeug 2.1. Use :meth:`Signature.bind` instead. zg'utils.bind_arguments' is deprecated and will be removed in Werkzeug 2.1. Use 'Signature.bind' instead.r>r?Nztoo many positional argumentscSsh|] }|dqS)rr'r{r'r'r( sz!bind_arguments..z)got multiple values for keyword argument z got unexpected keyword argument ) rArBrCr zipr1rrnextiter)r2r3rr5r6r7Zarg_specZ vararg_varZ kwarg_varvaluesrZ _has_default_defaultr*Zmultikwr'r'r(bind_argumentss@   r?cs"eZdZdZdfdd ZZS)r0zRaised if :func:`validate_arguments` fails to validate .. deprecated:: 2.0 Will be removed in Werkzeug 2.1 along with ``utils.bind`` and ``validate_arguments``. NcsVt|pd|_|pi|_|pg|_tdt|jdt|jt|jddS)Nr'zfunction arguments invalid. (z missing, z additional))rr5r6r7r r!r)r$r5r6r7r%r'r(r!s   &z ArgumentValidationError.__init__)NNN)r"r#r5r6r!r=r'r'r%r(r0 sr0csJeZdZUdZeed<eed<eeddfdd Zedd d ZZ S) rzBProvides information about a failed :func:`import_string` attempt.r exceptionN)rr@rc s||_||_|}d}g}|dddD]}|r@|d|n|}t|dd}|rl||t|ddfq*dd|D}|d |d d |} d |d | dt|j d|}qq*t |dS)NrxrrT)r__file__cSs"g|]\}}d|d|dqS)- z found in rr')r|nir'r'r(r~0sz.ImportStringError.__init__..rBz not found. zimport_string() failed for z. Possible reasons are: - missing __init__.py in a package; - package or module path not included in sys.path; - duplicated package or module name taking precedence in sys.path; - missing module, class, function or variable; Debugged import: z Original exception: z: ) rr@rrr$appendrrr/r"r r!) r$rr@msgrZtrackedpartZimportedtrackZ track_strr%r'r(r!$s"    zImportStringError.__init__rcCs"dt|jd|jd|jdS)Nrs(z, z)>)r/r"rr@rr'r'r(rBszImportStringError.__repr__) r"r#r5r6r;__annotations__ BaseExceptionr!rr=r'r'r%r(rs r)rN)r) NFNTTNNFNN)F)FF)T)Yrrrrr)rrtypingr7rrAr html.entitiesrrzlibr _internalrrr r Zdatastructuresr exceptionsr r securityrrrZwsgir TYPE_CHECKINGZ_typeshed.wsgirZwrappers.requestrZwrappers.responserTypeVarrrrrrpropertyGenericrr<r;rErFrIrLrnrvrrbytesrMappingr9rrrorrr:TyperrrKrBinaryIOboolfloatr8r rr$Iteratorr+r8r?rr0rrr'r'r'r(s                    7" 9/ 0 $ X -& ! ?3