Exclude flags module from the public API.

Change: 147127454
This commit is contained in:
Martin Wicke 2017-02-10 00:18:29 -08:00 committed by TensorFlower Gardener
parent f7c13811f0
commit a70c4b5dba

View File

@ -39,8 +39,14 @@ class PublicAPIVisitor(object):
# sytem modules exposed through platforms for compatibility reasons.
# Each entry maps a module path to a name to ignore in traversal.
_do_not_descend_map = {
# TODO(drpng): This can be removed once sealed off.
'': ['platform', 'pywrap_tensorflow', 'user_ops', 'python', 'tools'],
'': [
'flags', # Don't add flags
'platform', # TODO(drpng): This can be removed once sealed off.
'pywrap_tensorflow', # TODO(drpng): This can be removed once sealed.
'user_ops', # TODO(drpng): This can be removed once sealed.
'python',
'tools'
],
# Exclude protos, they leak a lot.
'core': ['protobuf'],