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
...@@ -32,7 +32,7 @@ Base Cache plugin. ...@@ -32,7 +32,7 @@ Base Cache plugin.
import time import time
class CachedMethodError(Exception): class CachedMethodError(Exception):
pass pass
class CacheEntry(object): class CacheEntry(object):
......
...@@ -30,10 +30,13 @@ ...@@ -30,10 +30,13 @@
Memcached based cache plugin. Memcached based cache plugin.
""" """
from BaseCache import *
from time import time from time import time
from thread import get_ident
from zLOG import LOG from zLOG import LOG
from thread import get_ident
from BaseCache import BaseCache
from BaseCache import CacheEntry
try: try:
import memcache import memcache
......
...@@ -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 * from thread import get_ident
import time, base64 import time
import base64
from zLOG import LOG from zLOG import LOG
from thread import get_ident
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