mpd: Add note about use of re.VERBOSE
This commit is contained in:
parent
6a8ec02ea7
commit
ba6e70b30b
@ -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
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user