1. Mike Bayer
  2. alembic

Commits

Marcin Kuzminski  committed 68379db

templates pep8 E302 2 blank lines between functions

  • Participants
  • Parent commits 8127da5
  • Branches master

Comments (0)

Files changed (3)

File alembic/templates/generic/script.py.mako

View file
 def upgrade():
     ${upgrades if upgrades else "pass"}
 
+
 def downgrade():
     ${downgrades if downgrades else "pass"}

File alembic/templates/multidb/script.py.mako

View file
 def upgrade(engine):
     eval("upgrade_%s" % engine.name)()
 
+
 def downgrade(engine):
     eval("upgrade_%s" % engine.name)()
 
 def upgrade_${engine}():
     ${context.get("%s_upgrades" % engine, "pass")}
 
+
 def downgrade_${engine}():
     ${context.get("%s_downgrades" % engine, "pass")}
 

File alembic/templates/pylons/script.py.mako

View file
 def upgrade():
     ${upgrades if upgrades else "pass"}
 
+
 def downgrade():
     ${downgrades if downgrades else "pass"}