Skip to content

Commit

Permalink
Merge pull request #1072 from furechan/fix_pkg_resources
Browse files Browse the repository at this point in the history
Remove pkg_resources import (deprecated module)
  • Loading branch information
hydrosquall authored Jan 8, 2025
2 parents 939c910 + 9661fb2 commit ac20d7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tiingo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os
import re
import sys
import pkg_resources
from zipfile import ZipFile

import requests
Expand All @@ -19,15 +18,15 @@
MissingRequiredArgumentError,
)

from tiingo.__version__ import __version__ as VERSION

try:
import pandas as pd

pandas_is_installed = True
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):
Expand Down

0 comments on commit ac20d7f

Please sign in to comment.