Skip to content

Commit

Permalink
Merge pull request #156 from cclauss/pyupgrade
Browse files Browse the repository at this point in the history
pyupgrade --py37-plus **/*.py
  • Loading branch information
bgreen-litl committed Oct 5, 2022
2 parents d9d80a9 + 12f8cbe commit 54e7857
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion backoff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
"""
Function decoration for backoff and retry
Expand Down
1 change: 0 additions & 1 deletion backoff/_async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import datetime
import functools
import asyncio
Expand Down
2 changes: 0 additions & 2 deletions backoff/_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding:utf-8

import functools
import logging
import sys
Expand Down
1 change: 0 additions & 1 deletion backoff/_decorator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import asyncio
import logging
import operator
Expand Down
2 changes: 0 additions & 2 deletions backoff/_jitter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding:utf-8

import random


Expand Down
1 change: 0 additions & 1 deletion backoff/_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import datetime
import functools
import time
Expand Down
1 change: 0 additions & 1 deletion backoff/_typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import logging
import sys
from typing import (Any, Callable, Coroutine, Dict, Generator, Sequence, Tuple,
Expand Down
5 changes: 1 addition & 4 deletions backoff/_wait_gen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding:utf-8

import itertools
from typing import Any, Callable, Generator, Iterable, Optional, Union

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

for val in itr:
yield val
yield from itr


def runtime(
Expand Down
1 change: 0 additions & 1 deletion backoff/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
from ._typing import Details

__all__ = [
Expand Down
1 change: 0 additions & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import collections
import functools

Expand Down
1 change: 0 additions & 1 deletion tests/test_backoff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import datetime
import itertools
import logging
Expand Down
2 changes: 0 additions & 2 deletions tests/test_backoff_async.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding:utf-8

import asyncio # Python 3.5 code and syntax is allowed in this file
import random

Expand Down
1 change: 0 additions & 1 deletion tests/test_jitter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import backoff


Expand Down
2 changes: 0 additions & 2 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding:utf-8

from backoff.types import Details


Expand Down
1 change: 0 additions & 1 deletion tests/test_wait_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding:utf-8
import backoff


Expand Down

0 comments on commit 54e7857

Please sign in to comment.