]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/daklog.py
Deal with args being a tuple
[dak.git] / 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)