Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: recipe_engine/third_party/astunparse/__init__.py

Issue 2387763003: Add initial postprocess unit test thingy. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # coding: utf-8
2 from __future__ import absolute_import
3 from six.moves import cStringIO
4 from .unparser import Unparser
5 from .printer import Printer
6
7
8 __version__ = '1.4.0'
9
10
11 def unparse(tree):
12 v = cStringIO()
13 Unparser(tree, file=v)
14 return v.getvalue()
15
16
17 def dump(tree):
18 v = cStringIO()
19 Printer(file=v).visit(tree)
20 return v.getvalue()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698