Commits

Andriy Kornatskyy  committed 3190040

Create a copy of default route values when added.

  • Participants
  • Parent commits dde4d12

Comments (0)

Files changed (1)

File src/wheezy/routing/router.py

         if name in self.route_map:
             warn('PathRouter: overriding route: %s.' % name)
         # build finishing route
-        kwargs = kwargs or {}
+        kwargs = kwargs and kwargs.copy() or {}
         route = build_route(pattern, True, kwargs, self.route_builders)
         # allow build strategy specialize math/path cases
         kwargs['route_name'] = name