Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(618)

Unified Diff: examples/demo_repository.py

Issue 9900043: relatorio: Add support for Python 3 (Closed)
Patch Set: Fix missing file -> open Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/demo_odf.py ('k') | relatorio/templates/base.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/demo_repository.py
===================================================================
--- a/examples/demo_repository.py
+++ b/examples/demo_repository.py
@@ -28,5 +28,5 @@
print "generating '%s'..." % filename,
report, mimetype, desc = repository.by_id(Invoice, report_name)
data = report(o=inv).render().getvalue()
- file(join(dirname(__file__), filename), 'wb').write(data)
+ open(join(dirname(__file__), filename), 'wb').write(data)
print "done"
« no previous file with comments | « examples/demo_odf.py ('k') | relatorio/templates/base.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b