1. Andriy Kornatskyy
  2. wheezy.routing

Commits

Andriy Kornatskyy  committed 02d881f

Fixed PEP8 warnings.

  • Participants
  • Parent commits 58fd73b
  • Branches default

Comments (0)

Files changed (1)

File src/wheezy/routing/choice.py

View file
         self.exact_matches = [(prefix + c + suffix,
                                dict(kwargs, **{self.name: c}))
                               for c in choices]
-        self.patterns = [(pattern, (len(pattern), kwargs))
-                         for pattern, kwargs in self.exact_matches]
+        self.patterns = [(p, (len(p), kw)) for p, kw in self.exact_matches]
         self.path_format = prefix + '%s' + suffix
 
     def match(self, path):