]> git.decadent.org.uk Git - dak.git/blobdiff - utils.py
set TZ to UTC while running ls -lR. closes: #99058
[dak.git] / utils.py
index 814a21d80b8198b71064ba8c8fca7f0e085d2cdc..2de33f1ea051b95a9266b15e03786973fa311863 100644 (file)
--- a/utils.py
+++ b/utils.py
@@ -1,6 +1,6 @@
 # Utility functions
 # Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
-# $Id: utils.py,v 1.31 2001-09-13 23:52:37 troup Exp $
+# $Id: utils.py,v 1.32 2001-09-17 11:18:37 troup Exp $
 
 # 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
@@ -505,3 +505,14 @@ def find_next_free (dest, too_many=100):
     return dest;
 
 ################################################################################
+
+def result_join (original, sep = '\t'):
+    list = [];
+    for i in xrange(len(original)):
+        if original[i] == None:
+            list.append("");
+        else:
+            list.append(original[i]);
+    return string.join(list, sep);
+
+################################################################################