Merge "Stop to use the __future__ module."

This commit is contained in:
Zuul 2020-07-16 00:12:29 +00:00 committed by Gerrit Code Review
commit 7ed2cc9e14
13 changed files with 0 additions and 24 deletions

View File

@ -18,7 +18,6 @@
"""
A simple cache management utility for Glance.
"""
from __future__ import print_function
import argparse
import collections

View File

@ -18,9 +18,6 @@ Helper script for starting/stopping/reloading Glance server programs.
Thanks for some of the code, Swifties ;)
"""
from __future__ import print_function
from __future__ import with_statement
import argparse
import fcntl
import os

View File

@ -21,8 +21,6 @@
Glance Management Utility
"""
from __future__ import print_function
# FIXME(sirp): When we have glance-admin we can consider merging this into it
# Perhaps for consistency with Nova, we would then rename glance-admin ->
# glance-manage (or the other way around)

View File

@ -16,8 +16,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import print_function
import os
import sys

View File

@ -19,7 +19,6 @@
"""
Utility methods for working with WSGI servers
"""
from __future__ import print_function
import abc
import errno

View File

@ -12,8 +12,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import with_statement
from logging import config as log_config
from alembic import context

View File

@ -16,8 +16,6 @@
"""
Cache driver that uses SQLite to store information about cached images
"""
from __future__ import absolute_import
from contextlib import contextmanager
import os
import sqlite3

View File

@ -50,8 +50,6 @@ $image_cache_dir/
invalid/
queue/
"""
from __future__ import absolute_import
from contextlib import contextmanager
import errno
import os

View File

@ -18,8 +18,6 @@
Utility methods to set testcases up for Swift tests.
"""
from __future__ import print_function
import threading
from oslo_utils import units

View File

@ -12,7 +12,6 @@
"""Fixtures for Glance unit tests."""
# NOTE(mriedem): This is needed for importing from fixtures.
from __future__ import absolute_import
import logging as std_logging
import os

View File

@ -11,8 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
from unittest import mock
import copy

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
from contextlib import contextmanager
import datetime
import hashlib

View File

@ -12,8 +12,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
from unittest import mock
import fixtures