From a30ec5b94cfbfa775dfaa015e3c1de364af89d7f Mon Sep 17 00:00:00 2001 From: Furechan Date: Tue, 24 Dec 2024 23:19:52 -0500 Subject: [PATCH] Removed pkg_resources import from tiingo.api, VERSION comes from __version__ --- tiingo/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tiingo/api.py b/tiingo/api.py index dca1a22..20a4f18 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -26,8 +26,7 @@ try: except ImportError: pandas_is_installed = False -VERSION = pkg_resources.get_distribution("tiingo").version - +from .__version__ import __version__ as VERSION # These methods enable python 2 + 3 compatibility. def get_zipfile_from_response(response):