Commit 825e6c30 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Define thoses variables even if compression is disabled.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2441 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ee6b1f16
...@@ -642,6 +642,8 @@ class Application(object): ...@@ -642,6 +642,8 @@ class Application(object):
compression = 0 compression = 0
else: else:
assert data_serial is None assert data_serial is None
compression = self.compress
compressed_data = data
if self.compress: if self.compress:
compressed_data = compress(data) compressed_data = compress(data)
if len(compressed_data) > len(data): if len(compressed_data) > len(data):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment