/external/python/cpython2/Tools/freeze/ |
D | makefreeze.py | 43 outfp = bkfile.open(base + file, 'w') 53 writecode(outfp, mangled, str) 54 outfp.close() 57 outfp = bkfile.open(base + 'frozen.c', 'w') 59 outfp.write('extern unsigned char M_%s[];\n' % mangled) 60 outfp.write(header) 62 outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size)) 63 outfp.write('\n') 69 outfp.write('\t{"%s", NULL, 0},\n' % (mod,)) 70 outfp.write(trailer) [all …]
|
D | makeconfig.py | 8 def makeconfig(infp, outfp, modules, with_ifdef=0): argument 14 outfp.write(line) 21 outfp.write("#ifndef init%s\n"%mod) 22 outfp.write('extern void init%s(void);\n' % mod) 24 outfp.write("#endif\n") 30 outfp.write('\t{"%s", init%s},\n' % 50 outfp = sys.stdout 52 outfp = open(sys.argv[2], 'w') 53 makeconfig(infp, outfp, sys.argv[3:]) 54 if outfp != sys.stdout: [all …]
|
D | makemakefile.py | 5 def makemakefile(outfp, makevars, files, target): argument 6 outfp.write("# Makefile generated by freeze.py script\n\n") 11 outfp.write("%s=%s\n" % (key, makevars[key])) 12 outfp.write("\nall: %s\n\n" % target) 20 outfp.write("%s: %s\n" % (dest, file)) 21 outfp.write("\t$(CC) $(CFLAGS) $(CPPFLAGS) -c %s\n" % file) 25 outfp.write("\n%s: %s\n" % (target, ' '.join(deps))) 26 outfp.write("\t$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" % 29 outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)
|
D | freeze.py | 437 outfp = open(makefile, 'w') 439 winmakemakefile.makemakefile(outfp, 444 outfp.close() 450 outfp = bkfile.open(config_c, 'w') 452 makeconfig.makeconfig(infp, outfp, builtins) 454 outfp.close() 473 outfp = bkfile.open(makefile, 'w') 475 makemakefile.makemakefile(outfp, somevars, files, base_target) 477 outfp.close()
|
D | winmakemakefile.py | 45 def makemakefile(outfp, vars, files, target): argument 48 sys.stdout = outfp
|
/external/python/cpython3/Tools/freeze/ |
D | makefreeze.py | 42 with bkfile.open(base + file, 'w') as outfp: 52 writecode(outfp, mangled, str) 55 with bkfile.open(base + 'frozen.c', 'w') as outfp: 57 outfp.write('extern unsigned char M_%s[];\n' % mangled) 58 outfp.write(header) 60 outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size)) 61 outfp.write('\n') 67 outfp.write('\t{"%s", NULL, 0},\n' % (mod,)) 68 outfp.write(trailer) 69 outfp.write(entry_point) [all …]
|
D | makeconfig.py | 9 def makeconfig(infp, outfp, modules, with_ifdef=0): argument 13 outfp.write(line) 20 outfp.write("#ifndef PyInit_%s\n"%mod) 21 outfp.write('extern PyObject* PyInit_%s(void);\n' % mod) 23 outfp.write("#endif\n") 29 outfp.write('\t{"%s", PyInit_%s},\n' % 49 outfp = sys.stdout 51 outfp = open(sys.argv[2], 'w') 52 makeconfig(infp, outfp, sys.argv[3:]) 53 if outfp != sys.stdout: [all …]
|
D | makemakefile.py | 5 def makemakefile(outfp, makevars, files, target): argument 6 outfp.write("# Makefile generated by freeze.py script\n\n") 10 outfp.write("%s=%s\n" % (key, makevars[key])) 11 outfp.write("\nall: %s\n\n" % target) 19 outfp.write("%s: %s\n" % (dest, file)) 20 outfp.write("\t$(CC) $(PY_CFLAGS) $(PY_CPPFLAGS) -c %s\n" % file) 24 outfp.write("\n%s: %s\n" % (target, ' '.join(deps))) 25 outfp.write("\t$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) %s -o %s $(LDLAST)\n" % 28 outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)
|
D | freeze.py | 442 with open(makefile, 'w') as outfp: 443 winmakemakefile.makemakefile(outfp, 451 with open(config_c_in) as infp, bkfile.open(config_c, 'w') as outfp: 452 makeconfig.makeconfig(infp, outfp, builtins) 470 with bkfile.open(makefile, 'w') as outfp: 471 makemakefile.makemakefile(outfp, somevars, files, base_target)
|
D | winmakemakefile.py | 45 def makemakefile(outfp, vars, files, target): argument 48 sys.stdout = outfp
|
/external/python/cpython3/Tools/scripts/ |
D | h2py.py | 78 outfp = open(outfile, 'w') 79 outfp.write('# Generated by h2py from %s\n' % filename) 86 process(fp, outfp) 87 outfp.close() 110 def process(fp, outfp, env = {}): argument 134 outfp.write(stmt) 146 outfp.write(stmt) 153 outfp.write('from %s import *\n' % importable[filename]) 164 outfp.write( 166 process(inclfp, outfp, env)
|
D | eptags.py | 24 def treat_file(filename, outfp): argument 46 outfp.write('\f\n%s,%d\n' % (filename,size)) 48 outfp.write(tag) 51 outfp = open('TAGS', 'w') 53 treat_file(filename, outfp)
|
/external/python/cpython2/Tools/scripts/ |
D | h2py.py | 87 outfp = open(outfile, 'w') 88 outfp.write('# Generated by h2py from %s\n' % filename) 95 process(fp, outfp) 96 outfp.close() 119 def process(fp, outfp, env = {}): argument 143 outfp.write(stmt) 155 outfp.write(stmt) 162 outfp.write('from %s import *\n' % importable[filename]) 173 outfp.write( 175 process(inclfp, outfp, env)
|
D | eptags.py | 24 def treat_file(filename, outfp): argument 46 outfp.write('\f\n%s,%d\n' % (filename,size)) 48 outfp.write(tag) 51 outfp = open('TAGS', 'w') 53 treat_file(filename, outfp)
|
/external/python/cpython2/Lib/test/ |
D | test_quopri.py | 149 outfp = cStringIO.StringIO() 150 quopri.encode(infp, outfp, quotetabs=False) 151 self.assertTrue(outfp.getvalue() == e) 157 outfp = cStringIO.StringIO() 158 quopri.decode(infp, outfp) 159 self.assertTrue(outfp.getvalue() == p)
|
D | test_base64.py | 46 outfp = StringIO() 47 base64.encode(infp, outfp) 48 eq(outfp.getvalue(), 56 outfp = StringIO() 57 base64.decode(infp, outfp) 58 self.assertEqual(outfp.getvalue(), 'www.python.org')
|
/external/selinux/checkpolicy/ |
D | checkmodule.c | 113 static int write_binary_policy(policydb_t * p, FILE *outfp) in write_binary_policy() argument 123 pf.fp = outfp; in write_binary_policy() 305 FILE *outfp = fopen(outfile, "w"); in main() local 307 if (!outfp) { in main() 313 if (write_binary_policy(&modpolicydb, outfp) != 0) { in main() 318 if (sepol_module_policydb_to_cil(outfp, &modpolicydb, 0) != 0) { in main() 324 fclose(outfp); in main()
|
D | checkpolicy.c | 403 FILE *outfp = NULL; in main() local 629 outfp = fopen(outfile, "w"); in main() 630 if (!outfp) { in main() 643 pf.fp = outfp; in main() 654 ret = sepol_kernel_policydb_to_conf(outfp, policydbp); in main() 663 ret = sepol_kernel_policydb_to_cil(outfp, policydbp); in main() 665 ret = sepol_module_policydb_to_cil(outfp, policydbp, 1); in main() 674 fclose(outfp); in main()
|
/external/python/cpython3/Lib/test/ |
D | test_quopri.py | 155 outfp = io.BytesIO() 156 quopri.encode(infp, outfp, quotetabs=False) 157 self.assertEqual(outfp.getvalue(), e) 163 outfp = io.BytesIO() 164 quopri.decode(infp, outfp) 165 self.assertEqual(outfp.getvalue(), p)
|
/external/python/cpython2/Lib/ |
D | quopri.py | 110 outfp = StringIO() 111 encode(infp, outfp, quotetabs, header) 112 return outfp.getvalue() 164 outfp = StringIO() 165 decode(infp, outfp, header = header) 166 return outfp.getvalue()
|
/external/python/cpython3/Lib/ |
D | quopri.py | 111 outfp = BytesIO() 112 encode(infp, outfp, quotetabs, header) 113 return outfp.getvalue() 165 outfp = BytesIO() 166 decode(infp, outfp, header=header) 167 return outfp.getvalue()
|
/external/python/cpython2/Lib/email/ |
D | generator.py | 42 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78): argument 59 self._fp = outfp 302 def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None): argument 324 Generator.__init__(self, outfp, mangle_from_, maxheaderlen)
|
/external/python/cpython3/Doc/library/ |
D | email.generator.rst | 40 .. class:: BytesGenerator(outfp, mangle_from_=None, maxheaderlen=None, *, \ 45 to the :meth:`write` method, to the :term:`file-like object` *outfp*. 46 *outfp* must support a ``write`` method that accepts binary data. 116 the exact same option settings, and *fp* as the new *outfp*. 122 handler, and pass it to the *write* method of the *outfp* passed to the 141 .. class:: Generator(outfp, mangle_from_=None, maxheaderlen=None, *, \ 146 method, to the :term:`file-like object` *outfp*. *outfp* must support a 213 exact same options, and *fp* as the new *outfp*. 218 Write *s* to the *write* method of the *outfp* passed to the 237 .. class:: DecodedGenerator(outfp, mangle_from_=None, maxheaderlen=None, \
|
/external/python/cpython2/Doc/library/ |
D | email.generator.rst | 29 .. class:: Generator(outfp[, mangle_from_[, maxheaderlen]]) 32 *outfp* for an argument. *outfp* must support the :meth:`write` method and be 81 Write the string *s* to the underlying file object, i.e. *outfp* passed to 96 .. class:: DecodedGenerator(outfp[, mangle_from_[, maxheaderlen[, fmt]]])
|
/external/python/cpython3/Lib/email/ |
D | generator.py | 36 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, *, argument 63 self._fp = outfp 451 def __init__(self, outfp, mangle_from_=None, maxheaderlen=None, fmt=None, *, argument 474 Generator.__init__(self, outfp, mangle_from_, maxheaderlen,
|