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:
Petr Blaho 2014-06-12 16:10:50 +02:00
parent e1dbd31c5b
commit 69f16bf8b1
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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):

View File

@ -45,7 +45,7 @@ commands =
# see https://bugs.launchpad.net/hacking/+bug/1329363
show-source = True
ignore = E123,E125,E265,H305,H307,H803,H904
ignore = E123,E125,H305,H307,H803,H904
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build