!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


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


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!