HomeSort by relevance Sort by last modified time
    Searched refs:OrderedDict (Results 1 - 25 of 48) sorted by null

1 2

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/
test_decode.py 3 from collections import OrderedDict
39 od = self.loads(s, object_pairs_hook=OrderedDict)
40 self.assertEqual(od, OrderedDict(p))
41 self.assertEqual(type(od), OrderedDict)
43 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
45 OrderedDict(p))
47 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
48 OrderedDict())
50 object_pairs_hook=OrderedDict),
51 OrderedDict([('empty', OrderedDict())])
    [all...]
test_unicode.py 1 from collections import OrderedDict
63 od = self.loads(s, object_pairs_hook = OrderedDict)
64 self.assertEqual(od, OrderedDict(p))
65 self.assertEqual(type(od), OrderedDict)
68 object_pairs_hook = OrderedDict,
70 OrderedDict(p))
test_encode_basestring_ascii.py 1 from collections import OrderedDict
36 s = self.dumps(OrderedDict(items))
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/
test_decode.py 3 from collections import OrderedDict
39 od = self.loads(s, object_pairs_hook=OrderedDict)
40 self.assertEqual(od, OrderedDict(p))
41 self.assertEqual(type(od), OrderedDict)
43 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
45 OrderedDict(p))
47 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
48 OrderedDict())
50 object_pairs_hook=OrderedDict),
51 OrderedDict([('empty', OrderedDict())])
    [all...]
test_unicode.py 1 from collections import OrderedDict
63 od = self.loads(s, object_pairs_hook = OrderedDict)
64 self.assertEqual(od, OrderedDict(p))
65 self.assertEqual(type(od), OrderedDict)
68 object_pairs_hook = OrderedDict,
70 OrderedDict(p))
test_encode_basestring_ascii.py 1 from collections import OrderedDict
36 s = self.dumps(OrderedDict(items))
  /external/chromium_org/tools/deep_memory_profiler/lib/
ordered_dict.py 11 from collections import OrderedDict # pylint: disable=E0611,W0611
19 from simplejson import OrderedDict # pylint: disable=W0611
  /external/chromium_org/tools/json_schema_compiler/
json_parse.py 20 from collections import OrderedDict
26 object_pairs_hook=OrderedDict)
51 from simplejson import OrderedDict
57 object_pairs_hook=OrderedDict)
61 return isinstance(item, (dict, OrderedDict))
idl_schema.py 12 from json_parse import OrderedDict
73 params = OrderedDict()
141 properties = OrderedDict()
167 properties = OrderedDict()
183 parameter_comments = OrderedDict()
217 def __init__(self, typeref, parent, additional_properties=OrderedDict()):
234 properties['items'] = OrderedDict()
251 properties['additionalProperties'] = OrderedDict()
263 properties['additionalProperties'] = OrderedDict()
337 self.callbacks = OrderedDict()
    [all...]
  /external/chromium_org/tools/deep_memory_profiler/subcommands/
cat.py 10 from lib.ordered_dict import OrderedDict
43 json_root = OrderedDict()
59 orders = OrderedDict()
60 orders['worlds'] = OrderedDict()
62 orders['worlds'][world] = OrderedDict()
63 orders['worlds'][world]['breakdown'] = OrderedDict()
87 root = OrderedDict()
89 root['worlds'] = OrderedDict()
98 root = OrderedDict()
107 root['units'] = OrderedDict()
    [all...]
  /external/markdown/markdown/
odict.py 1 class OrderedDict(dict):
9 instance = super(OrderedDict, cls).__new__(cls, *args, **kwargs)
16 super(OrderedDict, self).__init__(data)
31 super(OrderedDict, self).__setitem__(key, value)
36 super(OrderedDict, self).__delitem__(key)
44 result = super(OrderedDict, self).pop(k, *args)
53 result = super(OrderedDict, self).popitem()
62 yield key, super(OrderedDict, self).__getitem__(key)
71 return [super(OrderedDict, self).__getitem__(k) for k in self.keyOrder]
75 yield super(OrderedDict, self).__getitem__(key
    [all...]
blockparser.py 45 self.blockprocessors = markdown.odict.OrderedDict()
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_collections.py 5 from collections import namedtuple, Counter, OrderedDict
769 OrderedDict([('a', 1), ('b', 2)], None) # too many args
771 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
772 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
773 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input
774 self.assertEqual(list(OrderedDict([('a', 1), ('b', 2), ('c', 9), ('d', 4)],
778 self.assertEqual(inspect.getargspec(OrderedDict.__dict__['__init__']).args,
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_collections.py 5 from collections import namedtuple, Counter, OrderedDict
769 OrderedDict([('a', 1), ('b', 2)], None) # too many args
771 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
772 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
773 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input
774 self.assertEqual(list(OrderedDict([('a', 1), ('b', 2), ('c', 9), ('d', 4)],
778 self.assertEqual(inspect.getargspec(OrderedDict.__dict__['__init__']).args,
    [all...]
  /external/chromium_org/third_party/simplejson/
tool.py 30 object_pairs_hook=json.OrderedDict,
ordered_dict.py 1 """Drop-in replacement for collections.OrderedDict by Raymond Hettinger
19 class OrderedDict(dict, DictMixin):
113 if isinstance(other, OrderedDict):
  /external/chromium_org/tools/find_runtime_symbols/
find_runtime_symbols.py 27 from collections import OrderedDict # pylint: disable=E0611
32 from simplejson import OrderedDict
121 result = OrderedDict()
134 result = OrderedDict()
147 result = OrderedDict()
  /external/chromium_org/chrome/common/extensions/docs/server2/test_data/
canned_data.py 8 from third_party.json_schema_compiler.json_parse import OrderedDict
12 CANNED_CHANNELS = OrderedDict([
20 CANNED_BRANCHES = OrderedDict([
  /external/chromium_org/tools/deep_memory_profiler/
accumulate.py 23 from lib.ordered_dict import OrderedDict
58 category_tree = OrderedDict()
122 if isinstance(sub, dict) or isinstance(sub, OrderedDict):
134 isinstance(category_tree[label], OrderedDict)):
145 flattened = OrderedDict()
212 data = json.loads(cat_input.read(), object_pairs_hook=OrderedDict)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/
util.py 2 from collections import namedtuple, OrderedDict
137 c = OrderedDict()
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/
util.py 2 from collections import namedtuple, OrderedDict
137 c = OrderedDict()
  /external/chromium_org/tools/gyp/pylib/gyp/
ordered_dict.py 3 # http://docs.python.org/2/library/collections.html#collections.OrderedDict
8 # Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.
22 class OrderedDict(dict):
220 for k in vars(OrderedDict()):
246 if isinstance(other, OrderedDict):
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
collections.py 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
23 ### OrderedDict
26 class OrderedDict(dict):
181 for k in vars(OrderedDict()):
207 if isinstance(other, OrderedDict):
259 'Return a new OrderedDict which maps field names to their values'
260 return OrderedDict(zip(self._fields, self))
358 OrderedDict=OrderedDict, _property=property, _tuple=tuple)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
collections.py 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
23 ### OrderedDict
26 class OrderedDict(dict):
181 for k in vars(OrderedDict()):
207 if isinstance(other, OrderedDict):
259 'Return a new OrderedDict which maps field names to their values'
260 return OrderedDict(zip(self._fields, self))
358 OrderedDict=OrderedDict, _property=property, _tuple=tuple)
  /external/chromium_org/native_client_sdk/src/build_tools/
update_sdktools.py 61 return json.loads(json_string, object_pairs_hook=collections.OrderedDict)

Completed in 383 milliseconds

1 2