Skip to content

Commit 54e7857

Browse files
authored
Merge pull request litl#156 from cclauss/pyupgrade
pyupgrade --py37-plus **/*.py
2 parents d9d80a9 + 12f8cbe commit 54e7857

15 files changed

+1
-22
lines changed

backoff/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
"""
32
Function decoration for backoff and retry
43

backoff/_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
import datetime
32
import functools
43
import asyncio

backoff/_common.py

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

backoff/_decorator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
import asyncio
32
import logging
43
import operator

backoff/_jitter.py

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

53

backoff/_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
import datetime
32
import functools
43
import time

backoff/_typing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
import logging
32
import sys
43
from typing import (Any, Callable, Coroutine, Dict, Generator, Sequence, Tuple,

backoff/_wait_gen.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding:utf-8
2-
31
import itertools
42
from typing import Any, Callable, Generator, Iterable, Optional, Union
53

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

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

7471

7572
def runtime(

backoff/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
from ._typing import Details
32

43
__all__ = [

tests/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding:utf-8
21
import collections
32
import functools
43

0 commit comments

Comments
 (0)