# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1674461126 -3600 # Mon Jan 23 09:05:26 2023 +0100 # Node ID 2ff8bd7b8e1f91970214d652ff1bfe5eb52308a3 # Parent bcf3b4056d190a1ee51a4ec4839df15992a02e3c 👕 flake8 Newer flake8-bugbear does not bring B028 on double quotes. diff --git a/odoo_scripts/docker_dev_start.py b/odoo_scripts/docker_dev_start.py --- a/odoo_scripts/docker_dev_start.py +++ b/odoo_scripts/docker_dev_start.py @@ -923,8 +923,7 @@ connection.autocommit = True _logger.info("Creating database %s", database) with connection.cursor() as cursor: - # disable B028 as using !r would use single quote - cursor.execute(f'CREATE DATABASE "{database}"') # noqa: B028 + cursor.execute(f'CREATE DATABASE "{database}"') connection.close() if not start_postgresql and not odoo_help and restore_filename: _logger.info("Restoring database %s", database) @@ -1037,8 +1036,7 @@ _logger.debug("Database role exists") try: _logger.info("Creating database %s", redner_database) - # disable B028 as using !r would use single quote - cursor.execute(f'CREATE DATABASE "{redner_database}"') # noqa: B028 + cursor.execute(f'CREATE DATABASE "{redner_database}"') _logger.info("Database created") except DuplicateDatabase: # ignore exception if the database already exists