From bb882454a0c7b161a2ac29126a74b25dc8e12940 Mon Sep 17 00:00:00 2001 From: Oliver Beattie Date: Mon, 9 Sep 2013 15:13:42 +0100 Subject: [PATCH] Make the decorators attribute on View a tuple by default To discourage accidental runtime modification applying to all views. --- flask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/views.py b/flask/views.py index b3b61b52..f4422ff4 100644 --- a/flask/views.py +++ b/flask/views.py @@ -60,7 +60,7 @@ class View(object): #: view function is created the result is automatically decorated. #: #: .. versionadded:: 0.8 - decorators = [] + decorators = () def dispatch_request(self): """Subclasses have to override this method to implement the