summaryrefslogtreecommitdiff
path: root/alembic/script.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-30 14:22:32 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-30 14:22:32 -0500
commita9aa76a549199fc1f88c4a114ea92f7f5143f92e (patch)
tree6921083a7e6e5c24fc215c231eed7c643ea9a27a /alembic/script.py
parent3ef2c50d4bd2f14cdee71736ab57df67e88a9492 (diff)
downloadalembic-a9aa76a549199fc1f88c4a114ea92f7f5143f92e.tar.gz
fix long lines
Diffstat (limited to 'alembic/script.py')
-rw-r--r--alembic/script.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/alembic/script.py b/alembic/script.py
index bc5b66a..f9e0224 100644
--- a/alembic/script.py
+++ b/alembic/script.py
@@ -94,20 +94,21 @@ class ScriptDirectory(object):
downrev = script.down_revision
script = self._revision_map[downrev]
if script is None and lower is not None:
- raise util.CommandError("Couldn't find revision %s" % downrev)
+ raise util.CommandError(
+ "Couldn't find revision %s" % downrev)
def upgrade_from(self, destination, current_rev, context):
revs = self._revs(destination, current_rev)
return [
- (script.module.upgrade, script.down_revision, script.revision) for script in
- reversed(list(revs))
+ (script.module.upgrade, script.down_revision, script.revision)
+ for script in reversed(list(revs))
]
def downgrade_to(self, destination, current_rev, context):
revs = self._revs(current_rev, destination)
return [
- (script.module.downgrade, script.revision, script.down_revision) for script in
- revs
+ (script.module.downgrade, script.revision, script.down_revision)
+ for script in revs
]
def run_env(self):
@@ -268,7 +269,8 @@ class Script(object):
"Could not determine revision id from filename %s. "
"Be sure the 'revision' variable is "
"declared inside the script (please see 'Upgrading "
- "from Alembic 0.1 to 0.2' in the documentation)." % filename)
+ "from Alembic 0.1 to 0.2' in the documentation)."
+ % filename)
else:
revision = m.group(1)
else: