From d7c52c9a74d31b0dd58c0f7475d7390918b23d96 Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 3 Apr 2020 08:41:36 -0400 Subject: [PATCH] zulip/zulip/__init__.py: Remove shebang and add version assertion. --- zulip/zulip/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index e2efe4d..99a7c8d 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json @@ -22,6 +21,9 @@ from typing import Any, Callable, Dict, Iterable, IO, List, Mapping, Optional, T __version__ = "0.6.4" +# Ensure the Python version is supported +assert sys.version_info >= (3, 5) + logger = logging.getLogger(__name__) # Check that we have a recent enough version