Skip to content

Commit

Permalink
Fix more Python 2.7 breaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Nov 10, 2024
1 parent 7980b80 commit 7d22de1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pex/resolve/lockfile/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import tarfile
from collections import OrderedDict, defaultdict
from multiprocessing.pool import ThreadPool
from typing import Iterator

from pex import hashing, resolver
from pex.auth import PasswordDatabase
Expand Down Expand Up @@ -59,7 +58,7 @@
from pex.version import __version__

if TYPE_CHECKING:
from typing import DefaultDict, Dict, Iterable, List, Mapping, Optional, Tuple, Union
from typing import DefaultDict, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, Union

import attr # vendor:skip

Expand Down Expand Up @@ -520,7 +519,7 @@ def _lock_build_systems(
# type: (...) -> Iterator[Union[Tuple[BuildSystemTable, Tuple[LockedResolve, ...]], Error]]

if not lock_configuration.lock_build_systems:
return iter(())
return

build_systems = OrderedSet(
artifact.build_system_table
Expand All @@ -532,7 +531,7 @@ def _lock_build_systems(
if artifact.build_system_table
)
if not build_systems:
return iter(())
return

build_system_pip_config = attr.evolve(
pip_configuration,
Expand Down

0 comments on commit 7d22de1

Please sign in to comment.