diff --git a/tensorflow/python/estimator/gc.py b/tensorflow/python/estimator/gc.py index 251e17e7aea..a8b0d49eb3a 100644 --- a/tensorflow/python/estimator/gc.py +++ b/tensorflow/python/estimator/gc.py @@ -203,7 +203,7 @@ def _get_paths(base_dir, parser): for r in raw_paths: # ListDirectory() return paths with "/" at the last if base_dir was GCS URL if r[-1] == "/": - r = r[0:len(r)-1] + r = r[0:len(r)-1] p = parser(Path(os.path.join(compat.as_str_any(base_dir), compat.as_str_any(r)), None))