Home
last modified time | relevance | path

Searched refs:writestr (Results 1 – 25 of 33) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_zipfile64.py47 zipfp.writestr("testfn%d" % num, self.data)
99 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
113 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
116 zipf.writestr("foo%08d" % numfiles, b'')
123 zipf.writestr("foo%08d" % numfiles, b'')
131 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
Dtest_zipfile.py64 zipfp.writestr("strfile", self.data)
289 zipfp.writestr("strfile", '12')
299 zipfp.writestr("b.txt", "hello world", compress_type=self.compression)
305 zipfp.writestr("a.txt", "hello world", compress_type=self.compression)
306 zipfp.writestr("b.txt", "hello world", compress_type=self.compression,
326 zipf.writestr('foo', junk)
334 zipf.writestr('strfile', self.data, compress_type=self.compression)
484 zipfp.writestr("strfile", self.data)
536 zipfp.writestr('strfile', self.data)
575 zipfp.writestr(fname, "bogus")
[all …]
Dtest_pkgutil.py70 z.writestr(pkg + '/__init__.py', "")
72 z.writestr(pkg + '/res.txt', RESOURCE_DATA)
73 z.writestr(pkg + '/sub/res.txt', RESOURCE_DATA)
153 z.writestr(pkg2 + '/__init__.py', "")
154 z.writestr(pkg2 + '/' + pkg1 + '/__init__.py', "")
155 z.writestr(pkg2 + '/' + pkg1 + '/mod.py', "")
156 z.writestr(pkg1 + '/__init__.py', "")
157 z.writestr(pkg1 + '/' + pkg2 + '/__init__.py', "")
158 z.writestr(pkg1 + '/' + pkg2 + '/mod.py', "")
Dtest_zipimport.py119 z.writestr(zinfo, data)
447 z.writestr(zinfo, data)
501 z.writestr(zinfo, data)
544 z.writestr(name, data)
655 z.writestr(zinfo, test_src)
664 z.writestr(zinfo, test_src)
Dtest_zipimport_support.py127 z.writestr(mod_name + ".py", src)
/external/python/cpython2/Lib/test/
Dtest_zipfile.py58 zipfp.writestr("strfile", self.data)
153 zipfp.writestr("name", "foo")
155 zipfp.writestr("name", "bar")
194 zipfp.writestr(TESTFN, data)
310 zipfp.writestr("strfile", '12')
331 zipfp.writestr("strfile", self.data)
383 zipfp.writestr('strfile', self.data)
435 zipfp.writestr("somefile.txt", "bogus")
443 zipfp.writestr(fpath, fdata)
466 zipfp.writestr(fpath, fdata)
[all …]
Dtest_zipfile64.py56 zipfp.writestr("testfn%d" % num, self.data)
110 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
125 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
128 zipf.writestr("foo%08d" % numfiles, b'')
136 zipf.writestr("foo%08d" % numfiles, b'')
145 zipf.writestr("foo%08d" % i, "%d" % (i**3 % 57))
Dtest_pkgutil.py65 z.writestr(pkg + '/__init__.py', "")
67 z.writestr(pkg + '/res.txt', RESOURCE_DATA)
68 z.writestr(pkg + '/sub/res.txt', RESOURCE_DATA)
Dtest_zipimport.py75 z.writestr(zinfo, data)
213 z.writestr(zinfo, data)
257 z.writestr(zinfo, data)
291 z.writestr(name, data)
Dtest_zipimport_support.py122 z.writestr(mod_name + ".py", src)
/external/python/setuptools/pkg_resources/tests/
Dtest_pkg_resources.py60 zip_egg.writestr(zip_info, 'x = 3\n')
64 zip_egg.writestr(zip_info, 'hello, world!')
68 zip_egg.writestr(zip_info, 'x = 6\n')
72 zip_egg.writestr(zip_info, 'goodbye, world!')
/external/tensorflow/tensorflow/lite/testing/
Dzip_test_utils.py481 archive.writestr(zip_path_label + ".pbtxt",
490 archive.writestr(zip_path_label + ".bin", tflite_model_binary,
496 archive.writestr(zip_path_label + ".inputs", example_fp.getvalue(),
501 archive.writestr(zip_path_label + "_tests.txt",
532 archive.writestr("report_" + options.multi_gen_state.test_name + ".html",
535 archive.writestr("report.html", report_io.getvalue())
540 archive.writestr("manifest.txt", "".join(zip_manifest),
Dgenerate_examples_lib.py336 archive.writestr("manifest.txt", "".join(multi_gen_state.zip_manifest),
/external/skia/infra/bots/
Dzip_utils.py55 z.writestr(zi, content)
/external/skqp/infra/bots/
Dzip_utils.py54 z.writestr(zi, content)
/external/libchrome/build/android/gyp/util/
Dmd5_check_test.py17 zip_file.writestr(subpath, data)
Dbuild_utils.py313 zip_file.writestr(zipinfo, os.readlink(src_path))
330 zip_file.writestr(zipinfo, data, compress_type)
/external/python/cpython3/Lib/
Dzipapp.py144 z.writestr('__main__.py', main_py.encode('utf-8'))
/external/python/cpython2/Misc/NEWS.d/
D2.6b3.rst384 Fix tarfile.TarFileCompat.writestr() which always raised an AttributeError.
487 zipfile.writestr sets external attributes when passed a file name rather
D2.7a4.rst223 Add an argument to ``zipfile.Zipfile.writestr`` to specify the compression
/external/python/cpython2/Doc/library/
Dzipfile.rst309 .. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type])
315 opened with mode ``'w'`` or ``'a'`` -- calling :meth:`writestr` on a ZipFile
317 :meth:`writestr` on a closed ZipFile will raise a :exc:`RuntimeError`.
/external/python/setuptools/setuptools/tests/
Dtest_easy_install.py165 sdist_zip.writestr(filename, content)
/external/python/cpython3/PC/layout/
Dmain.py428 zip_file.writestr(str(dest), content)
/external/python/cpython2/Lib/plat-mac/
Dbundlebuilder.py577 zf.writestr(path, pyc)
/external/libchrome/third_party/jinja2/
Denvironment.py687 zip_file.writestr(info, data)

12