summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Blaho <petrblaho@gmail.com>2014-06-12 16:10:50 +0200
committerPetr Blaho <petrblaho@gmail.com>2014-08-03 17:19:06 +0200
commit69f16bf8b1e9f7ccf5191b40008e81a793ee85f6 (patch)
tree84f0156e91471987a55b1c7121c3725dde46d1b1
parente1dbd31c5b9fbb35ab54340cb8f05404d446b8e1 (diff)
downloadoslo-db-69f16bf8b1e9f7ccf5191b40008e81a793ee85f6.tar.gz
Fixes comments to pass E265 check.
Fixes comments to pass E265 check. Removes E265 from ignore setting in tox.ini. Change-Id: I2e83c037a920a06b24695d6daea70ded179e3ebe
-rw-r--r--oslo/db/sqlalchemy/migration_cli/ext_base.py2
-rw-r--r--oslo/db/sqlalchemy/migration_cli/ext_migrate.py2
-rw-r--r--oslo/db/sqlalchemy/migration_cli/manager.py4
-rw-r--r--tox.ini2
4 files changed, 5 insertions, 5 deletions
diff --git a/oslo/db/sqlalchemy/migration_cli/ext_base.py b/oslo/db/sqlalchemy/migration_cli/ext_base.py
index 271cd0a..205b7b2 100644
--- a/oslo/db/sqlalchemy/migration_cli/ext_base.py
+++ b/oslo/db/sqlalchemy/migration_cli/ext_base.py
@@ -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
diff --git a/oslo/db/sqlalchemy/migration_cli/ext_migrate.py b/oslo/db/sqlalchemy/migration_cli/ext_migrate.py
index bdd86c3..a64f854 100644
--- a/oslo/db/sqlalchemy/migration_cli/ext_migrate.py
+++ b/oslo/db/sqlalchemy/migration_cli/ext_migrate.py
@@ -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)
diff --git a/oslo/db/sqlalchemy/migration_cli/manager.py b/oslo/db/sqlalchemy/migration_cli/manager.py
index 2e7ba00..c8ab30e 100644
--- a/oslo/db/sqlalchemy/migration_cli/manager.py
+++ b/oslo/db/sqlalchemy/migration_cli/manager.py
@@ -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):
diff --git a/tox.ini b/tox.ini
index 8542471..f912879 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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