Skip to content

Commit

Permalink
remove py3.7 importlib handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewitt1 committed Sep 24, 2024
1 parent 2e6f071 commit 20e4f89
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions runhouse/utils.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
import asyncio
import contextvars
import functools
import logging
import tempfile
from io import SEEK_SET, StringIO

try:
import importlib.metadata as metadata
except ImportError as e:
# User is probably on Python<3.8
try:
import importlib_metadata as metadata
except ImportError:
# User needs to install importlib_metadata
raise ImportError(
f"importlib_metadata is not installed in Python<3.8. Please install it with "
f"'pip install importlib_metadata'. {e}"
)
import importlib.metadata as metadata

import inspect
import json
import logging
import os
import re
import subprocess
import sys
import tempfile
import threading

from concurrent.futures import ThreadPoolExecutor
from datetime import datetime
from enum import Enum
from io import SEEK_SET, StringIO
from pathlib import Path
from typing import Callable, Optional, Type, Union

Expand Down

0 comments on commit 20e4f89

Please sign in to comment.