File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
tensorflow_datasets/core/utils Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -354,12 +354,8 @@ def incomplete_files(
354354
355355def is_incomplete_file (path : epath .Path ) -> bool :
356356 """Returns whether the given filename suggests that it's incomplete."""
357- return bool (
358- re .search (
359- rf'^{ re .escape (constants .INCOMPLETE_PREFIX )} [0-9a-fA-F]{{32}}\..+$' ,
360- path .name ,
361- )
362- )
357+ regex = rf'{ re .escape (constants .INCOMPLETE_PREFIX )} [0-9a-fA-F]{{32}}\..+'
358+ return bool (re .search (rf'^{ regex } $' , path .name ))
363359
364360
365361@contextlib .contextmanager
Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16- """Tests for py_utils."""
17-
1816import collections
1917import pathlib
2018
You can’t perform that action at this time.
0 commit comments