Commit 1cef6281 by rfkelly0

cleanup definition of thread_local

parent 9ace9f0d
......@@ -21,9 +21,9 @@ from fs.base import *
# Boto is not thread-safe, so we need to use a per-thread S3 connection.
try:
from threading import local as thread_local
except ImportError:
if hasattr(threading,"local"):
thread_local = threading.local
else:
class thread_local(object):
def __init__(self):
self._map = {}
......
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