def canonicalize_headers(self, r):
        spaces_re = re.compile('\\s+')

        # note: r.headers is a case-insensitive dict and self.headers_to_sign
        # should already be lowercased at this point
        return '\t'.join([
            "%s:%s" % (h, spaces_re.sub(' ', r.headers[h].strip()))
            for h in self.headers_to_sign if r.headers in h
        ])
dataset/ETHPy150Open akamai-open/AkamaiOPEN-edgegrid-python/akamai/edgegrid/edgegrid.py/EdgeGridAuth.canonicalize_headers/swapped operands of `in`