Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit a1e19d9

Browse files
committed
Revert "pyupgrade --py37-plus **/*.py"
This reverts commit 12f8cbe. This commit introduced a series of unit test failures, although I'm not completely sure why.
1 parent 54e7857 commit a1e19d9

15 files changed

+22
-1
lines changed

backoff/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
"""
23
Function decoration for backoff and retry
34

backoff/_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
import datetime
23
import functools
34
import asyncio

backoff/_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding:utf-8
2+
13
import functools
24
import logging
35
import sys

backoff/_decorator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
import asyncio
23
import logging
34
import operator

backoff/_jitter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding:utf-8
2+
13
import random
24

35

backoff/_sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
import datetime
23
import functools
34
import time

backoff/_typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
import logging
23
import sys
34
from typing import (Any, Callable, Coroutine, Dict, Generator, Sequence, Tuple,

backoff/_wait_gen.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding:utf-8
2+
13
import itertools
24
from typing import Any, Callable, Generator, Iterable, Optional, Union
35

@@ -66,7 +68,8 @@ def constant(
6668
except TypeError:
6769
itr = itertools.repeat(interval) # type: ignore
6870

69-
yield from itr
71+
for val in itr:
72+
yield val
7073

7174

7275
def runtime(

backoff/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
from ._typing import Details
23

34
__all__ = [

tests/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# coding:utf-8
12
import collections
23
import functools
34

0 commit comments

Comments
 (0)