mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 14:32:55 +01:00
expand justification for BytesQuery's existence
This commit is contained in:
parent
56bb642fe8
commit
56602ec0cc
1 changed files with 3 additions and 2 deletions
|
|
@ -141,8 +141,9 @@ class BooleanQuery(MatchQuery):
|
|||
|
||||
class BytesQuery(MatchQuery):
|
||||
"""Match a raw bytes field (i.e., a path). This is a necessary hack
|
||||
to distinguish between the common case, matching Unicode strings,
|
||||
and the special case in which we match bytes.
|
||||
to work around the `sqlite3` module's desire to treat `str` and
|
||||
`unicode` equivalently in Python 2. Always use this query instead of
|
||||
`MatchQuery` when matching on BLOB values.
|
||||
"""
|
||||
def __init__(self, field, pattern):
|
||||
super(BytesQuery, self).__init__(field, pattern)
|
||||
|
|
|
|||
Loading…
Reference in a new issue