Skip to content

Commit

Permalink
Fix misuse of flags in re.sub() call
Browse files Browse the repository at this point in the history
The 4th argument of re.sub() is maximum number of substitutions,
not flags.
  • Loading branch information
jwilk committed Apr 15, 2017
1 parent 01d8b33 commit 7fac407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_tunein/tunein.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def parse_pls(data):


def fix_asf_uri(uri):
return re.sub(r'http://(.+\?mswmext=\.asf)', r'mms://\1', uri, re.I)
return re.sub(r'http://(.+\?mswmext=\.asf)', r'mms://\1', uri, flags=re.I)


def parse_old_asx(data):
Expand Down

0 comments on commit 7fac407

Please sign in to comment.