def write(self, f, href, length=None):
        logger.info(href % u("write: %s"))
        href = remote(href)
        href = os.path.join(u("/"), href)
        try:
            conn = self.getConnection()
            headers = self.getHeaders()
            headers.update({
                "Content-Type": "application/binary",
                "Expect": "100-continue"
            })
            if length:
                headers["Content-Length"] = length
            href = _encode_utf8(href)
            href = quote(href)
            conn.request("PUT", href, f, headers)
            response = conn.getresponse()
            checkResponse(response)
            data = response.read()
            return data
        except ConnectionException:
            raise
        except Exception:
            e = sys.exc_info()[1]
            logger.exception(e)
dataset/ETHPy150Open lexich/yandex-disk-webdav/yandexwebdav.py/Config.write/swapped operands of `%`