changeset 1278 | a7766286a7be |
parent 828 | f5fd65cc3bf3 |
child 2864 | 2e0b0af889be |
--- a/thirdparty/google_appengine/google/appengine/datastore/datastore_index.py Thu Feb 12 10:24:37 2009 +0000 +++ b/thirdparty/google_appengine/google/appengine/datastore/datastore_index.py Thu Feb 12 12:30:36 2009 +0000 @@ -328,8 +328,7 @@ else: props.append((prop_name, ASCENDING)) - if (kind and not ancestor and - (not props or (len(props) == 1 and props[0][1] == ASCENDING))): + if kind and not ancestor and len(props) <= 1: required = False if props: