We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd9ca1 commit 77efba9Copy full SHA for 77efba9
src/python/tensorflow_cloud/core/experimental/models.py
@@ -293,7 +293,9 @@ def copy_entry_point(file_id, params_file):
293
294
def get_original_lines():
295
"""Gets the file lines of models_entry_point.py as a list of strings."""
296
- with pkg_resources.open_text(__package__, _ENTRY_POINT_TEMPLATE) as file:
+ with pkg_resources.files(__package__).joinpath(
297
+ _ENTRY_POINT_TEMPLATE
298
+ ).open('rt') as file:
299
lines = file.readlines()
300
return lines
301
0 commit comments