]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/logging.py
create uncompressed Packages files for etch/sid while Contents generation bug exists
[dak.git] / daklib / logging.py
index bd81582a2bceaf64651edf05c6ec6b4934f1c8c9..9b27aeb790f906eac7fbd6a1a666586954d68e89 100644 (file)
@@ -1,8 +1,7 @@
 #!/usr/bin/env python
 
 # Logging functions
-# Copyright (C) 2001, 2002  James Troup <james@nocrew.org>
-# $Id: logging.py,v 1.4 2005-11-15 09:50:32 ajt Exp $
+# Copyright (C) 2001, 2002, 2006  James Troup <james@nocrew.org>
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -59,7 +58,7 @@ class Logger:
         timestamp = time.strftime("%Y%m%d%H%M%S")
         details.insert(0, timestamp)
         # Force the contents of the list to be string.join-able
-        details = map(str, details)
+        details = [ str(i) for i in details ]
         # Write out the log in TSV
         self.logfile.write("|".join(details)+'\n')
         # Flush the output to enable tail-ing