X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/011cbd1b417a29bbcb189f86833bac773ba4a6f7..680e3a32c2dbda533837893336d3b7d7f3c439a6:/stgit/utils.py diff --git a/stgit/utils.py b/stgit/utils.py index 9465fe0..b941f7c 100644 --- a/stgit/utils.py +++ b/stgit/utils.py @@ -39,6 +39,14 @@ def write_string(filename, string, multiline = False): print >> f, string f.close() +def append_strings(filename, strings): + """Appends string sequence to file + """ + f = file(filename, 'a+') + for string in strings: + print >> f, string + f.close() + def append_string(filename, string): """Appends string to file """