summaryrefslogtreecommitdiff
path: root/alembic/templates
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-11-29 14:15:53 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-11-29 14:15:53 -0500
commitebf9ab42f4eddd6cb06ce910737355d97511812d (patch)
tree84dc6aff215375a3d76bc3d0dd8c478bf8496c65 /alembic/templates
parent044ca10f8fd97ee4bc1102e3c5c6a639c941da65 (diff)
downloadalembic-ebf9ab42f4eddd6cb06ce910737355d97511812d.tar.gz
- fix some more file()->open() in docs
- doc updates, corrections - script uses CommandError consistently
Diffstat (limited to 'alembic/templates')
-rw-r--r--alembic/templates/multidb/env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/templates/multidb/env.py b/alembic/templates/multidb/env.py
index 0db2a67..ee16f06 100644
--- a/alembic/templates/multidb/env.py
+++ b/alembic/templates/multidb/env.py
@@ -51,7 +51,7 @@ def run_migrations_offline():
sys.stderr.write("Writing output to %s\n" % file_)
context.configure(
url=rec['url'],
- output_buffer=file(file_, 'w')
+ output_buffer=open(file_, 'w')
)
context.run_migrations(engine=name)