mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
Fix compatibility with python3 of clang-include-fixer.py
clang-include-fixer was recently updated to be python3-compatible. However, an exception handling clause was improperly using the deprecated `message` property of Exception classes, so the code was not yet entirely python3-compatible. Differential Revision: https://reviews.llvm.org/D70902
This commit is contained in:
parent
7483eb656f
commit
aa189ed25f
@ -211,7 +211,7 @@ def main():
|
||||
InsertHeaderToVimBuffer(include_fixer_context, text)
|
||||
print("Added #include {0} for {1}.".format(selected, symbol))
|
||||
except Exception as error:
|
||||
print(error.message, file=sys.stderr)
|
||||
print(error, file=sys.stderr)
|
||||
return
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user