← Back
Editing: exceptions.cpython-311.pyc
� ��b� � �X � d dl Z d dlZddlmZ ddlmZ ddlmZ ddlmZ ej rd dl mZ dd lm Z dd lmZ ddlmZ ddlmZ G d � de� � Z G d� dee� � Z G d� de� � Z G d� de� � Z G d� dee� � Z G d� de� � Z G d� de� � ZdS )� N� )� BadRequest)� HTTPException)�cached_property)�redirect)�WSGIEnvironment� )� MapAdapter)�Rule)�Request)�Responsec � � e Zd ZdZdS )�RoutingExceptionzxSpecial exceptions that require the application to redirect, notifying about missing urls, etc. :internal: N��__name__� __module__�__qualname__�__doc__� � �=/usr/lib/python3/dist-packages/werkzeug/routing/exceptions.pyr r s � � � � � �� � � r r c � � � e Zd ZdZdZdeddf� fd�Z ddej ej d d ej e dd fd�Z� xZS ) �RequestRedirectz�Raise if the map requests a redirect. This is for example the case if `strict_slashes` are activated and an url that requires a trailing slash. The attribute `new_url` contains the absolute destination url. i4 �new_url�returnNc �X �� t � � � |� � || _ d S �N)�super�__init__r )�selfr � __class__s �r r zRequestRedirect.__init__"