X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/blobdiff_plain/a2916c0635fec5b45ad742904db9f5769b48f53d..1f8350d2e314e9497fd58c11a125f15b51e98238:/backend.py diff --git a/backend.py b/backend.py index 1725d7d..1967cda 100644 --- a/backend.py +++ b/backend.py @@ -136,7 +136,7 @@ class FlatFileRecord (BasicRecord): raise U.ExpectedError, \ (500, "New `%s' field contains %s" % (k, what)) fields[v] = val - return me._delim.join(fields) + return me._delim.join(fields) + '\n' class FlatFileBackend (object): """ @@ -208,7 +208,6 @@ class FlatFileBackend (object): f_out.write(line) else: f_out.write(rec._format()) - f_out.write('\n') ## Update the permissions on the new file. Don't try to fix the ## ownership (we shouldn't be running as root) or the group (the @@ -227,7 +226,7 @@ class FlatFileBackend (object): try: OS.unlink(tmp) except: pass - ## If there's a locekfile, then acquire it around the meat of this + ## If there's a lockfile, then acquire it around the meat of this ## function; otherwise just do the job. if me._lock is None: doit()