File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,7 @@ def extract():
118
118
119
119
# Access something in contrib so tf.contrib is properly loaded (it's hidden
120
120
# behind lazy loading)
121
- # TODO(wicke): Enable contrib traversal once contrib is sealed.
122
- # _ = tf.contrib.__name__
121
+ _ = tf .contrib .__name__
123
122
124
123
# Exclude some libaries in contrib from the documentation altogether.
125
124
# TODO(wicke): Shrink this list.
@@ -163,6 +162,7 @@ def extract():
163
162
],
164
163
'contrib.learn' : [
165
164
'datasets' ,
165
+ 'head' ,
166
166
'graph_actions' ,
167
167
'io' ,
168
168
'models' ,
Original file line number Diff line number Diff line change @@ -264,8 +264,8 @@ def _get_arg_spec(func):
264
264
argspec_defaults = list (argspec .defaults [partial_args - first_default_arg :])
265
265
266
266
first_default_arg = max (0 , first_default_arg - partial_args )
267
- for kwarg in func .keywords :
268
- if kwarg in argspec .args :
267
+ for kwarg in ( func .keywords or []) :
268
+ if kwarg in ( argspec .args or []) :
269
269
i = argspec_args .index (kwarg )
270
270
argspec_args .pop (i )
271
271
if i >= first_default_arg :
You can’t perform that action at this time.
0 commit comments