Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #348

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pymemcache/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def __init__(self,

Args:
server: tuple(hostname, port) or string containing a UNIX socket path.
serde: optional seralizer object, see notes in the class docs.
serde: optional serializer object, see notes in the class docs.
serializer: deprecated serialization function
deserializer: deprecated deserialization function
connect_timeout: optional float, seconds to wait for a connection to
Expand Down
4 changes: 2 additions & 2 deletions pymemcache/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _extract_value(self, expect_cas, line, buf, remapped_keys,
class ClientTestMixin:
def make_client(self, mock_socket_values, **kwargs):
client = Client(None, **kwargs)
# mock out client._connect() rather than hard-settting client.sock to
# mock out client._connect() rather than hard-setting client.sock to
# ensure methods are checking whether self.sock is None before
# attempting to use it
sock = MockSocket(list(mock_socket_values))
Expand All @@ -198,7 +198,7 @@ def make_client(self, mock_socket_values, **kwargs):

def make_customized_client(self, mock_socket_values, **kwargs):
client = CustomizedClient(None, **kwargs)
# mock out client._connect() rather than hard-settting client.sock to
# mock out client._connect() rather than hard-setting client.sock to
# ensure methods are checking whether self.sock is None before
# attempting to use it
sock = MockSocket(list(mock_socket_values))
Expand Down
10 changes: 5 additions & 5 deletions pymemcache/test/test_client_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestRetryingClientPassthrough(ClientTestMixin, unittest.TestCase):

def make_base_client(self, mock_socket_values, **kwargs):
base_client = Client(None, **kwargs)
# mock out client._connect() rather than hard-settting client.sock to
# mock out client._connect() rather than hard-setting client.sock to
# ensure methods are checking whether self.sock is None before
# attempting to use it
sock = MockSocket(list(mock_socket_values))
Expand All @@ -43,7 +43,7 @@ class TestRetryingClient(object):
def make_base_client(self, mock_socket_values, **kwargs):
""" Creates a regular mock client to wrap in the RetryClient. """
base_client = Client(None, **kwargs)
# mock out client._connect() rather than hard-settting client.sock to
# mock out client._connect() rather than hard-setting client.sock to
# ensure methods are checking whether self.sock is None before
# attempting to use it
sock = MockSocket(list(mock_socket_values))
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_constructor_retry_for(self):
with pytest.raises(ValueError):
RetryingClient(base_client, retry_for="haha!")

# With collectino of string and exceptions?
# With collection of string and exceptions?
with pytest.raises(ValueError):
RetryingClient(base_client, retry_for=[Exception, str])

Expand All @@ -131,7 +131,7 @@ def test_constructor_do_no_retry_for(self):
with pytest.raises(ValueError):
RetryingClient(base_client, do_not_retry_for="haha!")

# With collectino of string and exceptions?
# With collection of string and exceptions?
with pytest.raises(ValueError):
RetryingClient(base_client, do_not_retry_for=[Exception, str])

Expand Down Expand Up @@ -294,7 +294,7 @@ def test_do_not_retry_for_exception_fail(self):
client.get("key")

def test_both_exception_filters(self):
# Test interacction between both exception filters.
# Test interaction between both exception filters.
client = self.make_client(
[
MemcacheClientError("Whoops."),
Expand Down