text: #!/usr/bin/env python
  # encoding: utf-8
  #
  # Copyright (c) 2008 Doug Hellmann All rights reserved.
  #
  """
  """
  
  __version__ = "$Id$"
  #end_pymotw_header
  
  import zlib
  
  original_data = 'This is the original text.'
  
  fmt = '%15s  %15s'
  print fmt % ('len(data)', 'len(compressed)')
  print fmt % ('-' * 15, '-' * 15)
  
  for i in xrange(5):
      data = original_data * i
      compressed = zlib.compress(data)
      highlight = '*' if len(data) < len(compressed) else ''
      print fmt % (len(data), len(compressed)), highlight
  