diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-17 16:01:23 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-17 16:01:23 -0500 |
commit | db7825a33067e5c0873250488ba0543968765abb (patch) | |
tree | b1cb0c71fda78f7df825119098cfd3daa3e2c98d /coverage/sqldata.py | |
parent | 26678262c2f0cf2b8a619dd1e60600d241aae2aa (diff) | |
download | python-coveragepy-git-db7825a33067e5c0873250488ba0543968765abb.tar.gz |
refactor: make this more apparent
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r-- | coverage/sqldata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py index e3c59fcb..05450999 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -349,7 +349,8 @@ class CoverageData(SimpleReprMixin): if self._debug.should("dataio"): self._debug.write(f"Dumping data from data file {self._filename!r}") with self._connect() as con: - return b"z" + zlib.compress(con.dump().encode("utf-8")) + script = con.dump() + return b"z" + zlib.compress(script.encode("utf-8")) @contract(data="bytes") def loads(self, data): |