Skip to content

Commit

Permalink
Upgrade to black 23.3.0
Browse files Browse the repository at this point in the history
https://github.com/psf/black/blob/main/CHANGES.md

Run latest version of black to fix formatting issues
  • Loading branch information
jogo committed Apr 5, 2023
1 parent 1f95041 commit 88c5b69
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==22.12.0
black==23.3.0
docutils==0.19
flake8==6.0.0
pygments==2.13.0
2 changes: 0 additions & 2 deletions pymemcache/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,6 @@ def _misc_cmd(
noreply: Optional[bool],
end_tokens=None,
) -> List[bytes]:

# If no end_tokens have been given, just assume standard memcached
# operations, which end in "\r\n", use regular code for that.
_reader: Callable[[socket.socket, bytes], Tuple[bytes, bytes]]
Expand Down Expand Up @@ -1795,7 +1794,6 @@ def _readsegment(
result = bytes()

while True:

tokens_pos = buf.find(end_tokens)
if tokens_pos != -1:
before, after = buf[:tokens_pos], buf[tokens_pos + len(end_tokens) :]
Expand Down
1 change: 0 additions & 1 deletion pymemcache/client/retrying.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ def _retry(self, name, func, *args, **kwargs):
# strictly defined for ourselves and pass it on to whatever client we've
# been given.
def __getattr__(self, name):

return lambda *args, **kwargs: self._retry(
name, self._client.__getattribute__(name), *args, **kwargs
)
Expand Down
2 changes: 0 additions & 2 deletions pymemcache/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def is_ipv6(address):
def test_check_key_helper_failing_conditions(
key, allow_unicode_keys, key_prefix, ex_exception, ex_excinfo
):

with pytest.raises(ex_exception) as excinfo:
check_key_helper(key, allow_unicode_keys, key_prefix)

Expand Down Expand Up @@ -505,7 +504,6 @@ def test_decr_found(self):


class TestClient(ClientTestMixin, unittest.TestCase):

Client = Client

def test_append_stored(self):
Expand Down
1 change: 0 additions & 1 deletion pymemcache/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def __init__(
encoding="ascii",
tls_context=None,
):

self._contents = {}

self.serde = serde or LegacyWrappingSerde(serializer, deserializer)
Expand Down

0 comments on commit 88c5b69

Please sign in to comment.