From 4a3161e4ab330f33c6fd47773225238e92180846 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 23 May 2018 23:40:59 +0000 Subject: [PATCH] Fix pylint issue in the master branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The latest master branch has the following pylint failure that caused `Ubuntu Sanity — Internal CI build failed`: ``` 53 FAIL: Found 2 non-whitelited pylint errors: 54 tensorflow/contrib/cmake/tools/create_def_file.py:47: [C0301(line-too-long), ] Line too long (106/80) 55 56 tensorflow/contrib/cmake/tools/create_def_file.py:61: [C0301(line-too-long), ] Line too long (90/80) ``` This PR addresses the above issues. Signed-off-by: Yong Tang --- tensorflow/contrib/cmake/tools/create_def_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorflow/contrib/cmake/tools/create_def_file.py b/tensorflow/contrib/cmake/tools/create_def_file.py index 0d32a12..cd06e6f 100644 --- a/tensorflow/contrib/cmake/tools/create_def_file.py +++ b/tensorflow/contrib/cmake/tools/create_def_file.py @@ -44,7 +44,8 @@ UNDNAME = "undname.exe" DUMPBIN = "dumpbin.exe" # Exclude if matched -EXCLUDE_RE = re.compile(r"RTTI|deleting destructor|::internal::|Internal|python_op_gen_internal|grappler") +EXCLUDE_RE = re.compile(r"RTTI|deleting destructor|::internal::|Internal|" + r"python_op_gen_internal|grappler") # Include if matched before exclude INCLUDEPRE_RE = re.compile(r"google::protobuf::internal::ExplicitlyConstructed|" -- 2.7.4