Skip to content
Browse files

PEP8 and comments

  • Loading branch information...
1 parent 2cde7d3 commit 44f93d4fd2ee475e23106d63a3b35832fad96de5 @pagles pagles committed Oct 8, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 memcachepool/cache.py
  2. +2 −2 memcachepool/tests/test_cache.py
View
6 memcachepool/cache.py
@@ -21,9 +21,9 @@ class UMemcacheCache(MemcachedCache):
"An implementation of a cache binding using python-memcached"
_FLAG_SERIALIZED = 1
- _FLAG_INT = 1<<1
- _FLAG_LONG = 1<<2
-
+ _FLAG_INT = 1 << 1
+ _FLAG_LONG = 1 << 2
+
def __init__(self, server, params):
import umemcache
super(MemcachedCache, self).__init__(server, params,
View
4 memcachepool/tests/test_cache.py
@@ -39,7 +39,7 @@ def test_many(self):
self.assertEqual(cache.get_many(['a', 'b']), {})
def test_incr_decr(self):
- # make sure all the 'many' APIs work
+ # Testing incr and decr operations
from memcachepool.cache import UMemcacheCache
# creating the cache class
@@ -51,7 +51,7 @@ def test_incr_decr(self):
self.assertEquals(cache.get('a'), 1)
def test_types(self):
- # make sure all the 'many' APIs work
+ # Testing if correct types are returned
from memcachepool.cache import UMemcacheCache
# creating the cache class

0 comments on commit 44f93d4

Please sign in to comment.
Something went wrong with that request. Please try again.