Home
last modified time | relevance | path

Searched refs:_tryorder (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_webbrowser.py224 self._saved_tryorder = webbrowser._tryorder
225 webbrowser._tryorder = []
230 webbrowser._tryorder = self._saved_tryorder
240 self.assertEqual(webbrowser._tryorder, expected_tryorder)
246 self.assertEqual(webbrowser._tryorder, expected_tryorder)
260 self.assertEqual(webbrowser._tryorder, expected_tryorder)
276 self.assertIsNone(webbrowser._tryorder)
282 self.assertTrue(webbrowser._tryorder)
283 self.assertEqual(webbrowser._tryorder[-1], 'Example1')
290 self.assertIsNone(webbrowser._tryorder)
[all …]
/external/python/cpython3/Lib/
Dwebbrowser.py19 _tryorder = None # Preference order of available browsers variable
25 if _tryorder is None:
33 _tryorder.insert(0, name)
35 _tryorder.append(name)
39 if _tryorder is None:
41 if _tryorder is None:
46 alternatives = _tryorder
80 if _tryorder is None:
82 if _tryorder is None:
84 for name in _tryorder:
[all …]
/external/python/cpython2/Lib/
Dwebbrowser.py18 _tryorder = [] # Preference order of available browsers variable
24 _tryorder.append(name)
26 _tryorder.insert(0, name)
33 alternatives = _tryorder
59 for name in _tryorder:
550 _tryorder = [] variable
653 _tryorder = [] variable