Skip to content

Commit

Permalink
chore(python): remove redundant files (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushExel committed Apr 5, 2024
1 parent bf06f2f commit 93c8786
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 82 deletions.
12 changes: 0 additions & 12 deletions python/python/lancedb/cli/__init__.py

This file was deleted.

7 changes: 3 additions & 4 deletions python/python/lancedb/embeddings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
import time
import urllib.error
import weakref
import logging
from typing import Callable, List, Union

import numpy as np
import pyarrow as pa
from lance.vector import vec_to_table
from retry import retry

from ..util import deprecated, safe_import_pandas
from ..utils.general import LOGGER

pd = safe_import_pandas()

Expand Down Expand Up @@ -256,7 +255,7 @@ def wrapper(*args, **kwargs):
)

delay *= exponential_base * (1 + jitter * random.random())
LOGGER.info(f"Retrying in {delay:.2f} seconds due to {e}")
logging.info("Retrying in %s seconds...", delay)
time.sleep(delay)

return wrapper
Expand All @@ -277,5 +276,5 @@ def url_retrieve(url: str):


def api_key_not_found_help(provider):
LOGGER.error(f"Could not find API key for {provider}.")
logging.error("Could not find API key for %s", provider)
raise ValueError(f"Please set the {provider.upper()}_API_KEY environment variable.")
12 changes: 0 additions & 12 deletions python/python/lancedb/utils/__init__.py

This file was deleted.

54 changes: 0 additions & 54 deletions python/python/lancedb/utils/general.py

This file was deleted.

0 comments on commit 93c8786

Please sign in to comment.