Searched refs:force_bytes (Results 1 - 23 of 23) sorted by relevance

/pkg/src/modules/
H A Dsyscallat.py31 from pkg.misc import force_bytes namespace
44 rv = lib.mkdirat(fd, force_bytes(path), mode)
61 rv = lib.openat(fildes, force_bytes(path), oflag, mode)
79 rv = lib.renameat(fromfd, force_bytes(old), tofd, force_bytes(new))
94 rv = lib.unlinkat(dirfd, force_bytes(path), flag)
H A Dsysattr.py122 from pkg.misc import force_bytes namespace
142 c = force_bytes(c)
H A Dp5s.py37 from pkg.misc import force_bytes namespace
193 force_bytes(m.uri.rstrip("/"))).hexdigest()
H A Dpipeutils.py103 from pkg.misc import force_bytes, force_str namespace
204 return force_bytes(data, "iso-8859-1")
246 view[:len(data)] = force_bytes(data)
H A Dlockfile.py167 lf.write(misc.force_bytes(lock_str))
H A Dsearch_storage.py36 from pkg.misc import PKG_FILE_BUFSIZ, force_bytes namespace
633 shasum.update(force_bytes(v))
H A Dp5p.py49 from pkg.misc import force_bytes, force_str namespace
165 self.__file.write(force_bytes(self.ENTRY_FORMAT.format(
H A Dmanifest.py630 misc.force_bytes("".join(
672 key = hashlib.sha1(misc.force_bytes(
H A Dmisc.py2993 def force_bytes(s, encoding="utf-8", errors="strict"): function
3034 force_str = force_bytes
H A Dcatalog.py132 fp.writelines(misc.force_bytes(i) for i in iterable)
/pkg/src/tests/api/
H A Dt_file_manager.py56 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(
H A Dt_p5i.py170 os.write(fd1, misc.force_bytes(fobj.read()))
/pkg/src/modules/server/
H A Dface.py74 return misc.force_bytes(template.render(g_vars={ "base": base,
H A Ddepot.py551 yield misc.force_bytes(Query.VALIDATION_STRING[1])
556 yield misc.force_bytes(
564 yield misc.force_bytes(
1321 return misc.force_bytes(buf.getvalue())
1459 return misc.force_bytes(output)
1477 return misc.force_bytes(out + "\n")
H A Drepository.py2375 s = hashlib.sha1(misc.force_bytes(
/pkg/src/modules/actions/
H A Dsignature.py435 h.update(misc.force_bytes(self.actions_to_str(
476 verifier.update(misc.force_bytes(
516 h.update(misc.force_bytes(self.actions_to_str(acts,
537 signer.update(misc.force_bytes(self.actions_to_str(acts,
/pkg/src/tests/cli/
H A Dt_sysrepo.py396 hash = hashlib.sha1(misc.force_bytes("file://" +
437 hash = hashlib.sha1(misc.force_bytes(
568 hash = hashlib.sha1(misc.force_bytes(p5p_url.rstrip("/"))).hexdigest()
616 p5p_hash = hashlib.sha1(misc.force_bytes(
619 file_hash = hashlib.sha1(misc.force_bytes(
668 test_response(misc.force_bytes(url_part), 404)
697 p5p_hash = hashlib.sha1(misc.force_bytes(
H A Dt_pkg_sysrepo.py861 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
863 hash3 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1373 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1375 hash2 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1377 hash3 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1432 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1434 hash2 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1436 hash3 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1472 hash1 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("file://" +
1474 hash2 = digest.DEFAULT_HASH_FUNC(misc.force_bytes("fil
[all...]
/pkg/src/modules/client/
H A Dpublisher.py1423 os.write(fd, misc.force_bytes("{0}\n".format(
1732 hashlib.sha1(misc.force_bytes(origin.uri)).hexdigest())
1750 hashlib.sha1(misc.force_bytes(o.uri)).hexdigest()
2334 misc.force_bytes(s), default_backend())
2368 subj_hsh = hashlib.sha1(misc.force_bytes(
2426 h = misc.get_data_digest(BytesIO(misc.force_bytes(s)),
2460 name_hsh = hashlib.sha1(misc.force_bytes(name)).hexdigest()
2505 s = hashlib.sha1(misc.force_bytes(
2624 tas = ca_dict.get(hashlib.sha1(misc.force_bytes(
2851 issuer_hash = hashlib.sha1(misc.force_bytes(
[all...]
H A Dimage.py353 s = hashlib.sha1(misc.force_bytes(
/pkg/src/util/apache2/depot/
H A Ddepot_index.py410 return misc.force_bytes(template.render(g_vars={"base": base,
572 return misc.force_bytes(dh.info_0(*tokens[3:]))
/pkg/src/
H A Dsysrepo.py770 return digest.DEFAULT_HASH_FUNC(misc.force_bytes(uri)).hexdigest()
/pkg/src/tests/
H A Dpkg5unittest.py2817 os.write(fd, misc.force_bytes(

Completed in 408 milliseconds