[CalendarServer-changes] [13127] twext/trunk/twext/who/expression.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 2 12:13:50 PDT 2014


Revision: 13127
          http://trac.calendarserver.org//changeset/13127
Author:   wsanchez at apple.com
Date:     2014-04-02 12:13:50 -0700 (Wed, 02 Apr 2014)
Log Message:
-----------
Rename, since lower is only true for one type.

Modified Paths:
--------------
    twext/trunk/twext/who/expression.py

Modified: twext/trunk/twext/who/expression.py
===================================================================
--- twext/trunk/twext/who/expression.py	2014-04-02 19:12:33 UTC (rev 13126)
+++ twext/trunk/twext/who/expression.py	2014-04-02 19:13:50 UTC (rev 13127)
@@ -135,7 +135,7 @@
         predicate = lambda x: x
         normalize = lambda x: x
 
-        def lower(x):
+        def caseInsensitivify(x):
             # Case insensitive only makes sense conceptually for text
             # Note we are intentionally not treating bytes as text
             if isinstance(x, unicode):
@@ -150,7 +150,7 @@
                 if flag == MatchFlags.NOT:
                     predicate = lambda x: not x
                 elif flag == MatchFlags.caseInsensitive:
-                    normalize = lower
+                    normalize = caseInsensitivify
                 else:
                     raise NotImplementedError(
                         "Unknown query flag: {0}".format(describe(flag))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140402/114c5f0c/attachment.html>


More information about the calendarserver-changes mailing list