kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From granthe...@apache.org
Subject [kudu] 02/02: [build] Fix IWYU script
Date Thu, 16 Jan 2020 17:12:01 GMT
This is an automated email from the ASF dual-hosted git repository.

granthenke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit b924d18850cbf7fe98402265a0305acab32937fc
Author: Grant Henke <granthenke@apache.org>
AuthorDate: Thu Jan 16 10:29:15 2020 -0600

    [build] Fix IWYU script
    
    This is a follow up to 965e59f to fix iwyu.py
    
    Change-Id: I8a6c05ad2a715887dd50e05df8fc83ed3cd4e72f
    Reviewed-on: http://gerrit.cloudera.org:8080/15052
    Tested-by: Kudu Jenkins
    Reviewed-by: Adar Dembo <adar@cloudera.com>
---
 build-support/iwyu.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-support/iwyu.py b/build-support/iwyu.py
index 06efbbb..9af043b 100755
--- a/build-support/iwyu.py
+++ b/build-support/iwyu.py
@@ -18,7 +18,7 @@
 # under the License.
 
 from __future__ import print_function
-from io import BytesIO
+from io import StringIO
 import glob
 import json
 import logging
@@ -175,7 +175,7 @@ def _do_iwyu(flags, paths):
     logging.info("Dumping iwyu output to %s", flags.dump_iwyu_output)
     with open(flags.dump_iwyu_output, "w") as f:
       print(iwyu_output, file=f)
-  stream = BytesIO(iwyu_output)
+  stream = StringIO(iwyu_output)
   fixer_flags = _get_fixer_flags(flags)
 
   # Passing None as 'fix_paths' tells the fixer script to process


Mime
View raw message