Fixes comments to pass E265 check.
Fixes comments to pass E265 check. Removes E265 from ignore setting in tox.ini. Change-Id: I2e83c037a920a06b24695d6daea70ded179e3ebe
This commit is contained in:
parent
e1dbd31c5b
commit
69f16bf8b1
@ -18,7 +18,7 @@ import six
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class MigrationExtensionBase(object):
|
||||
|
||||
#used to sort migration in logical order
|
||||
# used to sort migration in logical order
|
||||
order = 0
|
||||
|
||||
@property
|
||||
|
@ -49,7 +49,7 @@ class MigrateExtension(ext_base.MigrationExtensionBase):
|
||||
|
||||
def downgrade(self, version):
|
||||
try:
|
||||
#version for migrate should be valid int - else skip
|
||||
# version for migrate should be valid int - else skip
|
||||
if version in ('base', None):
|
||||
version = self.init_version
|
||||
version = int(version)
|
||||
|
@ -46,7 +46,7 @@ class MigrationManager(object):
|
||||
|
||||
def downgrade(self, revision):
|
||||
"""Downgrade database with available backends."""
|
||||
#downgrading should be performed in reversed order
|
||||
# downgrading should be performed in reversed order
|
||||
results = []
|
||||
for plugin in reversed(self._plugins):
|
||||
results.append(plugin.downgrade(revision))
|
||||
@ -63,7 +63,7 @@ class MigrationManager(object):
|
||||
|
||||
def revision(self, message, autogenerate):
|
||||
"""Generate template or autogenerated revision."""
|
||||
#revision should be done only by last plugin
|
||||
# revision should be done only by last plugin
|
||||
return self._plugins[-1].revision(message, autogenerate)
|
||||
|
||||
def stamp(self, revision):
|
||||
|
Loading…
Reference in New Issue
Block a user