diff --git a/lib/cfv/common.py b/lib/cfv/common.py index 576cdab..aebb65f 100644 --- a/lib/cfv/common.py +++ b/lib/cfv/common.py @@ -1314,7 +1314,8 @@ def make_std_filename(filename): def make_chksumfile_create(self, filename): if config.announceurl is None: raise EnvironmentError('announce url required') - file = fileutil.open_write_raw(filename, config) + config.encoding = 'raw' + file = fileutil.open_write(filename, config) self.sh = hash.sha_new() self.files = [] self.pieces = []