[pypy-commit] buildbot default: minor adjustments
fijal
noreply at buildbot.pypy.org
Mon Jan 23 12:37:20 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r611:914834b4058a
Date: 2012-01-23 13:36 +0200
http://bitbucket.org/pypy/buildbot/changeset/914834b4058a/
Log: minor adjustments
diff --git a/numready.py b/numready.py
--- a/numready.py
+++ b/numready.py
@@ -214,10 +214,13 @@
)
all_items.append(ItemStatus(item.name, pypy_exists=item in pypy_items))
html = jinja2.Template(PAGE_TEMPLATE).render(all_items=split(sorted(all_items)), msg=msg)
- with tempfile.NamedTemporaryFile(delete=False) as f:
- f.write(html.encode("utf-8"))
- webbrowser.open_new_tab(f.name)
-
+ if len(argv) > 2:
+ with open(argv[2], 'w') as f:
+ f.write(html.encode("utf-8"))
+ else:
+ with tempfile.NamedTemporaryFile(delete=False) as f:
+ f.write(html.encode("utf-8"))
+ print "Saved in: %s" % f.name
if __name__ == '__main__':
main(sys.argv)
More information about the pypy-commit
mailing list