From 23a8ab9cd4c65f0450215afa8e542d073fbbc0a3 Mon Sep 17 00:00:00 2001 From: sech1p Date: Thu, 25 Feb 2021 19:47:18 +0100 Subject: [PATCH] drop python 2 --- bin/haruhi-dl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/haruhi-dl b/bin/haruhi-dl index cadbb47fc..e8311a8c7 100755 --- a/bin/haruhi-dl +++ b/bin/haruhi-dl @@ -1,6 +1,10 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 -import haruhi_dl +import sys if __name__ == '__main__': - haruhi_dl.main() + if sys.version_info[0] == 2: + sys.exit('haruhi-dl no longer works on Python 2, use Python 3 instead') + else: + import haruhi_dl + haruhi_dl.main()