Source: streamtuner2
Version: 2.2.2+dfsg-2.1
User: debian-pyt...@lists.debian.org
Usertags: syntaxwarning

Hi Maintainer

The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].

Regards
Graham


[1] https://piuparts.debian.org/sid/source/s/streamtuner2.html


  Setting up python3 (3.12.6-1) ...
  /usr/share/streamtuner2/action.py:175: SyntaxWarning: invalid escape
sequence '\s'
    cmd = re.sub('(["\']?\s*)$', " " + append + "\\1", cmd)
  /usr/share/streamtuner2/action.py:206: SyntaxWarning: invalid escape
sequence '\w'
    if re.match("^\w[\w.:/\-]+$", ins):
  /usr/share/streamtuner2/action.py:252: SyntaxWarning: invalid escape
sequence '\$'
    rx_keys = "[\$\%](" + "|".join(row.keys()) + ")\\b"
  /usr/share/streamtuner2/action.py:425: SyntaxWarning: invalid escape
sequence '\.'
    e = 
re.findall("\.(pls|m3u|xspf|jspf|asx|wpl|wsf|smil|html|url|json|desktop)\d?$",
url)
  /usr/share/streamtuner2/action.py:595: SyntaxWarning: invalid escape
sequence '\s'
    for field,num,value in re.findall("^\s* ([a-z_-]+) (\d+) \s*=\s*
(.*) $", self.src, re.M|re.I|re.X):
  /usr/share/streamtuner2/action.py:623: SyntaxWarning: invalid escape
sequence '\.'
    "title": row.get("title") or title or re.sub("\.\w+$", "",
os.path.basename(self.fn)),
  /usr/share/streamtuner2/channels/__init__.py:152: SyntaxWarning:
invalid escape sequence '\.'
    rx_www_url = re.compile("""(www(\.\w+[\w-]+){2,}|(\w+[\w-]+[
]?\.)+(com|FM|net|org|de|PL|fr|uk))""", re.I)
  /usr/share/streamtuner2/channels/__init__.py:751: SyntaxWarning:
invalid escape sequence '\w'
    return re.sub('&(#?(x?))(\w+);', _entity, str)
  /usr/share/streamtuner2/channels/__init__.py:799: SyntaxWarning:
invalid escape sequence '\d'
    i = re.findall("\d+", s) or [0]
  /usr/share/streamtuner2/channels/__init__.py:803: SyntaxWarning:
invalid escape sequence '\s'
    rx_spc = re.compile("\s+")
  /usr/share/streamtuner2/channels/configwin.py:156: SyntaxWarning:
invalid escape sequence '\w'
    if re.search("<(\w+)[^>]*>.+</\\1>", desc):
  /usr/share/streamtuner2/channels/configwin.py:197: SyntaxWarning:
invalid escape sequence '\S'
    doc = re.sub("(?<=\S) *\n(?! *\n)", " ", doc)
  /usr/share/streamtuner2/channels/dnd.py:218: SyntaxWarning: invalid
escape sequence '\w'
    title = re.sub("[^\w-]+", "_", r["title"]).strip()
  /usr/share/streamtuner2/channels/dnd.py:301: SyntaxWarning: invalid
escape sequence '\w'
    fn = compat2and3.urldecode(re.sub("^\w+://[^/]*", "", fn))
  /usr/share/streamtuner2/channels/exportcat.py:57: SyntaxWarning:
invalid escape sequence '\.'
    dest = re.findall("\.(m3u|pls|xspf|jspf|json|smil|asx|desktop|url)8?$",
fn.lower())
  /usr/share/streamtuner2/channels/favicon.py:269: SyntaxWarning:
invalid escape sequence '\w'
    rx_strip_proto = re.compile("^\w+://|/$|\.(png|gif|ico|jpe?g)$")
  /usr/share/streamtuner2/channels/favicon.py:270: SyntaxWarning:
invalid escape sequence '\w'
    rx_just_domain = re.compile("^\w+://|[/#?].*$")
  /usr/share/streamtuner2/channels/favicon.py:271: SyntaxWarning:
invalid escape sequence '\w'
    rx_non_wordchr = re.compile("[^\w._-]")
  /usr/share/streamtuner2/channels/favicon.py:292: SyntaxWarning:
invalid escape sequence '\w'
    if not re.match("^https?://[\w.-]{10}", url):
  /usr/share/streamtuner2/channels/favicon.py:345: SyntaxWarning:
invalid escape sequence '\w'
    domain = re.sub("^\w+://|/.*$", "", url).lower()
  /usr/share/streamtuner2/channels/favicon.py:400: SyntaxWarning:
invalid escape sequence '\g'
    return re.sub("(https?://[^/]+).*$", "\g<1>", url) + href
  /usr/share/streamtuner2/channels/filtermusic.py:55: SyntaxWarning:
invalid escape sequence '\W'
    ucat = re.sub("\W+", "-", cat.lower().replace("'", ""))
  /usr/share/streamtuner2/channels/filtermusic.py:58: SyntaxWarning:
invalid escape sequence '\w'
    rx_station = re.compile("""
  /usr/share/streamtuner2/channels/internet_radio.py:53:
SyntaxWarning: invalid escape sequence '\w'
    rx = re.compile("""="/stations/[-+&.\w\s%]+/">([^<]+)<""")
  /usr/share/streamtuner2/channels/internet_radio.py:67:
SyntaxWarning: invalid escape sequence '\w'
    rx_pages = re.compile('href="/stations/[-+\w%\d\s]+/page(\d+)">\d+</a>')
  /usr/share/streamtuner2/channels/internet_radio.py:151:
SyntaxWarning: invalid escape sequence '\d'
    rx_numbers = re.compile("(\d+)")
  /usr/share/streamtuner2/channels/internet_radio.py:169:
SyntaxWarning: invalid escape sequence '\>'
    url = re.search("(http://[^\'\"\>]+)", url)

Reply via email to