1. Armin Ronacher
  2. werkzeug-main

Commits

Armin Ronacher  committed 5a21059

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

  • Participants
  • Parent commits 2eaff28
  • Branches default

Comments (0)

Files changed (1)

File werkzeug/local.py

View file
             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