Commit a175b21e by Dan Committed by Wenzel Jakob

Avoid decoding already-decoded strings from cindex.

Recent versions of clang.cindex include [code][1] that converts
the internal byte strings to python str for you.

  [1]: https://github.com/llvm-mirror/clang/blob/master/bindings/python/clang/cindex.py#L72
parent d23c821b
...@@ -59,7 +59,7 @@ job_semaphore = Semaphore(job_count) ...@@ -59,7 +59,7 @@ job_semaphore = Semaphore(job_count)
output = [] output = []
def d(s): def d(s):
return s.decode('utf8') return s if isinstance(s, str) else s.decode('utf8')
def sanitize_name(name): def sanitize_name(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment