X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils.py;h=2de33f1ea051b95a9266b15e03786973fa311863;hb=934bcd8bfb5e5d4e7b28dced10e033a5fcf8c10d;hp=814a21d80b8198b71064ba8c8fca7f0e085d2cdc;hpb=5fbc2d55d4ce38253dea48fd0a23f7a9fb38f3e4;p=dak.git diff --git a/utils.py b/utils.py index 814a21d8..2de33f1e 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,6 @@ # Utility functions # Copyright (C) 2000, 2001 James Troup -# $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); + +################################################################################