Mark strings with backslashes as raw strings (#211)

This commit is contained in:
Stein Magnus Jodal 2012-10-17 01:06:18 +02:00
parent 7d76f1d214
commit 8042f9961a
2 changed files with 2 additions and 2 deletions

View File

@ -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::

View File

@ -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