Commit 84d4e083 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix bug introduced in r1820 causing data to be always stored uncompressed.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1824 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aa0d4f2b
......@@ -556,7 +556,7 @@ class Application(object):
# this is a George Bailey object, stored as an empty string
data = ''
compressed_data = compress(data)
if len(compressed_data) > data:
if len(compressed_data) > len(data):
compressed_data = data
compression = 0
else:
......
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