Skip to content

Commit 5b75728

Browse files
author
Sean Reifschneider
committed
#112 Cleaning up flake8 alerts
1 parent 1cab300 commit 5b75728

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

memcache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
from __future__ import print_function
4949

5050
import binascii
51+
from io import BytesIO
5152
import re
5253
import socket
5354
import sys
5455
import threading
5556
import time
5657
import zlib
57-
from io import BytesIO
5858

5959
import six
6060

@@ -763,7 +763,8 @@ def cas(self, key, val, time=0, min_compress_len=0, noreply=False):
763763
return self._set("cas", key, val, time, min_compress_len, noreply)
764764

765765
def _map_and_prefix_keys(self, key_iterable, key_prefix):
766-
"""
766+
"""Map keys to the servers they will reside on.
767+
767768
Compute the mapping of server (_Host instance) -> list of keys to
768769
stuff onto that server, as well as the mapping of prefixed key
769770
-> original key.

tests/test_memcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import six
66

7-
from memcache import Client, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH
7+
from memcache import Client, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH # noqa: H301
88

99

1010
class FooStruct(object):
@@ -23,7 +23,7 @@ def __eq__(self, other):
2323

2424
class TestMemcache(unittest.TestCase):
2525
def setUp(self):
26-
# TODO: unix socket server stuff
26+
# TODO(): unix socket server stuff
2727
servers = ["127.0.0.1:11211"]
2828
self.mc = Client(servers, debug=1)
2929

tests/test_setmulti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import unittest
1515

1616
sys.path.append('..')
17-
import memcache
17+
import memcache # noqa: E402
1818

1919
DEBUG = False
2020

0 commit comments

Comments
 (0)