mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2026-02-01 17:04:18 +01:00
Merge pull request #1072 from furechan/fix_pkg_resources
Remove pkg_resources import (deprecated module)
This commit is contained in:
@@ -6,7 +6,6 @@ import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import pkg_resources
|
||||
from zipfile import ZipFile
|
||||
|
||||
import requests
|
||||
@@ -19,6 +18,8 @@ from tiingo.exceptions import (
|
||||
MissingRequiredArgumentError,
|
||||
)
|
||||
|
||||
from tiingo.__version__ import __version__ as VERSION
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
|
||||
@@ -26,8 +27,6 @@ try:
|
||||
except ImportError:
|
||||
pandas_is_installed = False
|
||||
|
||||
VERSION = pkg_resources.get_distribution("tiingo").version
|
||||
|
||||
|
||||
# These methods enable python 2 + 3 compatibility.
|
||||
def get_zipfile_from_response(response):
|
||||
|
||||
Reference in New Issue
Block a user