Searched refs:with_suffix (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_pathlib.py | 561 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 …]
|
D | test_zipapp.py | 350 target = source.with_suffix('.pyz')
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | tuple_util_test.cc | 71 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/ |
D | make_zip.py | 132 pyc = Path(tmpdir) / rel.with_suffix('.pyc').name 138 f.write(str(pyc), str(rel.with_suffix('.pyc')))
|
/external/python/cpython3/PC/layout/ |
D | main.py | 130 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/ |
D | zipapp.py | 130 target = source.with_suffix('.pyz')
|
D | pathlib.py | 827 def with_suffix(self, suffix): member in PurePath
|
/external/python/cpython3/Doc/library/ |
D | pathlib.rst | 559 .. 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/ |
D | 3.7.1rc1.rst | 555 Fix %-formatting in :meth:`pathlib.PurePath.with_suffix` when formatting an
|
D | 3.5.0a1.rst | 3087 calling Path.with_suffix('') allows removing the suffix again. Patch by 5275 PurePath.with_suffix().
|
/external/python/cpython2/ |
D | configure | 5267 withval=$with_suffix;
|
/external/python/cpython3/ |
D | configure | 5716 withval=$with_suffix;
|
/external/python/cpython3/Misc/ |
D | HISTORY | 1563 - 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.
|