if comptype == 'gz' or comptype == 'bz2':
kwargs['compresslevel'] = compresslevel
+ if 'max_volume_size' in kwargs:
+ if comptype != 'tar' and filemode in 'wa' \
+ and kwargs['max_volume_size']:
+ import warnings
+ warnings.warn('Only the first volume will be compressed '
+ 'for modes with "w:"!')
+
return func(name, filemode, fileobj, **kwargs)
elif "|" in mode:
enctype=self.fileobj.enctype,
concat_stream=self.fileobj.concat_stream)
else:
+ # here, we lose information about compression/encryption!
fileobj = bltn_open(name, self._mode)
else:
if name is None and hasattr(fileobj, "name"):