none
  ï    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>
  .   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä‚p_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ Y    ‹      Õ–ÝoÚ0ÀßûWx~Ø�Žõ#xêH¥¡R@-Ó4MSebC¬&vdýëçà´M'Ð¨TªöéîâËÝýìóGø!vÇ?GçèÛø²�Fß¿ö{]„k ?Z]€hù�Ãz# 8`„kó€årY_¶êJÏ`|‰ÍÒC0V‹ØÖ™e˜„Å7r€Â„Sæ$
­°)'=Éø¤¦ÔÜÁ¸ûoe€ñ…ˆ¹)tË3Èx¦ôªí6HÅx£4ƒàè‰}„àc»lP¦'Š­Š*‚=et�×Pt²N\¨š„6AšŠ™ì`«rLB‘Í�Ñqƒˆ•40I©¼­ÏÄ#šÚþÕë;?°Iñ7	)J4Ÿvð—ngp:ìD˜hÆC ›}.�Ï&}j,ÊSÁÙVçkï|-î¶Œ¼OÄM¬En…’�®à«¨±JMNë'G�èª—waÿ›?™ŒÑÙÕù`õ®ü”°"Äcu/°~˜Œ¨æÒ¢Hh[7VÒùTåÄä§÷&*k×b–XLª¡�žÏ žª”q]EÞ{_¯—Õ*ÿ)«Ùh¶kAPŽQðù¤ÑFh�õÏå­TKYpý°@ÉTHŽ‰—; 4›(8>imp§ÐÅ+äÉÊÜø.Ã¤b¼WQœƒ%ÉZß¤ÙØ+Èî›"WK®Ý¦ðò%â•7…vçÑ¢¸20yPßÊ2<ÃXjÂZ¼•òwï"3Ÿ”—†CxÐßá;çw—aâåK ¼r�ØÍ�’Ü`R1ößS;¾b |ß…°~O†à_µ³ ç8    8   ˆl–äY>”jj"T% ýÆ…p!S�ÿ�þDÙâÍ”m8ãA@?Ç…m<!ÆÅÄ ?÷     #!/usr/bin/python3
# -*- coding: utf-8 -*-

## --------------------------------------------------------------------
## s3cmd - S3 client
##
## Authors   : Michal Ludvig and contributors
## Copyright : TGRMN Software - http://www.tgrmn.com - and contributors
## Website   : http://s3tools.org
## License   : GPL Version 2
## --------------------------------------------------------------------
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
## --------------------------------------------------------------------

from __future__ import absolute_import, print_function, division

import sys

if sys.version_info < (2, 6):
    sys.stderr.write(u"ERROR: Python 2.6 or higher required, sorry.\n")
    # 72 == EX_OSFILE
    sys.exit(72)

PY3 = (sys.version_info >= (3, 0))

import codecs
import errno
import glob
import io
import locale
import logging
import os
import re
import shutil
import socket
import subprocess
import tempfile
import time
import traceback

from copy import copy
from optparse import OptionParser, Option, OptionValueError, IndentedHelpFormatter
from logging import debug, info, warning, error


try:
    import htmlentitydefs
except Exception:
    # python 3 support
    import html.entities as htmlentitydefs

try:
    unicode
except NameError:
    # python 3 support
    # In python 3, unicode -> str, and str -> bytes
    unicode = str

try:
    unichr
except NameError:
    # python 3 support
    # In python 3, unichr was removed as chr can now do the job
    unichr = chr

try:
    from shutil import which
except ImportError:
    # python2 fallback code
    from distutils.spawn import find_executable as which

if not PY3:
    # ConnectionRefusedError does not exist in python2
    class ConnectionError(OSError):
        pass
    class ConnectionRefusedError(ConnectionError):
        pass


def output(message):
    sys.stdout.write(message + "\n")
    sys.stdout.flush()

def check_args_type(args, type, verbose_type):
    """NOTE: This function looks like to not be used."""
    for arg in args:
        if S3Uri(arg).type != type:
            raise ParameterError("Expecting %s instead of '%s'" % (verbose_type, arg))

def cmd_du(args):
    s3 = S3(Config())
    if len(args) > 0:
        uri = S3Uri(args[0])
        if uri.type == "s3" and uri.has_bucket():
            subcmd_bucket_usage(s3, uri)
            return EX_OK
    subcmd_bucket_usage_all(s3)
    return EX_OK

def subcmd_bucket_usage_all(s3):
    """
    Returns: sum of bucket sizes as integer
    Raises: S3Error
    """
    cfg = Config()
    response = s3.list_all_buckets()

    buckets_size = 0
    for bucket in response["list"]:
        size = sub