Skip to content

Commit ab1bb0a

Browse files
Conchylicultorcopybara-github
authored andcommitted
Deprecate the urls DatasetInfo field
PiperOrigin-RevId: 280546683
1 parent f567c68 commit ab1bb0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tensorflow_datasets/core/dataset_info.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ def __init__(self,
139139
**redistribution_info) if redistribution_info else None)
140140

141141
if urls: # TODO(epot):Delete field once every user have been migrated
142-
if isinstance(urls, six.string_types):
143-
urls = [urls]
144-
homepage = urls[0]
142+
raise ValueError("`urls=` field is deprecated. Please use "
143+
"`homepage='{}'` instead.".format(urls[0]))
145144
if homepage:
146145
self._info_proto.location.urls[:] = [homepage]
147146

0 commit comments

Comments
 (0)