[diffoscope] 01/01: setup.py: No need for try-assert-except block.
Chris Lamb
chris at chris-lamb.co.uk
Sat Sep 16 12:21:36 CEST 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit a42ce1e352ed9dfe6acfbdfee31cae76ad4ceb10
Author: Chris Lamb <lamby at debian.org>
Date: Sat Sep 16 11:21:18 2017 +0100
setup.py: No need for try-assert-except block.
---
setup.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 3b98469..060aa37 100644
--- a/setup.py
+++ b/setup.py
@@ -9,9 +9,7 @@ from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
-try:
- assert sys.version_info >= (3, 4)
-except AssertionError:
+if sys.version_info < (3, 4):
print("diffoscope requires at least python 3.4", file=sys.stderr)
sys.exit(1)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list