Fix noparallel with dict kwargs

This commit is contained in:
HelloZeroNet 2016-04-06 13:50:50 +02:00
parent 84e78859dc
commit 644fe69fa8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Noparallel(object): # Only allow function running once in same time
def __call__(self, func):
def wrapper(*args, **kwargs):
key = (func, tuple(args), tuple(kwargs.items())) # Unique key for function including parameters
key = (func, tuple(args), str(kwargs)) # Unique key for function including parameters
if key in self.threads: # Thread already running (if using blocking mode)
thread = self.threads[key]
if self.blocking: