]> git.decadent.org.uk Git - dak.git/commitdiff
Deal with args being a tuple
authorMark Hymers <mhy@debian.org>
Tue, 29 Mar 2011 20:09:04 +0000 (21:09 +0100)
committerMark Hymers <mhy@debian.org>
Tue, 29 Mar 2011 20:09:04 +0000 (21:09 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/daklog.py

index d4c7867d7179c45e5447af5bb2cf5a9d9df7a020..b278721a48405d34a36bacd81e449b63e6f42eaf 100644 (file)
@@ -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)