Commits

Hadrien David  committed 5657280

* Readability fix

  • Participants
  • Parent commits f147149

Comments (0)

Files changed (1)

File pyramid_facebook/predicates.py

     name/value pairs are in `request.headers`.
     """
     def predicate(info, request):
-        if any(_ for _ in header_names if _ not in request.headers):
+        if any(header for header in header_names
+               if header not in request.headers):
             return False
         if any((k, v) for k, v in headers.iteritems()
                if k not in request.headers or request.headers[k] != v):
     def text(self):
         return u'route_to_match = %s' % self.route_to_match
 
+    # predicate hash
     phash = text
 
     def __call__(self, event):
     def text(self):
         return u'expected_context_cls = %r' % self.expected_context_cls
 
+    # predicate hash
     phash = text
 
     def __call__(self, event):
     def text(self):
         return u'permission = %r' % self.permission
 
+    # predicate hash
     phash = text
 
     def __call__(self, event):