From: Mark Hymers Date: Tue, 29 Mar 2011 20:09:04 +0000 (+0100) Subject: Deal with args being a tuple X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7e692c9288506bd931232ae14987febb6ea8ecfb;p=dak.git Deal with args being a tuple Signed-off-by: Mark Hymers --- diff --git a/daklib/daklog.py b/daklib/daklog.py index d4c7867d..b278721a 100644 --- a/daklib/daklog.py +++ b/daklib/daklog.py @@ -46,7 +46,7 @@ class Logger(object): # To be backwards compatibile, dump the first argument if it's a # Config object. TODO: Fix up all callers and remove this if len(args) > 0 and isinstance(args[0], Config): - args.pop(0) + args=list(args).pop(0) self.__setup(*args, **kwargs)