Skip to content

Commit

Permalink
Restore Python 3 support for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 19, 2017
1 parent 8d66457 commit 73c0460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/py/autowig/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,8 @@ def pre_processing(asg, headers, flags, **kwargs):
warnings.warn('System includes not computed: clang command failed', Warning)
else:
out, err = s.communicate()
if six.PY3:
err = err.decode('ascii', 'ignore')
sysincludes = err.splitlines()
if '#include <...> search starts here:' not in sysincludes or 'End of search list.' not in sysincludes:
warnings.warn('System includes not computed: parsing clang command output failed', Warning)
Expand Down

0 comments on commit 73c0460

Please sign in to comment.