File: jsondict.py

package info (click to toggle)
displaycal-py3 3.9.17-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 29,124 kB
  • sloc: python: 115,810; javascript: 11,545; xml: 598; sh: 257; makefile: 173
file content (12 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding: utf-8 -*-

import demjson_compat

from DisplayCAL.lazydict import LazyDict


class JSONDict(LazyDict):
    """JSON lazy dictionary"""

    def parse(self, fileobj):
        dict.update(self, demjson_compat.decode(fileobj.read()))