summaryrefslogtreecommitdiffstats
path: root/Modules/_lzmamodule.c
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 22:40:57 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 22:40:57 (GMT)
commit486a0451f3cb7bd71b1ca75ac3e915396f091733 (patch)
tree054f83869fcd15fd0a2bca369cf67188fbc3a248 /Modules/_lzmamodule.c
parentbc459bb484a48ae6d04ea0a57e8924e7fee2e628 (diff)
downloadcpython-486a0451f3cb7bd71b1ca75ac3e915396f091733.zip
cpython-486a0451f3cb7bd71b1ca75ac3e915396f091733.tar.gz
cpython-486a0451f3cb7bd71b1ca75ac3e915396f091733.tar.bz2
Fix buildbot failures in test_lzma.
Diffstat (limited to 'Modules/_lzmamodule.c')
-rw-r--r--Modules/_lzmamodule.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c
index 92dd06d..8ea3d01 100644
--- a/Modules/_lzmamodule.c
+++ b/Modules/_lzmamodule.c
@@ -404,17 +404,16 @@ build_filter_spec(const lzma_filter *f)
ADD_FIELD(f, id);
switch (f->id) {
- case LZMA_FILTER_LZMA1:
- case LZMA_FILTER_LZMA2: {
+ /* For LZMA1 filters, lzma_properties_{encode,decode}() only look at the
+ lc, lp, pb, and dict_size fields. For LZMA2 filters, only the
+ dict_size field is used. */
+ case LZMA_FILTER_LZMA1: {
lzma_options_lzma *options = f->options;
- ADD_FIELD(options, dict_size);
ADD_FIELD(options, lc);
ADD_FIELD(options, lp);
ADD_FIELD(options, pb);
- ADD_FIELD(options, mode);
- ADD_FIELD(options, nice_len);
- ADD_FIELD(options, mf);
- ADD_FIELD(options, depth);
+ case LZMA_FILTER_LZMA2:
+ ADD_FIELD(options, dict_size);
break;
}
case LZMA_FILTER_DELTA: {