diff genshi/path.py @ 593:aa5762c7b7f1

Minor, cosmetic tweaks.
author cmlenz
date Mon, 13 Aug 2007 21:38:46 +0000
parents cccb6c748609
children bc5faca93699
line wrap: on
line diff
--- a/genshi/path.py
+++ b/genshi/path.py
@@ -39,6 +39,7 @@
 """
 
 from math import ceil, floor
+import operator
 import re
 
 from genshi.core import Stream, Attrs, Namespace, QName
@@ -771,7 +772,7 @@
         string2 = as_string(self.string2(kind, data, pos, namespaces, variables))
         return re.search(string2, string1, self.flags)
     def _map_flags(self, flags):
-        return reduce(lambda a, b: a | b,
+        return reduce(operator.or_,
                       [self.flag_map[flag] for flag in flags], re.U)
     def __repr__(self):
         return 'contains(%r, %r)' % (self.string1, self.string2)
Copyright (C) 2012-2017 Edgewall Software