[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 09/10] Deal with args being a tuple



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 daklib/daklog.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daklib/daklog.py b/daklib/daklog.py
index d4c7867..b278721 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)
 
-- 
1.7.2.5



Reply to: