From: Mike Bayer Date: Fri, 25 Feb 2011 21:12:23 +0000 (-0500) Subject: another file call X-Git-Tag: rel_0_1_0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6233721b1f00ce4bbf15d8854b5ee1ecbd59cf12;p=thirdparty%2Fsqlalchemy%2Falembic.git another file call --- 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)