From a418f64b15600ebfe2cd6234de833f97fd5ce1a4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 11 Jan 2022 13:44:19 +0200 Subject: [PATCH] Simplify _unicode --- src/pylast/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 3f00b5a..c1e3fa0 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -2724,8 +2724,6 @@ def md5(text): def _unicode(text): if isinstance(text, bytes): return str(text, "utf-8") - elif isinstance(text, str): - return text else: return str(text)