/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz')
57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today')
66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')")
71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}')
72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}')
73 eq(s.safe_substitute(dict(what='ham', meal='dinner')),
75 eq(s.safe_substitute(dict(who='tim', what='ham')),
77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')),
126 self.assertRaises(ValueError, s.safe_substitute, {})
151 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham') [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham' [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham' [all...] |
/external/python/cpython2/Lib/test/ |
test_string.py | 267 eq(s.safe_substitute(d), '%(foo)s baz baz') 274 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 283 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 288 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 289 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 290 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 292 eq(s.safe_substitute(dict(who='tim', what='ham')), 294 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 343 self.assertRaises(ValueError, s.safe_substitute, {}) 375 self.assertEqual(t.safe_substitute(), tmpl [all...] |
/external/python/cpython3/Lib/test/ |
test_string.py | 236 eq(s.safe_substitute(d), '%(foo)s baz baz') 243 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 252 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 257 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 258 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 259 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 261 eq(s.safe_substitute(dict(who='tim', what='ham')), 263 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 312 self.assertRaises(ValueError, s.safe_substitute, {}) 344 self.assertEqual(t.safe_substitute(), tmpl [all...] |
/external/autotest/client/site_tests/firmware_TouchMTB/ |
report_html.py | 76 self.doc = Template(self.doc.safe_substitute(head=self._html_head(), 95 vlog_content = self.validator_template.safe_substitute( 113 gesture = self.gesture_template.safe_substitute( 124 new_table = self.table.safe_substitute(gestures=gestures) 125 new_doc = self.doc.safe_substitute(test_version=test_version,
|
/art/test/712-varhandle-invocations/util-src/ |
generate_java.py | 126 return list(map(lambda d: Template(d).safe_substitute(dictionary), self.declarations)) 132 return Template(self.lookup).safe_substitute(dictionary) 141 return Template(self.get_value_).safe_substitute(dictionary) [all...] |
/external/python/cpython3/Lib/ |
string.py | 128 def safe_substitute(*args, **kws): member in class:Template 130 raise TypeError("descriptor 'safe_substitute' of 'Template' object "
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/ |
BuildEngine.py | 278 File = string.Template(str(File)).safe_substitute(BuildRulePlaceholderDict)
279 File = string.Template(str(File)).safe_substitute(BuildRulePlaceholderDict)
311 CommandString = string.Template(CommandString).safe_substitute(Macros)
312 CommandString = string.Template(CommandString).safe_substitute(Macros)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
string.py | 178 def safe_substitute(*args, **kws):
member in class:Template 180 raise TypeError("descriptor 'safe_substitute' of 'Template' object "
|
/external/python/cpython2/Doc/tutorial/ |
stdlib2.rst | 91 :meth:`~string.Template.safe_substitute` method may be more appropriate --- 100 >>> t.safe_substitute(d)
|
/external/python/cpython2/Lib/ |
string.py | 178 def safe_substitute(*args, **kws): member in class:Template 180 raise TypeError("descriptor 'safe_substitute' of 'Template' object "
|
/external/python/cpython3/Doc/tutorial/ |
stdlib2.rst | 91 :meth:`~string.Template.safe_substitute` method may be more appropriate --- 100 >>> t.safe_substitute(d)
|
/external/linux-kselftest/tools/testing/selftests/tc-testing/ |
tdc.py | 32 subcmd = tcmd.safe_substitute(NAMES)
|
/external/python/cpython2/Doc/library/ |
string.rst | 694 .. method:: safe_substitute(mapping[, **kws]) 704 raising an exception. In another sense, :meth:`safe_substitute` may be 731 >>> Template('$who likes $what').safe_substitute(d) [all...] |
/external/python/cpython3/Doc/library/ |
string.rst | 698 .. method:: safe_substitute(mapping, **kwds) 708 raising an exception. In another sense, :meth:`safe_substitute` may be 735 >>> Template('$who likes $what').safe_substitute(d) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
string.py | 174 def safe_substitute(self, *args, **kws):
member in class:Template
|
/external/adhd/scripts/audio_thread_log_viewer/ |
viewer_c3.py | 378 filled = page_template.safe_substitute(
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
/external/python/cpython2/Doc/whatsnew/ |
2.4.rst | 201 raise a :exc:`KeyError`. There's also a :meth:`safe_substitute` method that 205 >>> t.safe_substitute({'page':3}) [all...] |