From 6233721b1f00ce4bbf15d8854b5ee1ecbd59cf12 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 25 Feb 2011 16:12:23 -0500 Subject: [PATCH] another file call --- alembic/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/script.py b/alembic/script.py index b91a36b2..41e03cd8 100644 --- a/alembic/script.py +++ b/alembic/script.py @@ -107,7 +107,7 @@ class ScriptDirectory(object): def write(self, rev_id, content): path = self._rev_path(rev_id) - file(path, 'w').write(content) + open(path, 'w').write(content) if os.access(path + "c", os.F_OK): os.unlink(path + "c") script = Script.from_path(path) -- 2.47.2