Fixed in -alpha3.

On Mar 26, 2013 11:49 PM, "Владимир Шушков" <vladimir@shushkov.ru> wrote:
v-shushkov-macbook:s3cmd v_shushkov$ s3cmd put --acl-public --mime-type=text/html README s3://my_bucket/README_PUBLIC_3

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please report the following lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: UnboundLocalError: local variable 'content_encoding' referenced before assignment
S3cmd:   1.5.0-alpha1

Traceback (most recent call last):
  File "/usr/local/bin/s3cmd", line 2037, in <module>
    main()
  File "/usr/local/bin/s3cmd", line 1978, in main
    cmd_func(args)
  File "/usr/local/bin/s3cmd", line 321, in cmd_object_put
    response = s3.object_put(full_name, uri_final, extra_headers, extra_label = seq_label)
  File "/Library/Python/2.7/site-packages/S3/S3.py", line 420, in object_put
    if not content_encoding:
UnboundLocalError: local variable 'content_encoding' referenced before assignment

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
    Please report the above lines to:
   s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

--
С уважением,
Шушков Владимир
тел.: +7 914 979 7222
http://shushkov.ru

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d