Skip to content

Commit

Permalink
Release management: Remove __future__ imports #5435
Browse files Browse the repository at this point in the history
Python2 got deprecated. 🎉 The `__future__` imports are not needed
any more!
  • Loading branch information
Joel Dierkes committed Jun 20, 2022
1 parent 00de174 commit 5e91192
Show file tree
Hide file tree
Showing 84 changed files with 0 additions and 166 deletions.
2 changes: 0 additions & 2 deletions bin/rucio
Expand Up @@ -14,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

import argparse
import errno
import itertools
Expand Down
3 changes: 0 additions & 3 deletions bin/rucio-admin
Expand Up @@ -14,9 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division
from __future__ import print_function

import argparse
import datetime
import errno
Expand Down
2 changes: 0 additions & 2 deletions bin/rucio-cache-client
Expand Up @@ -18,8 +18,6 @@
Rucio Cache client.
"""

from __future__ import print_function

import argparse
import json
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/api/did.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from copy import deepcopy

import rucio.api.permission
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/api/dirac.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from rucio.api.permission import has_permission
from rucio.api.scope import list_scopes

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/baseclient.py
Expand Up @@ -17,8 +17,6 @@
Client class for callers of the Rucio system
'''

from __future__ import print_function

import errno
import getpass
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/didclient.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from datetime import datetime
from json import dumps, loads

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/diracclient.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from json import dumps
from requests.status_codes import codes

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/downloadclient.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import copy
import enum
import itertools
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/fileclient.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from json import loads

from requests.status_codes import codes
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/client/lifetimeclient.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from json import loads
from requests.status_codes import codes

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/common/logging.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import

import functools
import logging
import sys
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/common/test_rucio_server.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

import unittest
from os import remove
from os.path import basename
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/common/utils.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import, print_function

import argparse
import base64
import datetime
Expand Down
1 change: 0 additions & 1 deletion lib/rucio/core/dirac.py
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function
import re

from json import loads
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/lifetime_exception.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

from re import match
from datetime import datetime, timedelta
from configparser import NoSectionError
Expand Down
1 change: 0 additions & 1 deletion lib/rucio/core/meta.py
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function
from re import match

from sqlalchemy.exc import IntegrityError
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/monitor.py
Expand Up @@ -17,8 +17,6 @@
Graphite counters
"""

from __future__ import division

import atexit
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/naming_convention.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function

from re import match, compile, error
from sqlalchemy.exc import IntegrityError
from traceback import format_exc
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/replica_sorter.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function, division

import random
import shutil
import socket
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/rule.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import json
import logging

Expand Down
1 change: 0 additions & 1 deletion lib/rucio/core/rule_grouping.py
Expand Up @@ -1101,7 +1101,6 @@ def __set_replica_unavailable(replica, session=None):

# # debug helper functions used in apply_rule
#
# from __future__ import print_function
# def prnt(x, header=None):
# print()
# if header:
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/core/transfer.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import copy
import datetime
import logging
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/auditor/__init__.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import queue as Queue
import bz2
import glob
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/automatix/automatix.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
import random
import socket
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/badreplicas/minos.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
import math
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/badreplicas/minos_temporary_expiration.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
import math
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/badreplicas/necromancer.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/bb8/common.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import print_function, division

import logging

from datetime import datetime, date, timedelta
Expand Down
1 change: 0 additions & 1 deletion lib/rucio/daemons/bb8/nuclei_background_rebalance.py
Expand Up @@ -16,7 +16,6 @@
"""
This script is to be used to background rebalance ATLAS t2 datadisks
"""
from __future__ import print_function, division

from sqlalchemy import or_

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/bb8/t2_background_rebalance.py
Expand Up @@ -17,8 +17,6 @@
This script is to be used to background rebalance ATLAS t2 datadisks
"""

from __future__ import print_function, division

from sqlalchemy import or_

from rucio.core.rse_expression_parser import parse_expression
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/c3po/algorithms/simple.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
from operator import itemgetter
from random import shuffle
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/c3po/algorithms/t2_free_space.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
from operator import itemgetter

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
from operator import itemgetter

Expand Down
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import logging
from operator import itemgetter

Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/c3po/collectors/workload.py
Expand Up @@ -17,8 +17,6 @@
C3PO PanDA workload collector
"""

from __future__ import division

import logging
from json import loads
from time import time
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/common.py
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import division

import datetime
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/common.py
Expand Up @@ -17,8 +17,6 @@
Methods common to different conveyor submitter daemons.
"""

from __future__ import division

import datetime
import logging
import re
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/finisher.py
Expand Up @@ -17,8 +17,6 @@
Conveyor finisher is a daemon to update replicas and rules based on requests.
"""

from __future__ import division

import datetime
import functools
import logging
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/poller.py
Expand Up @@ -17,8 +17,6 @@
Conveyor is a daemon to manage file transfers.
"""

from __future__ import division

import datetime
import functools
import itertools
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/receiver.py
Expand Up @@ -17,8 +17,6 @@
Conveyor is a daemon to manage file transfers.
"""

from __future__ import division

import datetime
import json
import logging
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/stager.py
Expand Up @@ -17,8 +17,6 @@
Conveyor stager is a daemon to manage stagein file transfers.
"""

from __future__ import division

import functools
import logging
import threading
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/submitter.py
Expand Up @@ -17,8 +17,6 @@
Conveyor transfer submitter is a daemon to manage non-tape file transfers.
"""

from __future__ import division

import functools
import logging
import threading
Expand Down
2 changes: 0 additions & 2 deletions lib/rucio/daemons/conveyor/throttler.py
Expand Up @@ -17,8 +17,6 @@
Conveyor throttler is a daemon to manage rucio internal queue.
"""

from __future__ import division

import logging
import math
import threading
Expand Down

0 comments on commit 5e91192

Please sign in to comment.