Commit 7973c25d authored by Jérome Perrin's avatar Jérome Perrin

don't use "import *", for erp5flakes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17014 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73906e79
...@@ -30,11 +30,14 @@ ...@@ -30,11 +30,14 @@
Memcached based cache plugin. Memcached based cache plugin.
""" """
from BaseCache import *
from time import time from time import time
from zLOG import LOG
from thread import get_ident from thread import get_ident
from zLOG import LOG
from BaseCache import BaseCache
from BaseCache import CacheEntry
try: try:
import memcache import memcache
MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH MEMCACHED_SERVER_MAX_KEY_LENGTH = memcache.SERVER_MAX_KEY_LENGTH
......
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
"Dummy (no cache)" "Dummy (no cache)"
from BaseCache import * from BaseCache import BaseCache
import time
class DummyCache(BaseCache): class DummyCache(BaseCache):
""" Dummy cache plugin. """ """ Dummy cache plugin. """
......
...@@ -29,10 +29,13 @@ ...@@ -29,10 +29,13 @@
""" """
Local RAM based cache plugin. Local RAM based cache plugin.
""" """
from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE
from BaseCache import *
import time import time
from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE
from BaseCache import BaseCache
from BaseCache import CacheEntry
def calcPythonObjectMemorySize(i): def calcPythonObjectMemorySize(i):
""" Recursive function that will 'walk' over complex python types and caclulate """ Recursive function that will 'walk' over complex python types and caclulate
their RAM memory usage. """ their RAM memory usage. """
......
...@@ -30,10 +30,15 @@ ...@@ -30,10 +30,15 @@
SQL (MySQL) based cache plugin. SQL (MySQL) based cache plugin.
""" """
from BaseCache import *
import time, base64
from zLOG import LOG
from thread import get_ident from thread import get_ident
import time
import base64
from zLOG import LOG
from BaseCache import BaseCache
from BaseCache import CacheEntry
from BaseCache import CachedMethodError
try: try:
import cPickle as pickle import cPickle as pickle
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment