From 81a76461b23cae5968c3ac69636c1f6513171285 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Wed, 26 Jul 2023 20:14:29 +0200 Subject: [PATCH] py3 fix: guessit return list instead of range object --- CHANGES.md | 1 + lib/guessit/transfo/guess_episodes_rexps.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 15edc6d2..21c9ad0c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ * Update Beautiful Soup 4.11.1 (r642) to 4.12.2 * Update soupsieve 2.3.2.post1 (792d566) to 2.4.1 (2e66beb) +* Fix regex that was not using py312 notation ### 3.29.4 (2023-06-07 13:45:00 UTC) diff --git a/lib/guessit/transfo/guess_episodes_rexps.py b/lib/guessit/transfo/guess_episodes_rexps.py index 4523441b..27a8a7c8 100644 --- a/lib/guessit/transfo/guess_episodes_rexps.py +++ b/lib/guessit/transfo/guess_episodes_rexps.py @@ -32,7 +32,7 @@ def number_list(s): if len(l) == 2: # it is an episode interval, return all numbers in between - return range(l[0], l[1]+1) + return list(range(l[0], l[1]+1)) return l