mpd: Add note about use of re.VERBOSE

This commit is contained in:
Stein Magnus Jodal 2013-11-19 09:07:39 +01:00
parent 6a8ec02ea7
commit ba6e70b30b

View File

@ -48,6 +48,11 @@ def handle_request(pattern, auth_required=True):
def do(what):
...
Note that the patterns are compiled with the :attr:`re.VERBOSE` flag. Thus,
you must escape any space characters you want to match, but you're also
free to add non-escaped whitespace to format the pattern for easier
reading.
:param pattern: regexp pattern for matching commands
:type pattern: string
"""