Home
last modified time | relevance | path

Searched refs:with_suffix (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_pathlib.py561 self.assertEqual(P('a/b').with_suffix('.gz'), P('a/b.gz'))
562 self.assertEqual(P('/a/b').with_suffix('.gz'), P('/a/b.gz'))
563 self.assertEqual(P('a/b.py').with_suffix('.gz'), P('a/b.gz'))
564 self.assertEqual(P('/a/b.py').with_suffix('.gz'), P('/a/b.gz'))
566 self.assertEqual(P('a/b.py').with_suffix(''), P('a/b'))
567 self.assertEqual(P('/a/b').with_suffix(''), P('/a/b'))
569 self.assertRaises(ValueError, P('').with_suffix, '.gz')
570 self.assertRaises(ValueError, P('.').with_suffix, '.gz')
571 self.assertRaises(ValueError, P('/').with_suffix, '.gz')
573 self.assertRaises(ValueError, P('a/b').with_suffix, 'gz')
[all …]
Dtest_zipapp.py350 target = source.with_suffix('.pyz')
/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_util_test.cc71 HloInstruction* with_suffix = in TEST() local
74 EXPECT_THAT(with_suffix, op::Tuple(op::GetTupleElement(op::Parameter(0), 0), in TEST()
/external/python/cpython2/Tools/nuget/
Dmake_zip.py132 pyc = Path(tmpdir) / rel.with_suffix('.pyc').name
138 f.write(str(pyc), str(rel.with_suffix('.pyc')))
/external/python/cpython3/PC/layout/
Dmain.py130 pdb = src.with_suffix(".pdb")
134 lib = src.with_suffix(".lib")
278 return _compile_one_py(src, dest.with_suffix(".pyc"), dest, optimize=2, checked=checked)
285 zf.write(str(pyc), dest.with_suffix(".pyc"))
/external/python/cpython3/Lib/
Dzipapp.py130 target = source.with_suffix('.pyz')
Dpathlib.py827 def with_suffix(self, suffix): member in PurePath
/external/python/cpython3/Doc/library/
Dpathlib.rst559 .. method:: PurePath.with_suffix(suffix)
566 >>> p.with_suffix('.bz2')
569 >>> p.with_suffix('.txt')
572 >>> p.with_suffix('')
/external/python/cpython3/Misc/NEWS.d/
D3.7.1rc1.rst555 Fix %-formatting in :meth:`pathlib.PurePath.with_suffix` when formatting an
D3.5.0a1.rst3087 calling Path.with_suffix('') allows removing the suffix again. Patch by
5275 PurePath.with_suffix().
/external/python/cpython2/
Dconfigure5267 withval=$with_suffix;
/external/python/cpython3/
Dconfigure5716 withval=$with_suffix;
/external/python/cpython3/Misc/
DHISTORY1563 - Issue #20639: calling Path.with_suffix('') allows removing the suffix
2140 PurePath.with_suffix().
2889 - Issue #20111: pathlib.Path.with_suffix() now sanity checks the given suffix.