diff options
| author | Sean Reifschneider <jafo@tummy.com> | 2016-12-17 09:03:22 -0700 |
|---|---|---|
| committer | Sean Reifschneider <jafo@tummy.com> | 2016-12-17 09:03:22 -0700 |
| commit | 5b75728565393d53768f4622fdd43e3e742c4741 (patch) | |
| tree | 6c0e71776fc9be417d1a3fc604a5eeee436ae28f | |
| parent | 1cab3004e3d8d11a5ef345e23cfe6d70b125e873 (diff) | |
| download | python-memcached-5b75728565393d53768f4622fdd43e3e742c4741.tar.gz | |
#112 Cleaning up flake8 alerts
| -rw-r--r-- | memcache.py | 5 | ||||
| -rw-r--r-- | tests/test_memcache.py | 4 | ||||
| -rw-r--r-- | tests/test_setmulti.py | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/memcache.py b/memcache.py index 9079a9d..3e6bd67 100644 --- a/memcache.py +++ b/memcache.py @@ -48,13 +48,13 @@ More detailed documentation is available in the L{Client} class. from __future__ import print_function import binascii +from io import BytesIO import re import socket import sys import threading import time import zlib -from io import BytesIO import six @@ -763,7 +763,8 @@ class Client(threading.local): return self._set("cas", key, val, time, min_compress_len, noreply) def _map_and_prefix_keys(self, key_iterable, key_prefix): - """ + """Map keys to the servers they will reside on. + Compute the mapping of server (_Host instance) -> list of keys to stuff onto that server, as well as the mapping of prefixed key -> original key. diff --git a/tests/test_memcache.py b/tests/test_memcache.py index 7c34189..0072813 100644 --- a/tests/test_memcache.py +++ b/tests/test_memcache.py @@ -4,7 +4,7 @@ import unittest import six -from memcache import Client, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH +from memcache import Client, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH # noqa: H301 class FooStruct(object): @@ -23,7 +23,7 @@ class FooStruct(object): class TestMemcache(unittest.TestCase): def setUp(self): - # TODO: unix socket server stuff + # TODO(): unix socket server stuff servers = ["127.0.0.1:11211"] self.mc = Client(servers, debug=1) diff --git a/tests/test_setmulti.py b/tests/test_setmulti.py index 39d43c9..3cc1591 100644 --- a/tests/test_setmulti.py +++ b/tests/test_setmulti.py @@ -14,7 +14,7 @@ import sys import unittest sys.path.append('..') -import memcache +import memcache # noqa: E402 DEBUG = False |
