Commits

Armin Ronacher committed 5a21059

Moved ident func call out of the look for custom ident functions

Comments (0)

Files changed (1)

werkzeug/local.py

             raise AttributeError(name)
 
     def __setattr__(self, name, value):
+        ident = self.__ident_func__()
         self.__lock__.acquire()
         try:
-            ident = self.__ident_func__()
             storage = self.__storage__
             if ident in storage:
                 storage[ident][name] = value