From 91972cc456bf20ff9072664c3a01acde0a8ccf84 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 27 Oct 2022 18:16:05 +0300 Subject: [PATCH] Fix deprecated open mode `rU` -> `r` --- audio/shuffle-playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/shuffle-playlist.py b/audio/shuffle-playlist.py index 3957b62..65c724a 100755 --- a/audio/shuffle-playlist.py +++ b/audio/shuffle-playlist.py @@ -6,7 +6,7 @@ import random infile_name = sys.argv[1] outfile_name = sys.argv[2] -infile = open(infile_name, 'rU') +infile = open(infile_name, 'r') lines = infile.readlines() infile.close() -- 2.39.5