def upload_url(self, params):
        """Construct upload URL"""

        if not isinstance(params, types.DictType):
            raise TypeError("'params' argument must be a dict, not %s" % type(params).__name__)

        params = params.copy()

        url = params['protocol'] + u"://" + params['address'] + params['path']
        query = self.query_string(params['query'])
        url = url + '?' + query

        return url
dataset/ETHPy150Open rmnl/clack/clack/account_client.py/API.upload_url/original