• Vincent Pelletier's avatar
    apachedex: Tolerate non-ascii URLs. · d743c185
    Vincent Pelletier authored
    Otherwise, if `url` contains non-ascii chars, startswith will fail with
    an error like:
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128)
    becasue 'http' is unicode. So byte-ify it to avoid this transcoding.
    d743c185
__init__.py 60.4 KB