diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/londiste/handler.py | 2 | ||||
| -rw-r--r-- | python/skytools/gzlog.py | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/python/londiste/handler.py b/python/londiste/handler.py index 51fa603a..72d98b43 100644 --- a/python/londiste/handler.py +++ b/python/londiste/handler.py @@ -145,7 +145,7 @@ class BaseHandler: def real_copy(self, src_tablename, src_curs, dst_curs, column_list): """do actual table copy and return tuple with number of bytes and rows - copyed + copied """ condition = self.get_copy_condition(src_curs, dst_curs) return skytools.full_copy(src_tablename, src_curs, dst_curs, diff --git a/python/skytools/gzlog.py b/python/skytools/gzlog.py index 558e2813..0db40fc3 100644 --- a/python/skytools/gzlog.py +++ b/python/skytools/gzlog.py @@ -1,8 +1,8 @@ """Atomic append of gzipped data. -The point is - if several gzip streams are concated, they -are read back as one whose stream. +The point is - if several gzip streams are concatenated, +they are read back as one whole stream. """ import gzip @@ -22,7 +22,7 @@ def gzip_append(filename, data, level = 6): g.write(data) g.close() zdata = buf.getvalue() - + # append, safely f = open(filename, "a+", 0) f.seek(0, 2) @@ -36,4 +36,3 @@ def gzip_append(filename, data, level = 6): f.truncate() f.close() raise ex - |
