Import QRFS_* and QFT_* in query.py
authorIustin Pop <iustin@google.com>
Sun, 16 Jan 2011 14:17:40 +0000 (15:17 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 15:55:42 +0000 (16:55 +0100)
commit82599b3ef6d9c396a49d6131788c3c7b146292f5
treeb36b32140ec1269add1118c6c32615d726c88e0c
parentf774bd0366d708f7dc2b38598ece939faada6d52
Import QRFS_* and QFT_* in query.py

Currently, the QRFT/QFT constants are used with the module (e.g.
constants.QRFS_NORMAL) in the query library. Given that there are 176
uses of these constants in a module that has roughly ~1200 lines in
total (including whitespace), it makes sense to import these directly to
improve readability.

This patch does this and (IMHO) it does indeed make the code more to the
point; the entire query library is about queries, so using these
constants directly doesn't cause any misunderstandings.

Note: the epydoc links are not changed, since we want the generated docs
to point to the right place.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/query.py