Searched refs:misc (Results 1 - 25 of 136) sorted by relevance

123456

/pkg/src/tests/api/
H A Dt_misc.py41 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 Dt_file_manager.py39 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 Dmembench.py38 import pkg.misc as misc namespace
65 startusage = misc.__getvmusage()
73 endusage = misc.__getvmusage()
/pkg/src/util/publish/
H A Dupdate_file_layout.py38 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 Dpkgmogrify.py35 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 Dpkgdiff.py41 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 Dpkglint.py39 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 Dpkgfmt.py76 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 Dmediator.py28 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 Darch.py74 from pkg.misc import force_text
92 from pkg.misc import force_text
101 from pkg.misc import force_text
H A Dlockfile.py33 import pkg.misc as misc namespace
38 from pkg.misc import DummyLock
167 lf.write(misc.force_bytes(lock_str))
H A Dfacet.py35 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 Dconfig.py66 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 Drunprintengine.py36 import pkg.misc as misc namespace
39 misc.setlocale(locale.LC_ALL, "", None)
H A Drunprogress.py33 import pkg.misc as misc namespace
36 misc.setlocale(locale.LC_ALL, "", None)
/pkg/src/modules/actions/
H A Dlicense.py40 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 Dfile.py46 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 Dsignature.py41 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 DTarBundle.py31 import pkg.misc as misc namespace
64 timestamp=misc.time_to_timestamp(tarinfo.mtime))
H A DDirectoryBundle.py31 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 Dsign.py53 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 Drad-invoke.py35 import pkg.misc as misc namespace
116 misc.setlocale(locale.LC_ALL, "")
/pkg/src/modules/client/
H A Dfirmware.py31 import pkg.misc as misc namespace
80 buf = [misc.force_str(l) for l in
190 " ".join(buf), misc.signame(-ret))))
H A Dindexer.py35 from pkg.misc import EmptyI
/pkg/src/modules/client/transport/
H A Dstats.py33 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):

Completed in 179 milliseconds

123456