From 135e9c13698b51716d7fb8a641ee301237ffab63 Mon Sep 17 00:00:00 2001 From: Avinash Karhana Date: Sat, 11 Jul 2020 02:15:29 +0530 Subject: [PATCH] Fixed useless `else` cluase after loop inside `get_version` function in setup.py --- news/440785C8-AC99-4ED9-8ECE-7C92B4358026.trivial | 0 setup.py | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 news/440785C8-AC99-4ED9-8ECE-7C92B4358026.trivial diff --git a/news/440785C8-AC99-4ED9-8ECE-7C92B4358026.trivial b/news/440785C8-AC99-4ED9-8ECE-7C92B4358026.trivial new file mode 100644 index 000000000..e69de29bb diff --git a/setup.py b/setup.py index f731b61e8..0557690de 100644 --- a/setup.py +++ b/setup.py @@ -22,8 +22,7 @@ def get_version(rel_path): # __version__ = "0.9" delim = '"' if '"' in line else "'" return line.split(delim)[1] - else: - raise RuntimeError("Unable to find version string.") + raise RuntimeError("Unable to find version string.") long_description = read('README.rst')