Commits

Jason R. Coombs committed d1c3bdd

Make SQLiteStorage thread-local. Fixes #26.

  • Participants
  • Parent commits 6c3cd77
  • Tags 1105.4.2

Comments (0)

Files changed (1)

pmxbot/storage.py

 import itertools
 import importlib
 import logging
+import threading
 try:
 	import urllib.parse as urllib_parse
 except ImportError:
 		return False
 
 
-class SQLiteStorage(Storage):
+class SQLiteStorage(Storage, threading.local):
 	scheme = 'sqlite'
 
 	@classmethod