Commit 1cef6281 by rfkelly0

cleanup definition of thread_local

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