Skip to content

Commit 939ac13

Browse files
committed
Update sys.version_info checks.
1 parent 1290142 commit 939ac13

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

iters/utils.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import sys
34
from builtins import zip as standard_zip
45
from collections import Counter as counter_dict
56
from collections import deque
@@ -25,7 +26,6 @@
2526
from operator import gt as greater
2627
from operator import le as less_or_equal
2728
from operator import lt as less
28-
from sys import version_info
2929
from typing import (
3030
Any,
3131
ContextManager,
@@ -472,10 +472,7 @@ def accumulate_reduce(function: Binary[T, T, T], iterable: Iterable[T]) -> Itera
472472

473473

474474
def accumulate_fold(initial: U, function: Binary[U, T, U], iterable: Iterable[T]) -> Iterator[U]:
475-
if version_info >= (3, 8, 0):
476-
return standard_accumulate(iterable, function, initial=initial)
477-
478-
return standard_accumulate(prepend(initial, iterable), function) # type: ignore[arg-type]
475+
return standard_accumulate(iterable, function, initial=initial)
479476

480477

481478
@overload
@@ -2389,7 +2386,7 @@ def zip_equal(
23892386

23902387

23912388
def zip_equal(*iterables: Iterable[Any]) -> Iterator[DynamicTuple[Any]]:
2392-
if version_info >= (3, 10, 0):
2389+
if sys.version_info >= (3, 10):
23932390
return standard_zip(*iterables, strict=True)
23942391

23952392
return zip_equal_simple(*iterables)

0 commit comments

Comments
 (0)