/pkg/src/modules/ |
H A D | p5i.py | 28 import simplejson as json namespace 82 dump_struct = json.loads(data) 84 dump_struct = json.load(fileobj) 222 json.dump(dump_struct, fileobj, ensure_ascii=False,
|
H A D | p5s.py | 29 import simplejson as json namespace 78 dump_struct = json.loads(data) 279 json.dump(dump_struct, fileobj, ensure_ascii=False,
|
H A D | misc.py | 46 import simplejson as json namespace 1434 (option, default_value, [valid values], [json schema]) 1703 'tsv', 'json', and 'json-formatted' are supported. The first is 1798 elif out_format == "json" or out_format == "json-formatted": 1800 if out_format == "json-formatted": 1803 # 'json' formats always include any extra fields returned; 1804 # any explicitly named fields are only included if 'json' 1817 output = json [all...] |
/pkg/src/tests/cli/ |
H A D | t_client_api.py | 35 import simplejson as json namespace 145 pargs_json=json.dumps(args), opts_json=json.dumps(opts)) 174 opts_json=json.dumps(opts)) 181 pargs_json=json.dumps([]), 188 """Test valid arguments for pkg json.""" 197 opts_json=json.dumps(opts)) 201 pargs_json=json.dumps(["foo"]), 218 """Test json args or opts for list command.""" 283 """Test json arg [all...] |
H A D | t_pkg_verify.py | 33 import simplejson as json namespace 510 out_json = json.loads(self.output) 524 out_json = json.loads(self.output) 588 out_json = json.loads(self.output) 599 out_json = json.loads(self.output) 619 out_json = json.loads(self.output)
|
H A D | t_pkg_freeze.py | 33 import simplejson as json namespace 242 version, d = json.load(open(pth)) 244 json.dump((-1, d), fh)
|
H A D | t_fix.py | 36 import simplejson as json namespace 189 out_json = json.loads(self.output) 198 out_json = json.loads(self.output)
|
H A D | t_pkg_info.py | 30 import json namespace 765 entry = json.load(open(path))["test"]["bronze"][0]["metadata"] 773 entry = json.load(open(path))["test"]["bronze"][0]["metadata"]
|
H A D | t_pkg_avoid.py | 33 import simplejson as json namespace 119 version, d = json.load(f)
|
H A D | t_pkg_composite.py | 31 import json namespace 374 entry = json.load(open(path))["test"]["foo"][0]
|
H A D | t_pkgrepo.py | 45 import simplejson as json namespace 1617 # json output. 1618 self.pkgrepo("list -s {0} -F json".format(src)) 1688 # json-formatted output. 1689 self.pkgrepo("list -s {0} -F json-formatted".format(src)) 3783 self.assertEqualJSON(json.dumps(expected), self.output) 3792 output = json.loads(self.output) 3796 self.assertEqualJSON(json.dumps(expected), 3797 json.dumps(output)) 3820 output = json [all...] |
H A D | t_pkg_temp_sources.py | 32 import json namespace 566 entry = json.load(open(path))["test"]["foo"][0]["metadata"]
|
H A D | t_pkgrecv.py | 33 import simplejson as json namespace 557 self.pkgrepo("-s {0} list -F json".format(npath)) 558 out_json = json.loads(self.output) 834 self.pkgrepo("-s {0} list -F json".format(npath)) 835 out_json = json.loads(self.output) 1403 self.pkgrepo("-s {0} list -F json filetrans2".format( 1405 out_json = json.loads(self.output) 1414 self.pkgrepo("-s {0} list -F json filetrans3".format( 1416 out_json = json.loads(self.output)
|
/pkg/src/ |
H A D | rad-invoke.py | 36 import simplejson as json namespace 121 ips_logger.info(json.dumps(ret_json))
|
H A D | depot-config.py | 36 import simplejson as json namespace 387 status_file.write(json.dumps(status, ensure_ascii=False,
|
H A D | pkgrepo.py | 37 LISTING_FORMATS = ("default", "json", "json-formatted", "tsv") 83 import simplejson as json namespace 602 "section" : [("default", "json", "tsv"), _("SECTION"), ""], 603 "property" : [("default", "json", "tsv"), _("PROPERTY"), ""], 604 "value" : [("default", "json", "tsv"), _("VALUE"), ""], 753 "publisher" : [("default", "json", "tsv"), _("PUBLISHER"), ""], 754 "section" : [("default", "json", "tsv"), _("SECTION"), ""], 755 "property" : [("default", "json", "tsv"), _("PROPERTY"), ""], 756 "value" : [("default", "json", "ts [all...] |
/pkg/src/modules/client/ |
H A D | rad_pkg.py | 29 import simplejson as json namespace 363 pargs_json = json.dumps(pargs_json) 366 opts_json = json.dumps(opts_json) 387 out_json = json.loads(out_line) 448 out_json = json.loads(out_json)
|
H A D | plandesc.py | 43 import simplejson as json namespace 322 """Save a json encoded representation of this plan 329 json.dump(state, fobj, encoding="utf-8") 338 """Load a json encoded representation of a plan description 345 state = json.load(fobj, encoding="utf-8", 756 # json will convert lists of tuples
|
H A D | image.py | 37 import simplejson as json namespace 4264 version, d = json.load(f) 4323 json.dump((self.__AVOID_SET_VERSION, d), tf) 4360 version, d = json.load(f) 4381 json.dump(
|
H A D | client_api.py | 34 import simplejson as json namespace 83 bytes string into unicode string in Python 3. This will be used by json 421 """Prepare an error message for json output. """ 489 """Get the default error json schema.""" 508 """Construct json schema.""" 510 json_schema = {"$schema": "http://json-schema.org/draft-04/schema#", 524 """Prepare json structure for returning.""" 1282 # Convert to json. 1283 parsable_plan = json.loads(json [all...] |
/pkg/src/util/apache2/sysrepo/ |
H A D | sysrepo_p5p.py | 253 json = simplejson.load(catalog_attrs) 254 for part in json["parts"]:
|
/pkg/src/tests/ |
H A D | run.py | 28 import simplejson as json namespace 439 ver, time_estimates = json.load(fh)
|
/pkg/src/modules/client/linkedimage/ |
H A D | common.py | 49 import simplejson as json namespace 130 # will prevent it from being accidentally serialized to json. 141 json dictionary containing planned image changes 2790 # comparison we load the serialized on-disk json data 3312 json version of the plan on stdout, and we'll verify it by 3313 running it through the json parser. 3361 p_dict = json.loads(stdout) 3605 json.dump(data, fobj, encoding="utf-8", 3632 data = json.load(fobj, encoding="utf-8", 3644 class PkgEncoder(json [all...] |
/pkg/src/modules/client/transport/ |
H A D | repo.py | 31 import simplejson as json namespace 1494 json.dump(rstatus, buf, ensure_ascii=False, indent=2, 2065 json.dump(arcdata, buf, ensure_ascii=False, indent=2,
|
/pkg/src/modules/server/ |
H A D | depot.py | 54 import simplejson as json namespace 1462 [("Content-Type", "application/json; charset=utf-8")]) 1472 out = json.dumps(dump_struct, ensure_ascii=False, 1509 '{"this is a": "fragment of json"}'])
|