/pkg/src/tests/api/ |
H A D | t_misc.py | 41 import pkg.misc as misc namespace 72 """Verify that misc.valid_pub_prefix returns True or False as 75 self.assertFalse(misc.valid_pub_prefix(None)) 76 self.assertFalse(misc.valid_pub_prefix("")) 77 self.assertFalse(misc.valid_pub_prefix("!@#$%^&*(*)")) 78 self.assertTrue(misc.valid_pub_prefix( 82 """Verify that misc.valid_pub_url returns True or False as 85 self.assertFalse(misc.valid_pub_url(None)) 86 self.assertFalse(misc [all...] |
H A D | t_file_manager.py | 39 import pkg.misc as misc namespace 56 fh.write(misc.force_bytes(data)) 78 self.assertEqual(fh.read(), misc.force_bytes(unmoved)) 169 self.assertEqual(fh.read(), misc.force_bytes(hash4)) 185 self.assertEqual(fh.read(), misc.force_bytes(hash3)) 313 self.assertEqual(f.read(), misc.force_bytes( 325 nfile.write(misc.force_bytes("new-{0}".format(fhash))) 331 self.assertEqual(f.read(), misc.force_bytes(
|
/pkg/src/tests/perf/ |
H A D | membench.py | 38 import pkg.misc as misc namespace 65 startusage = misc.__getvmusage() 73 endusage = misc.__getvmusage()
|
/pkg/src/util/publish/ |
H A D | update_file_layout.py | 38 import pkg.misc as misc namespace 41 from pkg.misc import emsg, PipeError, setlocale 96 traceback_str = misc.get_traceback_message() 111 error("\n" + misc.out_of_memory())
|
H A D | pkgmogrify.py | 35 import pkg.misc as misc namespace 37 from pkg.misc import PipeError 149 misc.setlocale(locale.LC_ALL, "", error) 152 misc.set_fd_limits(printer=error) 167 error(misc.get_traceback_message(), exitcode=None)
|
H A D | pkgdiff.py | 41 import pkg.misc as misc namespace 42 from pkg.misc import PipeError, CMP_UNSIGNED, CMP_ALL 251 res = misc.cmp(a.attrs[a.key_attr], b.attrs[b.key_attr]) 255 res = misc.cmp(sorted(list(a.get_variant_template())), 260 res = misc.cmp(a.ordinality, b.ordinality) 263 return misc.cmp(str(a), str(b)) 365 misc.setlocale(locale.LC_ALL, "", error) 368 misc.set_fd_limits(printer=error) 381 error(misc [all...] |
H A D | pkglint.py | 39 from pkg.misc import PipeError 46 import pkg.misc as misc namespace 54 misc.emsg("pkglint: {0}".format(message)) 320 misc.setlocale(locale.LC_ALL, "", error) 323 misc.set_fd_limits(printer=error) 341 error(misc.get_traceback_message())
|
H A D | pkgfmt.py | 76 import pkg.misc as misc namespace 78 from pkg.misc import emsg, PipeError 225 c = misc.cmp(typeord(a[0]), typeord(b[0])) 230 c = misc.cmp(a[0].name, b[0].name) 294 c = misc.cmp(a_sk, b_sk) 295 # misc.cmp raises NotImplemented for uncomparable types in 298 c = misc.cmp(str(a_sk), str(b_sk)) 306 return misc.cmp(str(a[0]), str(b[0])) 450 return misc [all...] |
/pkg/src/modules/ |
H A D | mediator.py | 28 import pkg.misc as misc namespace 147 res = misc.cmp(aprio, bprio) 153 res = misc.cmp(aver, bver) 160 res = misc.cmp(aimpl, bimpl) 164 res = misc.cmp(aver, bver)
|
H A D | arch.py | 74 from pkg.misc import force_text 92 from pkg.misc import force_text 101 from pkg.misc import force_text
|
H A D | lockfile.py | 33 import pkg.misc as misc namespace 38 from pkg.misc import DummyLock 167 lf.write(misc.force_bytes(lock_str))
|
H A D | facet.py | 35 import pkg.misc as misc namespace 37 from pkg.misc import EmptyI, ImmutableDict 114 [misc.force_text(k), v, True] 117 [misc.force_text(k), v, False] 142 return misc.cmp(self.__keylist, other.__keylist) 149 return misc.cmp(self, other) 156 rv = misc.cmp(self.__inherited, other.__inherited) 158 rv = misc.cmp(self.__local, other.__local) 247 return misc [all...] |
H A D | config.py | 66 from pkg import misc, portable namespace 224 _value_map = misc.EmptyDict 226 def __init__(self, name, default="", value_map=misc.EmptyDict): 280 return misc.force_text(self.value) 395 def __init__(self, name, default=False, value_map=misc.EmptyDict): 423 minimum=0, value_map=misc.EmptyDict): 481 not misc.valid_pub_prefix(value): 492 def __init__(self, name, allowed=misc.EmptyI, default="", 493 value_map=misc.EmptyDict): 720 v= misc [all...] |
/pkg/src/tests/interactive/ |
H A D | runprintengine.py | 36 import pkg.misc as misc namespace 39 misc.setlocale(locale.LC_ALL, "", None)
|
H A D | runprogress.py | 33 import pkg.misc as misc namespace 36 misc.setlocale(locale.LC_ALL, "", None)
|
/pkg/src/modules/actions/ |
H A D | license.py | 40 import pkg.misc as misc namespace 69 self.attrs["path"] = misc.relpath(os.path.join( 90 mode=misc.PKG_DIR_MODE, 93 os.chmod(path, misc.PKG_FILE_MODE) 99 shasum = misc.gunzip_from_stream(stream, lfile, 119 os.chmod(path, misc.PKG_RO_FILE_MODE) 147 chash, cdata = misc.get_data_digest(path, 208 chash, txt = misc.get_data_digest(fh, 212 return misc [all...] |
H A D | file.py | 46 import pkg.misc as misc namespace 151 mode=misc.PKG_DIR_MODE, 232 shasum = misc.gunzip_from_stream(stream, tfile, 291 t = misc.timestamp_to_time(self.attrs["timestamp"]) 328 misc.time_to_timestamp(time.time()), 339 misc.time_to_timestamp(time.time()), 378 misc.timestamp_to_time(self.attrs["timestamp"])): 381 found=misc.time_to_timestamp(lstat.st_mtime), 468 sha_hash, data = misc [all...] |
H A D | signature.py | 41 import pkg.misc as misc namespace 132 # misc.get_data_digest takes care of closing the file 135 hshes, data = misc.get_data_digest(fh, 153 csize, chashes = misc.compute_compressed_attrs( 250 hashes, data = misc.get_data_digest(fh, 267 csize, chashes = misc.compute_compressed_attrs( 292 hshes, data = misc.get_data_digest(c(), size, 300 csize, chashes = misc.compute_compressed_attrs("tmp", 435 h.update(misc [all...] |
/pkg/src/modules/bundle/ |
H A D | TarBundle.py | 31 import pkg.misc as misc namespace 64 timestamp=misc.time_to_timestamp(tarinfo.mtime))
|
H A D | DirectoryBundle.py | 31 import pkg.misc namespace 85 pubpath = pkg.misc.relpath(path, rootdir) 88 timestamp = pkg.misc.time_to_timestamp(pstat.st_mtime) 131 target = pkg.misc.relpath(self.inodes[inode],
|
/pkg/src/ |
H A D | sign.py | 53 import pkg.misc as misc namespace 57 from pkg.misc import emsg, msg, PipeError 171 repo_uri = misc.parse_uri(arg) 227 t = misc.config_temp_root() 303 m.add_action(a, misc.EmptyI) 320 misc.get_data_digest(cert_path, 388 misc.setlocale(locale.LC_ALL, "", error) 391 misc.set_fd_limits(printer=error) 403 error(misc [all...] |
H A D | rad-invoke.py | 35 import pkg.misc as misc namespace 116 misc.setlocale(locale.LC_ALL, "")
|
/pkg/src/modules/client/ |
H A D | firmware.py | 31 import pkg.misc as misc namespace 80 buf = [misc.force_str(l) for l in 190 " ".join(buf), misc.signame(-ret))))
|
H A D | indexer.py | 35 from pkg.misc import EmptyI
|
/pkg/src/modules/client/transport/ |
H A D | stats.py | 33 import pkg.misc as misc namespace 70 proxy = misc.get_runtime_proxy(ds.proxy, ds.url) 80 misc.msg(hfmt.format("URL", "Proxy", "Good", "Err", "Conn", 85 speedstr = misc.bytes_to_str(ds.transfer_speed, 88 sizestr = misc.bytes_to_str(ds.bytes_xfr) 90 misc.msg(dfmt.format(ds.url, proxy, ds.success, 114 def get_repostats(self, repouri_list, origin_list=misc.EmptyI):
|