Mark strings with backslashes as raw strings (#211)
This commit is contained in:
parent
7d76f1d214
commit
8042f9961a
@ -8,7 +8,7 @@ from mopidy.utils.path import path_to_uri
|
||||
|
||||
|
||||
def parse_m3u(file_path, music_folder):
|
||||
"""
|
||||
r"""
|
||||
Convert M3U file list of uris
|
||||
|
||||
Example M3U data::
|
||||
|
||||
@ -52,7 +52,7 @@ def create_socket():
|
||||
|
||||
def format_hostname(hostname):
|
||||
"""Format hostname for display."""
|
||||
if (has_ipv6 and re.match('\d+.\d+.\d+.\d+', hostname) is not None):
|
||||
if (has_ipv6 and re.match(r'\d+.\d+.\d+.\d+', hostname) is not None):
|
||||
hostname = '::ffff:%s' % hostname
|
||||
return hostname
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user