Skip to content

Commit b2ef2c0

Browse files
committed
fixed compression null check
Signed-off-by: Zen <[email protected]>
1 parent b959a25 commit b2ef2c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pycpio"
7-
version = "1.1.0"
7+
version = "1.1.1"
88
authors = [
99
{ name="Desultory", email="[email protected]" },
1010
]

src/pycpio/writer/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def compress(self, data):
3333
import lzma
3434
self.logger.info("Compressing data with xz, original size: %d" % len(data))
3535
data = lzma.compress(data)
36-
elif self.compression is not None:
36+
elif self.compression not in [False, 'False', None, '', 'false']:
3737
raise NotImplementedError("Compression type not supported: %s" % self.compression)
3838
return data
3939

0 commit comments

Comments
 (0)