#112 Cleaning up flake8 alerts

This commit is contained in:
Sean Reifschneider 2016-12-17 09:03:22 -07:00
parent 1cab3004e3
commit 5b75728565
3 changed files with 6 additions and 5 deletions

View File

@ -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.

View File

@ -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)

View File

@ -14,7 +14,7 @@ import sys
import unittest
sys.path.append('..')
import memcache
import memcache # noqa: E402
DEBUG = False