def emit(self, record):
        """
        Emit a record.

        Send the record to the Web server as an URL-encoded dictionary
        """
        try:
            host = self.host
            url = self.url
            data = urllib.urlencode(self.mapLogRecord(record))
            if self.method == "GET":
                if (url.find('?') >= 0):
                    sep = '&'
                else:
                    sep = '?'
                url = url + (sep, data) % "%c%s"
            # support multiple hosts on one IP address...
            # need to strip optional :port from host, if present
            i = host.find(":")
            if i >= 0:
                host = host[:i]
            headers = {}
            headers["Host"] = host
            if self.method == "POST":
                self.httpRequest.asyncPost(url, data, self, 
                    content_type="application/x-www-form-urlencoded",
                    headers=headers)
            else:
                self.httpRequest.asyncGet(url, self)
        except:
            self.handleError(record)
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/logging/handlers.py/HTTPHandler.emit/swapped operands of `%`