Skip to content

Commit

Permalink
Hide "re" from the docs system.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 169706174
  • Loading branch information
MarkDaoust authored and tensorflower-gardener committed Sep 22, 2017
1 parent a1a5ed2 commit f69e32f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from __future__ import print_function


import re
import re as _re

from tensorflow.core.framework import graph_pb2 as _graph_pb2
from tensorflow.core.protobuf import meta_graph_pb2 as _meta_graph_pb2
Expand Down Expand Up @@ -644,7 +644,7 @@ def _is_removed_mentioned(s, removed_op_names):
# /foo/bar. This regex ensures that we handle these two nodes
# as separate entities. It matches on nodes having names in the form of
# '/foo/bar_x' as well as nodes having names in the form of 'foo.'
s_names = re.findall(r'((?:[\/]?[a-zA-Z0-9\_]*)*)', compat.as_str_any(s))
s_names = _re.findall(r'((?:[\/]?[a-zA-Z0-9\_]*)*)', compat.as_str_any(s))
for removed_op_name in removed_op_names:
for s_name in s_names:
if s_name.endswith(removed_op_name):
Expand Down

0 comments on commit f69e32f

Please sign in to comment.