Changed imports to adhere to PEP 8.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ae7f04caab
commit
a41c03345e
|
@ -1,13 +1,14 @@
|
||||||
"Thread-safe in-memory cache backend."
|
"Thread-safe in-memory cache backend."
|
||||||
|
|
||||||
from django.core.cache.backends.simple import CacheClass as SimpleCacheClass
|
|
||||||
from django.utils.synch import RWLock
|
|
||||||
import time
|
import time
|
||||||
try:
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
|
from django.core.cache.backends.simple import CacheClass as SimpleCacheClass
|
||||||
|
from django.utils.synch import RWLock
|
||||||
|
|
||||||
class CacheClass(SimpleCacheClass):
|
class CacheClass(SimpleCacheClass):
|
||||||
def __init__(self, host, params):
|
def __init__(self, host, params):
|
||||||
SimpleCacheClass.__init__(self, host, params)
|
SimpleCacheClass.__init__(self, host, params)
|
||||||
|
|
Loading…
Reference in New Issue