Lines Matching refs:write
36 self.f.write("")
41 self.f.write("\n"+" "*self._indent + text)
43 def write(self, text): member in Unparser
45 self.f.write(text)
49 self.write(":")
84 interleave(lambda: self.write(", "), self.dispatch, t.names)
92 self.write("." * t.level)
94 self.write(t.module)
95 self.write(" import ")
96 interleave(lambda: self.write(", "), self.dispatch, t.names)
102 self.write(" = ")
108 self.write(" "+self.binop[t.op.__class__.__name__]+"= ")
114 self.write(" ")
128 interleave(lambda: self.write(", "), self.dispatch, t.targets)
134 self.write(", ")
141 self.write(" in ")
144 self.write(", ")
151 self.write(">>")
155 if do_comma:self.write(", ")
159 self.write(",")
163 interleave(lambda: self.write(", "), self.write, t.names)
166 self.write("(")
167 self.write("yield")
169 self.write(" ")
171 self.write(")")
178 self.write(", ")
181 self.write(", ")
216 self.write(" ")
219 self.write(" as ")
226 self.write("\n")
232 self.write("(")
235 self.write(", ")
236 self.write(")")
242 self.write("\n")
248 self.write(")")
256 self.write(" in ")
305 self.write(" as ")
317 self.write(repr(tree.s))
319 self.write("b" + repr(tree.s))
321 self.write(repr(tree.s).lstrip("u"))
326 self.write(t.id)
329 self.write("`")
331 self.write("`")
337 self.write("(")
339 self.write(repr_n.replace("inf", INFSTR))
341 self.write(")")
344 self.write("[")
345 interleave(lambda: self.write(", "), self.dispatch, t.elts)
346 self.write("]")
349 self.write("[")
353 self.write("]")
356 self.write("(")
360 self.write(")")
363 self.write("{")
367 self.write("}")
370 self.write("{")
372 self.write(": ")
376 self.write("}")
379 self.write(" for ")
381 self.write(" in ")
384 self.write(" if ")
388 self.write("(")
390 self.write(" if ")
392 self.write(" else ")
394 self.write(")")
398 self.write("{")
399 interleave(lambda: self.write(", "), self.dispatch, t.elts)
400 self.write("}")
403 self.write("{")
407 self.write(": ")
409 interleave(lambda: self.write(", "), write_pair, zip(t.keys, t.values))
410 self.write("}")
413 self.write("(")
417 self.write(",")
419 interleave(lambda: self.write(", "), self.dispatch, t.elts)
420 self.write(")")
424 self.write("(")
425 self.write(self.unop[t.op.__class__.__name__])
426 self.write(" ")
433 self.write("(")
435 self.write(")")
438 self.write(")")
444 self.write("(")
446 self.write(" " + self.binop[t.op.__class__.__name__] + " ")
448 self.write(")")
453 self.write("(")
456 self.write(" " + self.cmpops[o.__class__.__name__] + " ")
458 self.write(")")
462 self.write("(")
464 interleave(lambda: self.write(s), self.dispatch, t.values)
465 self.write(")")
473 self.write(" ")
474 self.write(".")
475 self.write(t.attr)
479 self.write("(")
482 if comma: self.write(", ")
486 if comma: self.write(", ")
490 if comma: self.write(", ")
492 self.write("*")
495 if comma: self.write(", ")
497 self.write("**")
499 self.write(")")
503 self.write("[")
505 self.write("]")
509 self.write("...")
517 self.write(":")
521 self.write(":")
525 interleave(lambda: self.write(', '), self.dispatch, t.dims)
534 else: self.write(", ")
537 self.write("=")
543 else: self.write(", ")
544 self.write("*")
545 self.write(t.vararg)
550 else: self.write(", ")
551 self.write("**"+t.kwarg)
554 self.write(t.arg)
555 self.write("=")
559 self.write("(")
560 self.write("lambda ")
562 self.write(": ")
564 self.write(")")
567 self.write(t.name)
569 self.write(" as "+t.asname)
583 sys.stderr.write("Directory not readable: %s" % a)