Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_webbrowser.py222 self._saved_tryorder = webbrowser._tryorder
223 webbrowser._tryorder = []
228 webbrowser._tryorder = self._saved_tryorder
238 self.assertEqual(webbrowser._tryorder, expected_tryorder)
244 self.assertEqual(webbrowser._tryorder, expected_tryorder)
258 self.assertEqual(webbrowser._tryorder, expected_tryorder)
274 self.assertIsNone(webbrowser._tryorder)
280 self.assertTrue(webbrowser._tryorder)
281 self.assertEqual(webbrowser._tryorder[-1], 'Example1')
288 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
72 if _tryorder is None:
74 if _tryorder is None:
76 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