drop python 2

radioplus
sech1p 2021-02-25 19:47:18 +01:00 committed by Laura Liberda
parent f42428e8e0
commit 23a8ab9cd4
1 changed files with 7 additions and 3 deletions

View File

@ -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()