From be0ed2c86a5bc351d93c4c733f2feaa6e0014294 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:09:55 +0100 Subject: [PATCH 01/13] Testing: Remove utf-8 declaration from add_header script; #6538 UTF-8 is the default source encoding in Python 3. Declaring it is unncessary, unless Python 2 is also supported. See also: - https://peps.python.org/pep-3120/ - https://docs.python.org/3/howto/unicode.html#python-s-unicode-support - https://stackoverflow.com/questions/14083111/should-i-use-encoding-declaration-in-python-3 --- tools/add_header | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/add_header b/tools/add_header index 2f6009e45d..40b07bdfd4 100755 --- a/tools/add_header +++ b/tools/add_header @@ -307,8 +307,7 @@ class PythonHeaderTemplate(HeaderTemplate): shebag_string = PythonHeaderTemplate._get_file_shebag(self.file_path) or "" return shebag_string \ - + """# -*- coding: utf-8 -*- -# Copyright European Organization for Nuclear Research (CERN) since 2012 + + """# Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From bdf4e0b488437fc58331421440764aa60a3371c7 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:14:56 +0100 Subject: [PATCH 02/13] Testing: Remove utf-8 declarations; #6538 UTF-8 is the default source encoding in Python 3. Declaring it is unncessary, unless Python 2 is also supported. See also: - https://peps.python.org/pep-3120/ - https://docs.python.org/3/howto/unicode.html#python-s-unicode-support - https://stackoverflow.com/questions/14083111/should-i-use-encoding-declaration-in-python-3 --- etc/docker/dev/configure_qbittorrent.py | 1 - lib/rucio/__init__.py | 1 - lib/rucio/alembicrevision.py | 1 - lib/rucio/api/__init__.py | 1 - lib/rucio/api/account.py | 1 - lib/rucio/api/account_limit.py | 1 - lib/rucio/api/authentication.py | 1 - lib/rucio/api/config.py | 1 - lib/rucio/api/credential.py | 1 - lib/rucio/api/did.py | 1 - lib/rucio/api/dirac.py | 1 - lib/rucio/api/exporter.py | 1 - lib/rucio/api/heartbeat.py | 1 - lib/rucio/api/identity.py | 1 - lib/rucio/api/importer.py | 1 - lib/rucio/api/lifetime_exception.py | 1 - lib/rucio/api/lock.py | 1 - lib/rucio/api/meta_conventions.py | 1 - lib/rucio/api/permission.py | 1 - lib/rucio/api/quarantined_replica.py | 1 - lib/rucio/api/replica.py | 1 - lib/rucio/api/request.py | 1 - lib/rucio/api/rse.py | 1 - lib/rucio/api/rule.py | 1 - lib/rucio/api/scope.py | 1 - lib/rucio/api/subscription.py | 1 - lib/rucio/api/vo.py | 1 - lib/rucio/client/__init__.py | 1 - lib/rucio/client/accountclient.py | 1 - lib/rucio/client/accountlimitclient.py | 1 - lib/rucio/client/baseclient.py | 1 - lib/rucio/client/client.py | 1 - lib/rucio/client/configclient.py | 1 - lib/rucio/client/credentialclient.py | 1 - lib/rucio/client/didclient.py | 1 - lib/rucio/client/diracclient.py | 1 - lib/rucio/client/downloadclient.py | 1 - lib/rucio/client/exportclient.py | 1 - lib/rucio/client/fileclient.py | 1 - lib/rucio/client/importclient.py | 1 - lib/rucio/client/lifetimeclient.py | 1 - lib/rucio/client/lockclient.py | 1 - lib/rucio/client/metaconventionsclient.py | 1 - lib/rucio/client/pingclient.py | 1 - lib/rucio/client/replicaclient.py | 1 - lib/rucio/client/requestclient.py | 1 - lib/rucio/client/rseclient.py | 1 - lib/rucio/client/ruleclient.py | 1 - lib/rucio/client/scopeclient.py | 1 - lib/rucio/client/subscriptionclient.py | 1 - lib/rucio/client/touchclient.py | 1 - lib/rucio/client/uploadclient.py | 1 - lib/rucio/common/__init__.py | 1 - lib/rucio/common/cache.py | 1 - lib/rucio/common/config.py | 1 - lib/rucio/common/constants.py | 1 - lib/rucio/common/constraints.py | 1 - lib/rucio/common/didtype.py | 1 - lib/rucio/common/dumper/__init__.py | 1 - lib/rucio/common/dumper/consistency.py | 1 - lib/rucio/common/dumper/data_models.py | 1 - lib/rucio/common/dumper/path_parsing.py | 1 - lib/rucio/common/exception.py | 1 - lib/rucio/common/extra.py | 1 - lib/rucio/common/logging.py | 1 - lib/rucio/common/pcache.py | 1 - lib/rucio/common/plugins.py | 1 - lib/rucio/common/policy.py | 1 - lib/rucio/common/schema/__init__.py | 1 - lib/rucio/common/schema/atlas.py | 1 - lib/rucio/common/schema/belleii.py | 1 - lib/rucio/common/schema/cms.py | 1 - lib/rucio/common/schema/domatpc.py | 1 - lib/rucio/common/schema/escape.py | 1 - lib/rucio/common/schema/generic.py | 1 - lib/rucio/common/schema/generic_multi_vo.py | 1 - lib/rucio/common/schema/icecube.py | 1 - lib/rucio/common/schema/lsst.py | 1 - lib/rucio/common/stomp_utils.py | 1 - lib/rucio/common/stopwatch.py | 1 - lib/rucio/common/test_rucio_server.py | 1 - lib/rucio/common/types.py | 1 - lib/rucio/common/utils.py | 1 - lib/rucio/core/__init__.py | 1 - lib/rucio/core/account.py | 1 - lib/rucio/core/account_counter.py | 1 - lib/rucio/core/account_limit.py | 1 - lib/rucio/core/authentication.py | 1 - lib/rucio/core/config.py | 1 - lib/rucio/core/credential.py | 1 - lib/rucio/core/did.py | 1 - lib/rucio/core/did_meta_plugins/__init__.py | 1 - lib/rucio/core/did_meta_plugins/did_column_meta.py | 1 - lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py | 1 - lib/rucio/core/did_meta_plugins/filter_engine.py | 1 - lib/rucio/core/did_meta_plugins/json_meta.py | 1 - lib/rucio/core/did_meta_plugins/mongo_meta.py | 1 - lib/rucio/core/did_meta_plugins/postgres_meta.py | 1 - lib/rucio/core/dirac.py | 1 - lib/rucio/core/distance.py | 1 - lib/rucio/core/exporter.py | 1 - lib/rucio/core/heartbeat.py | 1 - lib/rucio/core/identity.py | 1 - lib/rucio/core/importer.py | 1 - lib/rucio/core/lifetime_exception.py | 1 - lib/rucio/core/lock.py | 1 - lib/rucio/core/message.py | 1 - lib/rucio/core/meta_conventions.py | 1 - lib/rucio/core/monitor.py | 1 - lib/rucio/core/naming_convention.py | 1 - lib/rucio/core/nongrid_trace.py | 1 - lib/rucio/core/oidc.py | 1 - lib/rucio/core/permission/__init__.py | 1 - lib/rucio/core/permission/atlas.py | 1 - lib/rucio/core/permission/belleii.py | 1 - lib/rucio/core/permission/cms.py | 1 - lib/rucio/core/permission/escape.py | 1 - lib/rucio/core/permission/generic.py | 1 - lib/rucio/core/permission/generic_multi_vo.py | 1 - lib/rucio/core/quarantined_replica.py | 1 - lib/rucio/core/replica.py | 1 - lib/rucio/core/replica_sorter.py | 1 - lib/rucio/core/request.py | 1 - lib/rucio/core/rse.py | 1 - lib/rucio/core/rse_counter.py | 1 - lib/rucio/core/rse_expression_parser.py | 1 - lib/rucio/core/rse_selector.py | 1 - lib/rucio/core/rule.py | 1 - lib/rucio/core/rule_grouping.py | 1 - lib/rucio/core/scope.py | 1 - lib/rucio/core/subscription.py | 1 - lib/rucio/core/topology.py | 1 - lib/rucio/core/trace.py | 1 - lib/rucio/core/transfer.py | 1 - lib/rucio/core/vo.py | 1 - lib/rucio/core/volatile_replica.py | 1 - lib/rucio/daemons/__init__.py | 1 - lib/rucio/daemons/abacus/__init__.py | 1 - lib/rucio/daemons/abacus/account.py | 1 - lib/rucio/daemons/abacus/collection_replica.py | 1 - lib/rucio/daemons/abacus/rse.py | 1 - lib/rucio/daemons/atropos/__init__.py | 1 - lib/rucio/daemons/atropos/atropos.py | 1 - lib/rucio/daemons/auditor/__init__.py | 1 - lib/rucio/daemons/auditor/hdfs.py | 1 - lib/rucio/daemons/auditor/srmdumps.py | 1 - lib/rucio/daemons/automatix/__init__.py | 1 - lib/rucio/daemons/automatix/automatix.py | 1 - lib/rucio/daemons/badreplicas/__init__.py | 1 - lib/rucio/daemons/badreplicas/minos.py | 1 - lib/rucio/daemons/badreplicas/minos_temporary_expiration.py | 1 - lib/rucio/daemons/badreplicas/necromancer.py | 1 - lib/rucio/daemons/bb8/__init__.py | 1 - lib/rucio/daemons/bb8/bb8.py | 1 - lib/rucio/daemons/bb8/common.py | 1 - lib/rucio/daemons/bb8/nuclei_background_rebalance.py | 1 - lib/rucio/daemons/bb8/t2_background_rebalance.py | 1 - lib/rucio/daemons/c3po/__init__.py | 1 - lib/rucio/daemons/c3po/algorithms/__init__.py | 1 - lib/rucio/daemons/c3po/algorithms/simple.py | 1 - lib/rucio/daemons/c3po/algorithms/t2_free_space.py | 1 - lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py | 1 - .../c3po/algorithms/t2_free_space_only_pop_with_network.py | 1 - lib/rucio/daemons/c3po/c3po.py | 1 - lib/rucio/daemons/c3po/collectors/__init__.py | 1 - lib/rucio/daemons/c3po/collectors/agis.py | 1 - lib/rucio/daemons/c3po/collectors/free_space.py | 1 - lib/rucio/daemons/c3po/collectors/jedi_did.py | 1 - lib/rucio/daemons/c3po/collectors/mock_did.py | 1 - lib/rucio/daemons/c3po/collectors/network_metrics.py | 1 - lib/rucio/daemons/c3po/collectors/workload.py | 1 - lib/rucio/daemons/c3po/utils/__init__.py | 1 - lib/rucio/daemons/c3po/utils/dataset_cache.py | 1 - lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py | 1 - lib/rucio/daemons/c3po/utils/expiring_list.py | 1 - lib/rucio/daemons/c3po/utils/popularity.py | 1 - lib/rucio/daemons/c3po/utils/timeseries.py | 1 - lib/rucio/daemons/common.py | 1 - lib/rucio/daemons/conveyor/__init__.py | 1 - lib/rucio/daemons/conveyor/common.py | 1 - lib/rucio/daemons/conveyor/finisher.py | 1 - lib/rucio/daemons/conveyor/poller.py | 1 - lib/rucio/daemons/conveyor/preparer.py | 1 - lib/rucio/daemons/conveyor/receiver.py | 1 - lib/rucio/daemons/conveyor/stager.py | 1 - lib/rucio/daemons/conveyor/submitter.py | 1 - lib/rucio/daemons/conveyor/throttler.py | 1 - lib/rucio/daemons/follower/__init__.py | 1 - lib/rucio/daemons/follower/follower.py | 1 - lib/rucio/daemons/hermes/__init__.py | 1 - lib/rucio/daemons/hermes/hermes.py | 1 - lib/rucio/daemons/judge/__init__.py | 1 - lib/rucio/daemons/judge/cleaner.py | 1 - lib/rucio/daemons/judge/evaluator.py | 1 - lib/rucio/daemons/judge/injector.py | 1 - lib/rucio/daemons/judge/repairer.py | 1 - lib/rucio/daemons/oauthmanager/__init__.py | 1 - lib/rucio/daemons/oauthmanager/oauthmanager.py | 1 - lib/rucio/daemons/reaper/__init__.py | 1 - lib/rucio/daemons/reaper/dark_reaper.py | 1 - lib/rucio/daemons/reaper/reaper.py | 1 - lib/rucio/daemons/replicarecoverer/__init__.py | 1 - .../daemons/replicarecoverer/suspicious_replica_recoverer.py | 1 - lib/rucio/daemons/rsedecommissioner/__init__.py | 1 - lib/rucio/daemons/rsedecommissioner/config.py | 1 - lib/rucio/daemons/rsedecommissioner/profiles/__init__.py | 1 - lib/rucio/daemons/rsedecommissioner/profiles/atlas.py | 1 - lib/rucio/daemons/rsedecommissioner/profiles/generic.py | 1 - lib/rucio/daemons/rsedecommissioner/profiles/types.py | 1 - lib/rucio/daemons/rsedecommissioner/rse_decommissioner.py | 1 - lib/rucio/daemons/storage/__init__.py | 1 - lib/rucio/daemons/storage/consistency/__init__.py | 1 - lib/rucio/daemons/storage/consistency/actions.py | 1 - lib/rucio/daemons/tracer/__init__.py | 1 - lib/rucio/daemons/tracer/kronos.py | 1 - lib/rucio/daemons/transmogrifier/__init__.py | 1 - lib/rucio/daemons/transmogrifier/transmogrifier.py | 1 - lib/rucio/daemons/undertaker/__init__.py | 1 - lib/rucio/daemons/undertaker/undertaker.py | 1 - lib/rucio/db/__init__.py | 1 - lib/rucio/db/sqla/__init__.py | 1 - lib/rucio/db/sqla/constants.py | 1 - lib/rucio/db/sqla/migrate_repo/__init__.py | 1 - lib/rucio/db/sqla/migrate_repo/env.py | 1 - .../01eaf73ab656_add_new_rule_notification_state_progress.py | 1 - .../migrate_repo/versions/0437a40dbfd1_add_eol_at_in_rules.py | 1 - .../versions/0f1adb7a599a_create_transfer_hops_table.py | 1 - .../versions/102efcf145f4_added_stuck_at_column_to_rules.py | 1 - .../versions/13d4f70c66a9_introduce_transfer_limits.py | 1 - .../versions/140fef722e91_cleanup_distances_table.py | 1 - .../versions/14ec5aeb64cf_add_request_external_host.py | 1 - .../versions/156fb5b5a14_add_request_type_to_requests_idx.py | 1 - .../1677d4d803c8_split_rse_availability_into_multiple.py | 1 - .../versions/16a0aca82e12_create_index_on_table_replicas_path.py | 1 - .../versions/1803333ac20f_adding_provenance_and_phys_group.py | 1 - .../versions/1a29d6a9504c_add_didtype_chck_to_requests.py | 1 - .../versions/1a80adff031a_create_index_on_rules_hist_recent.py | 1 - .../versions/1c45d9730ca6_increase_identity_length.py | 1 - .../versions/1d1215494e95_add_quarantined_replicas_table.py | 1 - .../1d96f484df21_asynchronous_rules_and_rule_approval.py | 1 - .../versions/1f46c5f240ac_add_bytes_column_to_bad_replicas.py | 1 - .../versions/1fc15ab60d43_add_message_history_table.py | 1 - .../versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py | 1 - .../21d6b9dc9961_add_mismatch_scheme_state_to_requests.py | 1 - .../22cf51430c78_add_availability_column_to_table_rses.py | 1 - .../migrate_repo/versions/22d887e4ec0a_create_sources_table.py | 1 - .../25821a8a45a3_remove_unique_constraint_on_requests.py | 1 - .../versions/25fc855625cf_added_unique_constraint_to_rules.py | 1 - .../versions/269fee20dee9_add_repair_cnt_to_locks.py | 1 - .../271a46ea6244_add_ignore_availability_column_to_rules.py | 1 - .../versions/277b5fbb41d3_switch_heartbeats_executable.py | 1 - .../27e3a68927fb_remove_replicas_tombstone_and_replicas_.py | 1 - .../migrate_repo/versions/2854cd9e168_added_rule_id_column.py | 1 - .../versions/295289b5a800_processed_by_and__at_in_requests.py | 1 - .../2962ece31cf4_add_nbaccesses_column_in_the_did_table.py | 1 - .../versions/2af3291ec4c_added_replicas_history_table.py | 1 - .../2b69addda658_add_columns_for_third_party_copy_read_.py | 1 - .../sqla/migrate_repo/versions/2b8e7bcb4783_add_config_table.py | 1 - .../versions/2ba5229cb54c_add_submitted_at_to_requests_table.py | 1 - .../2cbee484dcf9_added_column_volume_to_rse_transfer_.py | 1 - .../2edee4a83846_add_source_to_requests_and_requests_.py | 1 - .../sqla/migrate_repo/versions/2eef46be23d4_change_tokens_pk.py | 1 - .../versions/2f648fc909f3_index_in_rule_history_on_scope_name.py | 1 - .../3082b8cef557_add_naming_convention_table_and_closed_.py | 1 - ...a38b6434e_add_index_on_service_column_in_the_message_table.py | 1 - .../versions/3152492b110b_added_staging_area_column.py | 1 - .../versions/32c7d2783f7e_create_bad_replicas_table.py | 1 - .../versions/3345511706b8_replicas_table_pk_definition_is_in_.py | 1 - .../versions/35ef10d1e11b_change_index_on_table_requests.py | 1 - .../versions/379a19b5332d_create_rse_limits_table.py | 1 - .../versions/384b96aa0f60_created_rule_history_tables.py | 1 - .../migrate_repo/versions/3ac1660a1a72_extend_distance_table.py | 1 - .../3ad36e2268b0_create_collection_replicas_updates_table.py | 1 - .../versions/3c9df354071b_extend_waiting_request_state.py | 1 - .../3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py | 1 - .../40ad39ce3160_add_transferred_at_to_requests_table.py | 1 - .../versions/4207be2fd914_add_notification_column_to_rules.py | 1 - .../42db2617c364_create_index_on_requests_external_id.py | 1 - .../436827b13f82_added_column_activity_to_table_requests.py | 1 - .../44278720f774_update_requests_typ_sta_upd_idx_index.py | 1 - .../versions/45378a1e76a8_create_collection_replica_table.py | 1 - .../versions/469d262be19_removing_created_at_index.py | 1 - .../migrate_repo/versions/4783c1f49cb4_create_distance_table.py | 1 - .../versions/49a21b4d4357_create_index_on_table_tokens.py | 1 - .../4a2cbedda8b9_add_source_replica_expression_column_to_.py | 1 - .../4a7182d9578b_added_bytes_length_accessed_at_columns.py | 1 - .../versions/4bab9edd01fc_create_index_on_requests_rule_id.py | 1 - .../migrate_repo/versions/4c3a4acfe006_new_attr_account_table.py | 1 - .../versions/4cf0a2e127d4_adding_transient_metadata.py | 1 - .../migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py | 1 - .../migrate_repo/versions/50280c53117c_add_qos_class_to_rse.py | 1 - .../versions/52153819589c_add_rse_id_to_replicas_table.py | 1 - .../versions/52fd9f4916fa_added_activity_to_rules.py | 1 - .../53b479c3cb0f_fix_did_meta_table_missing_updated_at_.py | 1 - .../versions/5673b4b6e843_add_wfms_metadata_to_rule_tables.py | 1 - .../versions/575767d9f89_added_source_history_table.py | 1 - .../versions/58bff7008037_add_started_at_to_requests.py | 1 - .../versions/58c8b78301ab_rename_callback_to_message.py | 1 - .../versions/5f139f77382a_added_child_rule_id_column.py | 1 - .../migrate_repo/versions/688ef1840840_adding_did_meta_table.py | 1 - .../6e572a9bfbf3_add_new_split_container_column_to_rules.py | 1 - .../versions/70587619328_add_comment_column_for_subscriptions.py | 1 - .../versions/739064d31565_remove_history_table_pks.py | 1 - .../7541902bf173_add_didsfollowed_and_followevents_table.py | 1 - .../versions/7ec22226cdbf_new_replica_state_for_temporary_.py | 1 - .../versions/810a41685bc1_added_columns_rse_transfer_limits.py | 1 - .../versions/83f991c63a93_correct_rse_expression_length.py | 1 - .../8523998e2e76_increase_size_of_extended_attributes_.py | 1 - .../8ea9122275b1_adding_missing_function_based_indices.py | 1 - .../versions/90f47792bb76_add_clob_payload_to_messages.py | 1 - .../914b8f02df38_new_table_for_lifetime_model_exceptions.py | 1 - .../migrate_repo/versions/94a5961ddbf2_add_estimator_columns.py | 1 - .../migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py | 1 - .../db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py | 1 - .../db/sqla/migrate_repo/versions/9eb936a81eb1_true_is_true.py | 1 - .../migrate_repo/versions/a08fa8de1545_transfer_stats_table.py | 1 - .../versions/a118956323f8_added_vo_table_and_vo_col_to_rse.py | 1 - .../versions/a193a275255c_add_status_column_in_messages.py | 1 - lib/rucio/db/sqla/migrate_repo/versions/a5f6f6e928a7_1_7_0.py | 1 - .../versions/a616581ee47_added_columns_to_table_requests.py | 1 - .../versions/a6eb23955c28_state_idx_non_functional.py | 1 - .../versions/a74275a1ad30_added_global_quota_table.py | 1 - .../db/sqla/migrate_repo/versions/a93e4e47bda_heartbeats.py | 1 - .../versions/ae2a56fcc89_added_comment_column_to_rules.py | 1 - .../b4293a99f344_added_column_identity_to_table_tokens.py | 1 - .../versions/b7d287de34fd_removal_of_replicastate_source.py | 1 - .../versions/b818052fa670_add_index_to_quarantined_replicas.py | 1 - .../b8caac94d7f0_add_comments_column_for_subscriptions_.py | 1 - .../b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py | 1 - .../migrate_repo/versions/bb695f45c04_extend_request_state.py | 1 - .../versions/bc68e9946deb_add_staging_timestamps_to_request.py | 1 - .../bf3baa1c1474_correct_pk_and_idx_for_history_tables.py | 1 - .../versions/c0937668555f_add_qos_policy_map_table.py | 1 - .../migrate_repo/versions/c129ccdb2d5_add_lumiblocknr_to_dids.py | 1 - .../ccdbcd48206e_add_did_type_column_index_on_did_meta_.py | 1 - .../versions/cebad904c4dd_new_payload_column_for_heartbeats.py | 1 - .../d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py | 1 - .../versions/d23453595260_extend_request_state_for_preparer.py | 1 - .../versions/d6dceb1de2d_added_purge_column_to_rules.py | 1 - .../d6e2c3b2cf26_remove_third_party_copy_column_from_rse.py | 1 - .../versions/d91002c5841_new_account_limits_table.py | 1 - .../versions/e138c364ebd0_extending_columns_for_filter_and_.py | 1 - .../migrate_repo/versions/e59300c8b179_support_for_archive.py | 1 - .../versions/f1b14a8c2ac1_postgres_use_check_constraints.py | 1 - .../versions/f41ffe206f37_oracle_global_temporary_tables.py | 1 - .../f85a2962b021_adding_transfertool_column_to_requests_.py | 1 - .../versions/fa7a7d78b602_increase_refresh_token_size.py | 1 - .../versions/fb28a95fe288_add_replicas_rse_id_tombstone_idx.py | 1 - .../fe1a65b176c9_set_third_party_copy_read_and_write_.py | 1 - .../fe8ea2fa9788_added_third_party_copy_column_to_rse_.py | 1 - lib/rucio/db/sqla/models.py | 1 - lib/rucio/db/sqla/sautils.py | 1 - lib/rucio/db/sqla/session.py | 1 - lib/rucio/db/sqla/types.py | 1 - lib/rucio/db/sqla/util.py | 1 - lib/rucio/rse/__init__.py | 1 - lib/rucio/rse/protocols/__init__.py | 1 - lib/rucio/rse/protocols/bittorrent.py | 1 - lib/rucio/rse/protocols/cache.py | 1 - lib/rucio/rse/protocols/dummy.py | 1 - lib/rucio/rse/protocols/gfal.py | 1 - lib/rucio/rse/protocols/globus.py | 1 - lib/rucio/rse/protocols/gsiftp.py | 1 - lib/rucio/rse/protocols/http_cache.py | 1 - lib/rucio/rse/protocols/mock.py | 1 - lib/rucio/rse/protocols/ngarc.py | 1 - lib/rucio/rse/protocols/posix.py | 1 - lib/rucio/rse/protocols/protocol.py | 1 - lib/rucio/rse/protocols/rclone.py | 1 - lib/rucio/rse/protocols/rfio.py | 1 - lib/rucio/rse/protocols/srm.py | 1 - lib/rucio/rse/protocols/ssh.py | 1 - lib/rucio/rse/protocols/storm.py | 1 - lib/rucio/rse/protocols/webdav.py | 1 - lib/rucio/rse/protocols/xrootd.py | 1 - lib/rucio/rse/rsemanager.py | 1 - lib/rucio/tests/__init__.py | 1 - lib/rucio/tests/common.py | 1 - lib/rucio/tests/common_server.py | 1 - lib/rucio/transfertool/__init__.py | 1 - lib/rucio/transfertool/bittorrent.py | 1 - lib/rucio/transfertool/bittorrent_driver.py | 1 - lib/rucio/transfertool/bittorrent_driver_qbittorrent.py | 1 - lib/rucio/transfertool/fts3.py | 1 - lib/rucio/transfertool/fts3_plugins.py | 1 - lib/rucio/transfertool/globus.py | 1 - lib/rucio/transfertool/globus_library.py | 1 - lib/rucio/transfertool/mock.py | 1 - lib/rucio/transfertool/transfertool.py | 1 - lib/rucio/version.py | 1 - lib/rucio/web/__init__.py | 1 - lib/rucio/web/rest/__init__.py | 1 - lib/rucio/web/rest/flaskapi/__init__.py | 1 - lib/rucio/web/rest/flaskapi/authenticated_bp.py | 1 - lib/rucio/web/rest/flaskapi/v1/__init__.py | 1 - lib/rucio/web/rest/flaskapi/v1/accountlimits.py | 1 - lib/rucio/web/rest/flaskapi/v1/accounts.py | 1 - lib/rucio/web/rest/flaskapi/v1/archives.py | 1 - lib/rucio/web/rest/flaskapi/v1/auth.py | 1 - lib/rucio/web/rest/flaskapi/v1/common.py | 1 - lib/rucio/web/rest/flaskapi/v1/config.py | 1 - lib/rucio/web/rest/flaskapi/v1/credentials.py | 1 - lib/rucio/web/rest/flaskapi/v1/dids.py | 1 - lib/rucio/web/rest/flaskapi/v1/dirac.py | 1 - lib/rucio/web/rest/flaskapi/v1/export.py | 1 - lib/rucio/web/rest/flaskapi/v1/heartbeats.py | 1 - lib/rucio/web/rest/flaskapi/v1/identities.py | 1 - lib/rucio/web/rest/flaskapi/v1/import.py | 1 - lib/rucio/web/rest/flaskapi/v1/lifetime_exceptions.py | 1 - lib/rucio/web/rest/flaskapi/v1/locks.py | 1 - lib/rucio/web/rest/flaskapi/v1/main.py | 1 - lib/rucio/web/rest/flaskapi/v1/meta_conventions.py | 1 - lib/rucio/web/rest/flaskapi/v1/metrics.py | 1 - lib/rucio/web/rest/flaskapi/v1/nongrid_traces.py | 1 - lib/rucio/web/rest/flaskapi/v1/ping.py | 1 - lib/rucio/web/rest/flaskapi/v1/redirect.py | 1 - lib/rucio/web/rest/flaskapi/v1/replicas.py | 1 - lib/rucio/web/rest/flaskapi/v1/requests.py | 1 - lib/rucio/web/rest/flaskapi/v1/rses.py | 1 - lib/rucio/web/rest/flaskapi/v1/rules.py | 1 - lib/rucio/web/rest/flaskapi/v1/scopes.py | 1 - lib/rucio/web/rest/flaskapi/v1/subscriptions.py | 1 - lib/rucio/web/rest/flaskapi/v1/traces.py | 1 - lib/rucio/web/rest/flaskapi/v1/vos.py | 1 - lib/rucio/web/rest/main.py | 1 - lib/rucio/web/rest/metrics.py | 1 - lib/rucio/web/rest/ping.py | 1 - lib/rucio/web/ui/__init__.py | 1 - lib/rucio/web/ui/flask/__init__.py | 1 - lib/rucio/web/ui/flask/bp.py | 1 - lib/rucio/web/ui/flask/common/__init__.py | 1 - lib/rucio/web/ui/flask/common/utils.py | 1 - lib/rucio/web/ui/flask/main.py | 1 - lib/rucio/web/ui/main.py | 1 - setup_rucio.py | 1 - setup_rucio_client.py | 1 - setup_webui.py | 1 - setuputil.py | 1 - tests/__init__.py | 1 - tests/conftest.py | 1 - tests/inputs/__init__.py | 1 - tests/lfn2pfn_module_test.py | 1 - tests/mocks/__init__.py | 1 - tests/mocks/gfal2.py | 1 - tests/mocks/mock_http_server.py | 1 - tests/rsemgr_api_test.py | 1 - tests/ruciopytest/__init__.py | 1 - tests/ruciopytest/artifacts_plugin.py | 1 - tests/ruciopytest/xdist_noparallel_remote.py | 1 - tests/ruciopytest/xdist_noparallel_scheduler.py | 1 - tests/temp_factories.py | 1 - tests/test_abacus_account.py | 1 - tests/test_abacus_collection_replica.py | 1 - tests/test_abacus_rse.py | 1 - tests/test_account.py | 1 - tests/test_account_limits.py | 1 - tests/test_api_external_representation.py | 1 - tests/test_archive.py | 1 - tests/test_auditor.py | 1 - tests/test_auditor_hdfs.py | 1 - tests/test_auditor_srmdumps.py | 1 - tests/test_authentication.py | 1 - tests/test_automatix.py | 1 - tests/test_bad_replica.py | 1 - tests/test_bb8.py | 1 - tests/test_belleii.py | 1 - tests/test_bin_rucio.py | 1 - tests/test_boolean.py | 1 - tests/test_clients.py | 1 - tests/test_common_types.py | 1 - tests/test_config.py | 1 - tests/test_conveyor.py | 1 - tests/test_conveyor_submitter.py | 1 - tests/test_counter.py | 1 - tests/test_credential.py | 1 - tests/test_curl.py | 1 - tests/test_daemons.py | 1 - tests/test_dataset_replicas.py | 1 - tests/test_db.py | 1 - tests/test_did.py | 1 - tests/test_did_meta_plugins.py | 1 - tests/test_didtype.py | 1 - tests/test_download.py | 1 - tests/test_dumper.py | 1 - tests/test_dumper_consistency.py | 1 - tests/test_dumper_data_model.py | 1 - tests/test_dumper_path_parsing.py | 1 - tests/test_filter_engine.py | 1 - tests/test_heartbeat.py | 1 - tests/test_hermes.py | 1 - tests/test_identity.py | 1 - tests/test_impl_upload_download.py | 1 - tests/test_import_export.py | 1 - tests/test_judge_cleaner.py | 1 - tests/test_judge_evaluator.py | 1 - tests/test_judge_injector.py | 1 - tests/test_judge_repairer.py | 1 - tests/test_lifetime.py | 1 - tests/test_message.py | 1 - tests/test_meta_conventions.py | 1 - tests/test_meta_did.py | 1 - tests/test_module_import.py | 1 - tests/test_monitor.py | 1 - tests/test_multi_vo.py | 1 - tests/test_naming_convention.py | 1 - tests/test_oauthmanager.py | 1 - tests/test_oidc.py | 1 - tests/test_permission.py | 1 - tests/test_pfns.py | 1 - tests/test_ping.py | 1 - tests/test_preparer.py | 1 - tests/test_qos.py | 1 - tests/test_quarantined_replica.py | 1 - tests/test_reaper.py | 1 - tests/test_redirect.py | 1 - tests/test_replica.py | 1 - tests/test_replica_recoverer.py | 1 - tests/test_replica_sorting.py | 1 - tests/test_request.py | 1 - tests/test_root_proxy.py | 1 - tests/test_rse.py | 1 - tests/test_rse_expression_parser.py | 1 - tests/test_rse_lfn2path.py | 1 - tests/test_rse_protocol_gfal2.py | 1 - tests/test_rse_protocol_gfal2_impl.py | 1 - tests/test_rse_protocol_posix.py | 1 - tests/test_rse_protocol_rclone.py | 1 - tests/test_rse_protocol_rsync.py | 1 - tests/test_rse_protocol_srm.py | 1 - tests/test_rse_protocol_ssh.py | 1 - tests/test_rse_protocol_webdav.py | 1 - tests/test_rse_protocol_xrootd.py | 1 - tests/test_rse_selector.py | 1 - tests/test_rucio_server.py | 1 - tests/test_rule.py | 1 - tests/test_schema_cms.py | 1 - tests/test_scope.py | 1 - tests/test_subscription.py | 1 - tests/test_throttler.py | 1 - tests/test_tpc.py | 1 - tests/test_trace.py | 1 - tests/test_transfer.py | 1 - tests/test_transfer_plugins.py | 1 - tests/test_undertaker.py | 1 - tests/test_upload.py | 1 - tests/test_utils.py | 1 - tools/add_header | 1 - tools/bootstrap.py | 1 - tools/bootstrap_tests.py | 1 - tools/convert_database_vo.py | 1 - tools/destroy_database.py | 1 - tools/generate_doc.py | 1 - tools/generate_rest_api_doc.py | 1 - tools/generate_version.py | 1 - tools/github/workflow/grabrelease.py | 1 - tools/github/workflow/set_branch_output_env.py | 1 - tools/github/workflow/util.py | 1 - tools/merge_rucio_configs.py | 1 - tools/monitoring/extract.py | 1 - tools/reset_database.py | 1 - tools/run_pyright/__init__.py | 1 - tools/run_pyright/__main__.py | 1 - tools/run_pyright/compare.py | 1 - tools/run_pyright/generate.py | 1 - tools/run_pyright/models.py | 1 - tools/run_pyright/utils.py | 1 - tools/sync_meta.py | 1 - tools/sync_rses.py | 1 - tools/test/build_images.py | 1 - tools/test/donkeyrider.py | 1 - tools/test/ignoretool.py | 1 - tools/test/matrix_parser.py | 1 - tools/test/run_tests.py | 1 - tools/test/votest_helper.py | 1 - tools/update_ui_version.py | 1 - 575 files changed, 575 deletions(-) diff --git a/etc/docker/dev/configure_qbittorrent.py b/etc/docker/dev/configure_qbittorrent.py index 5d16e07f32..b78d878e56 100644 --- a/etc/docker/dev/configure_qbittorrent.py +++ b/etc/docker/dev/configure_qbittorrent.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/__init__.py b/lib/rucio/__init__.py index fc6b269b42..f1f7b50d40 100644 --- a/lib/rucio/__init__.py +++ b/lib/rucio/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/alembicrevision.py b/lib/rucio/alembicrevision.py index 693ad545ac..d29a3e2369 100644 --- a/lib/rucio/alembicrevision.py +++ b/lib/rucio/alembicrevision.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/__init__.py b/lib/rucio/api/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/api/__init__.py +++ b/lib/rucio/api/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/account.py b/lib/rucio/api/account.py index bd0840963c..40b8d66be0 100644 --- a/lib/rucio/api/account.py +++ b/lib/rucio/api/account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/account_limit.py b/lib/rucio/api/account_limit.py index c0ac708ca4..d7302a7148 100644 --- a/lib/rucio/api/account_limit.py +++ b/lib/rucio/api/account_limit.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/authentication.py b/lib/rucio/api/authentication.py index cb8fc68c8a..5df050359b 100644 --- a/lib/rucio/api/authentication.py +++ b/lib/rucio/api/authentication.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/config.py b/lib/rucio/api/config.py index 47c9ca490d..f9cf28da2e 100644 --- a/lib/rucio/api/config.py +++ b/lib/rucio/api/config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/credential.py b/lib/rucio/api/credential.py index 4fc5797cce..8915fcfd42 100644 --- a/lib/rucio/api/credential.py +++ b/lib/rucio/api/credential.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/did.py b/lib/rucio/api/did.py index 2a6cae7c34..3f3f01a43b 100644 --- a/lib/rucio/api/did.py +++ b/lib/rucio/api/did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/dirac.py b/lib/rucio/api/dirac.py index 219b59ffcc..b9f53e1a7d 100644 --- a/lib/rucio/api/dirac.py +++ b/lib/rucio/api/dirac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/exporter.py b/lib/rucio/api/exporter.py index 8f4477e30f..15566717fa 100644 --- a/lib/rucio/api/exporter.py +++ b/lib/rucio/api/exporter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/heartbeat.py b/lib/rucio/api/heartbeat.py index 1ff9cbaeb5..11cf0e2ccb 100644 --- a/lib/rucio/api/heartbeat.py +++ b/lib/rucio/api/heartbeat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/identity.py b/lib/rucio/api/identity.py index 0271fb0537..db159d34bc 100644 --- a/lib/rucio/api/identity.py +++ b/lib/rucio/api/identity.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/importer.py b/lib/rucio/api/importer.py index 05d9b3a788..3fbf5d3f88 100644 --- a/lib/rucio/api/importer.py +++ b/lib/rucio/api/importer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/lifetime_exception.py b/lib/rucio/api/lifetime_exception.py index 5e55b90e84..cefd3cb6db 100644 --- a/lib/rucio/api/lifetime_exception.py +++ b/lib/rucio/api/lifetime_exception.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/lock.py b/lib/rucio/api/lock.py index cc08f2a98f..d0f56c5dd7 100644 --- a/lib/rucio/api/lock.py +++ b/lib/rucio/api/lock.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/meta_conventions.py b/lib/rucio/api/meta_conventions.py index 18d85810ca..a0216225d9 100644 --- a/lib/rucio/api/meta_conventions.py +++ b/lib/rucio/api/meta_conventions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/permission.py b/lib/rucio/api/permission.py index ddc0bff8bf..62c240df1a 100644 --- a/lib/rucio/api/permission.py +++ b/lib/rucio/api/permission.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/quarantined_replica.py b/lib/rucio/api/quarantined_replica.py index 0682526808..2567d69773 100644 --- a/lib/rucio/api/quarantined_replica.py +++ b/lib/rucio/api/quarantined_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/replica.py b/lib/rucio/api/replica.py index 7f14c2752e..8d94d40f52 100644 --- a/lib/rucio/api/replica.py +++ b/lib/rucio/api/replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/request.py b/lib/rucio/api/request.py index 98a229dfd3..4016134dd2 100644 --- a/lib/rucio/api/request.py +++ b/lib/rucio/api/request.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/rse.py b/lib/rucio/api/rse.py index 900664d7c0..abeb72de0d 100644 --- a/lib/rucio/api/rse.py +++ b/lib/rucio/api/rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/rule.py b/lib/rucio/api/rule.py index 1b396bce2e..e0bb4810bd 100644 --- a/lib/rucio/api/rule.py +++ b/lib/rucio/api/rule.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/scope.py b/lib/rucio/api/scope.py index 212d617e2b..e35ed2418f 100644 --- a/lib/rucio/api/scope.py +++ b/lib/rucio/api/scope.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/subscription.py b/lib/rucio/api/subscription.py index d76074ff94..2e957d418b 100644 --- a/lib/rucio/api/subscription.py +++ b/lib/rucio/api/subscription.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/api/vo.py b/lib/rucio/api/vo.py index 5b4339daf0..5f77bbf98a 100644 --- a/lib/rucio/api/vo.py +++ b/lib/rucio/api/vo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/__init__.py b/lib/rucio/client/__init__.py index bc13e07fb1..1824c5f62c 100644 --- a/lib/rucio/client/__init__.py +++ b/lib/rucio/client/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/accountclient.py b/lib/rucio/client/accountclient.py index 3d00792cb9..61687974a4 100644 --- a/lib/rucio/client/accountclient.py +++ b/lib/rucio/client/accountclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/accountlimitclient.py b/lib/rucio/client/accountlimitclient.py index a8d965e362..4add1e765d 100644 --- a/lib/rucio/client/accountlimitclient.py +++ b/lib/rucio/client/accountlimitclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/baseclient.py b/lib/rucio/client/baseclient.py index 8b5657bc78..c512625b4c 100644 --- a/lib/rucio/client/baseclient.py +++ b/lib/rucio/client/baseclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/client.py b/lib/rucio/client/client.py index af908b51e6..c53b5fe569 100644 --- a/lib/rucio/client/client.py +++ b/lib/rucio/client/client.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/configclient.py b/lib/rucio/client/configclient.py index c66505c53d..1a76ea77ec 100644 --- a/lib/rucio/client/configclient.py +++ b/lib/rucio/client/configclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/credentialclient.py b/lib/rucio/client/credentialclient.py index 6275bcfdbe..094a4ae896 100644 --- a/lib/rucio/client/credentialclient.py +++ b/lib/rucio/client/credentialclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/didclient.py b/lib/rucio/client/didclient.py index a497d39b09..5e463e1ef6 100644 --- a/lib/rucio/client/didclient.py +++ b/lib/rucio/client/didclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/diracclient.py b/lib/rucio/client/diracclient.py index 2d42559d7e..c89c5d324d 100644 --- a/lib/rucio/client/diracclient.py +++ b/lib/rucio/client/diracclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/downloadclient.py b/lib/rucio/client/downloadclient.py index ecec0e4b27..2789ea8b2b 100644 --- a/lib/rucio/client/downloadclient.py +++ b/lib/rucio/client/downloadclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/exportclient.py b/lib/rucio/client/exportclient.py index eb7b328315..59227ff446 100644 --- a/lib/rucio/client/exportclient.py +++ b/lib/rucio/client/exportclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/fileclient.py b/lib/rucio/client/fileclient.py index cdf07ab136..73de54d8cb 100644 --- a/lib/rucio/client/fileclient.py +++ b/lib/rucio/client/fileclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/importclient.py b/lib/rucio/client/importclient.py index 990e7c251d..dfa054ae04 100644 --- a/lib/rucio/client/importclient.py +++ b/lib/rucio/client/importclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/lifetimeclient.py b/lib/rucio/client/lifetimeclient.py index cc6098d0e3..56fabc4dce 100644 --- a/lib/rucio/client/lifetimeclient.py +++ b/lib/rucio/client/lifetimeclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/lockclient.py b/lib/rucio/client/lockclient.py index a15b388203..d27d1d9cbd 100644 --- a/lib/rucio/client/lockclient.py +++ b/lib/rucio/client/lockclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/metaconventionsclient.py b/lib/rucio/client/metaconventionsclient.py index 7b7e213f62..f0f6ff3ad2 100644 --- a/lib/rucio/client/metaconventionsclient.py +++ b/lib/rucio/client/metaconventionsclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/pingclient.py b/lib/rucio/client/pingclient.py index 57012095d2..a1b4ca1f94 100644 --- a/lib/rucio/client/pingclient.py +++ b/lib/rucio/client/pingclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/replicaclient.py b/lib/rucio/client/replicaclient.py index 41754a593d..4055423d12 100644 --- a/lib/rucio/client/replicaclient.py +++ b/lib/rucio/client/replicaclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/requestclient.py b/lib/rucio/client/requestclient.py index 7f5a880794..d5a93fbbcb 100644 --- a/lib/rucio/client/requestclient.py +++ b/lib/rucio/client/requestclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/rseclient.py b/lib/rucio/client/rseclient.py index efeefd729a..373c5baee3 100644 --- a/lib/rucio/client/rseclient.py +++ b/lib/rucio/client/rseclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/ruleclient.py b/lib/rucio/client/ruleclient.py index 7ad4d19617..986a76461f 100644 --- a/lib/rucio/client/ruleclient.py +++ b/lib/rucio/client/ruleclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/scopeclient.py b/lib/rucio/client/scopeclient.py index 9d497ad5cd..46cb015baf 100644 --- a/lib/rucio/client/scopeclient.py +++ b/lib/rucio/client/scopeclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/subscriptionclient.py b/lib/rucio/client/subscriptionclient.py index dc281c55a8..88ffff9456 100644 --- a/lib/rucio/client/subscriptionclient.py +++ b/lib/rucio/client/subscriptionclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/touchclient.py b/lib/rucio/client/touchclient.py index 7eb6f78550..9a85624503 100644 --- a/lib/rucio/client/touchclient.py +++ b/lib/rucio/client/touchclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/client/uploadclient.py b/lib/rucio/client/uploadclient.py index 8b83fa3858..5de2984430 100644 --- a/lib/rucio/client/uploadclient.py +++ b/lib/rucio/client/uploadclient.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/__init__.py b/lib/rucio/common/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/common/__init__.py +++ b/lib/rucio/common/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/cache.py b/lib/rucio/common/cache.py index cf0d4d8eb2..1abd8f8bae 100644 --- a/lib/rucio/common/cache.py +++ b/lib/rucio/common/cache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/config.py b/lib/rucio/common/config.py index bf163d921a..df44fc9f85 100644 --- a/lib/rucio/common/config.py +++ b/lib/rucio/common/config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/constants.py b/lib/rucio/common/constants.py index aab2ae14d0..9f5ebadbe2 100644 --- a/lib/rucio/common/constants.py +++ b/lib/rucio/common/constants.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/constraints.py b/lib/rucio/common/constraints.py index 73dc4bb439..750ac76155 100644 --- a/lib/rucio/common/constraints.py +++ b/lib/rucio/common/constraints.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/didtype.py b/lib/rucio/common/didtype.py index 78a36282f8..ffb52a6797 100755 --- a/lib/rucio/common/didtype.py +++ b/lib/rucio/common/didtype.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/dumper/__init__.py b/lib/rucio/common/dumper/__init__.py index c3cf65b586..4e530480e5 100644 --- a/lib/rucio/common/dumper/__init__.py +++ b/lib/rucio/common/dumper/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/dumper/consistency.py b/lib/rucio/common/dumper/consistency.py index 54b1f01404..6e35755e44 100644 --- a/lib/rucio/common/dumper/consistency.py +++ b/lib/rucio/common/dumper/consistency.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/dumper/data_models.py b/lib/rucio/common/dumper/data_models.py index 69320406a8..90e68fc7c4 100644 --- a/lib/rucio/common/dumper/data_models.py +++ b/lib/rucio/common/dumper/data_models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/dumper/path_parsing.py b/lib/rucio/common/dumper/path_parsing.py index 89b939b845..187ac51b46 100644 --- a/lib/rucio/common/dumper/path_parsing.py +++ b/lib/rucio/common/dumper/path_parsing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/exception.py b/lib/rucio/common/exception.py index d975fb3b7e..a1776f0d0f 100644 --- a/lib/rucio/common/exception.py +++ b/lib/rucio/common/exception.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/extra.py b/lib/rucio/common/extra.py index f8390e3a65..27fd3f997e 100644 --- a/lib/rucio/common/extra.py +++ b/lib/rucio/common/extra.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/logging.py b/lib/rucio/common/logging.py index da578dbc0a..9813e906b9 100644 --- a/lib/rucio/common/logging.py +++ b/lib/rucio/common/logging.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/pcache.py b/lib/rucio/common/pcache.py index 67fb147605..b937d2dd02 100644 --- a/lib/rucio/common/pcache.py +++ b/lib/rucio/common/pcache.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/plugins.py b/lib/rucio/common/plugins.py index d513002814..e3a5c54146 100644 --- a/lib/rucio/common/plugins.py +++ b/lib/rucio/common/plugins.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/policy.py b/lib/rucio/common/policy.py index 5c996183f3..e84e05834f 100644 --- a/lib/rucio/common/policy.py +++ b/lib/rucio/common/policy.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/__init__.py b/lib/rucio/common/schema/__init__.py index 2ae769dcc3..31d383f05f 100644 --- a/lib/rucio/common/schema/__init__.py +++ b/lib/rucio/common/schema/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/atlas.py b/lib/rucio/common/schema/atlas.py index 5f5a6fb0f2..1adf83db18 100644 --- a/lib/rucio/common/schema/atlas.py +++ b/lib/rucio/common/schema/atlas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/belleii.py b/lib/rucio/common/schema/belleii.py index ca86240c06..8094b57117 100644 --- a/lib/rucio/common/schema/belleii.py +++ b/lib/rucio/common/schema/belleii.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/cms.py b/lib/rucio/common/schema/cms.py index 15ddade0a3..3bdbeb15d9 100644 --- a/lib/rucio/common/schema/cms.py +++ b/lib/rucio/common/schema/cms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/domatpc.py b/lib/rucio/common/schema/domatpc.py index 02fade7827..8714f4e6c1 100644 --- a/lib/rucio/common/schema/domatpc.py +++ b/lib/rucio/common/schema/domatpc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/escape.py b/lib/rucio/common/schema/escape.py index d267dc3817..faab5fe09c 100644 --- a/lib/rucio/common/schema/escape.py +++ b/lib/rucio/common/schema/escape.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/generic.py b/lib/rucio/common/schema/generic.py index 6afa5d6172..c4be91f1ff 100644 --- a/lib/rucio/common/schema/generic.py +++ b/lib/rucio/common/schema/generic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/generic_multi_vo.py b/lib/rucio/common/schema/generic_multi_vo.py index 3560611267..1fe84c4bf7 100644 --- a/lib/rucio/common/schema/generic_multi_vo.py +++ b/lib/rucio/common/schema/generic_multi_vo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/icecube.py b/lib/rucio/common/schema/icecube.py index be3f289cba..72c4b42c62 100644 --- a/lib/rucio/common/schema/icecube.py +++ b/lib/rucio/common/schema/icecube.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/schema/lsst.py b/lib/rucio/common/schema/lsst.py index 1a133a132b..71f3806d55 100644 --- a/lib/rucio/common/schema/lsst.py +++ b/lib/rucio/common/schema/lsst.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/stomp_utils.py b/lib/rucio/common/stomp_utils.py index 83511e382d..7334fe61b7 100644 --- a/lib/rucio/common/stomp_utils.py +++ b/lib/rucio/common/stomp_utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/stopwatch.py b/lib/rucio/common/stopwatch.py index 716670737f..f0686d0127 100644 --- a/lib/rucio/common/stopwatch.py +++ b/lib/rucio/common/stopwatch.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/test_rucio_server.py b/lib/rucio/common/test_rucio_server.py index 8fbcd1d987..301ebe74ac 100644 --- a/lib/rucio/common/test_rucio_server.py +++ b/lib/rucio/common/test_rucio_server.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/types.py b/lib/rucio/common/types.py index 3705d11608..aa3b9a9b8c 100644 --- a/lib/rucio/common/types.py +++ b/lib/rucio/common/types.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/common/utils.py b/lib/rucio/common/utils.py index 4b91fd522c..f68efc84a5 100644 --- a/lib/rucio/common/utils.py +++ b/lib/rucio/common/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/__init__.py b/lib/rucio/core/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/core/__init__.py +++ b/lib/rucio/core/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/account.py b/lib/rucio/core/account.py index 7688dffe52..abfa7c5585 100644 --- a/lib/rucio/core/account.py +++ b/lib/rucio/core/account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/account_counter.py b/lib/rucio/core/account_counter.py index 1f103278d4..e6aa06410b 100644 --- a/lib/rucio/core/account_counter.py +++ b/lib/rucio/core/account_counter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/account_limit.py b/lib/rucio/core/account_limit.py index b420589625..ecc49ba9f8 100644 --- a/lib/rucio/core/account_limit.py +++ b/lib/rucio/core/account_limit.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/authentication.py b/lib/rucio/core/authentication.py index 9e97faa5d1..e8a0d6c7e5 100644 --- a/lib/rucio/core/authentication.py +++ b/lib/rucio/core/authentication.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/config.py b/lib/rucio/core/config.py index d2fe8b842e..b3a913f6dc 100644 --- a/lib/rucio/core/config.py +++ b/lib/rucio/core/config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/credential.py b/lib/rucio/core/credential.py index 047fce0cf8..635e3914da 100644 --- a/lib/rucio/core/credential.py +++ b/lib/rucio/core/credential.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did.py b/lib/rucio/core/did.py index 031cbc8108..fe5d47b8ff 100644 --- a/lib/rucio/core/did.py +++ b/lib/rucio/core/did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/__init__.py b/lib/rucio/core/did_meta_plugins/__init__.py index ab8af3296d..ae67539180 100644 --- a/lib/rucio/core/did_meta_plugins/__init__.py +++ b/lib/rucio/core/did_meta_plugins/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/did_column_meta.py b/lib/rucio/core/did_meta_plugins/did_column_meta.py index 02c9a80643..22295675bb 100644 --- a/lib/rucio/core/did_meta_plugins/did_column_meta.py +++ b/lib/rucio/core/did_meta_plugins/did_column_meta.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py b/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py index 88b9043290..862b97b53e 100644 --- a/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py +++ b/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/filter_engine.py b/lib/rucio/core/did_meta_plugins/filter_engine.py index db7d534949..bfdf6f5362 100644 --- a/lib/rucio/core/did_meta_plugins/filter_engine.py +++ b/lib/rucio/core/did_meta_plugins/filter_engine.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/json_meta.py b/lib/rucio/core/did_meta_plugins/json_meta.py index 3930c91bf8..81c2b0522b 100644 --- a/lib/rucio/core/did_meta_plugins/json_meta.py +++ b/lib/rucio/core/did_meta_plugins/json_meta.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/mongo_meta.py b/lib/rucio/core/did_meta_plugins/mongo_meta.py index fe21464b5b..55ce01ce92 100644 --- a/lib/rucio/core/did_meta_plugins/mongo_meta.py +++ b/lib/rucio/core/did_meta_plugins/mongo_meta.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/did_meta_plugins/postgres_meta.py b/lib/rucio/core/did_meta_plugins/postgres_meta.py index a071332d3b..07f490f9a3 100644 --- a/lib/rucio/core/did_meta_plugins/postgres_meta.py +++ b/lib/rucio/core/did_meta_plugins/postgres_meta.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/dirac.py b/lib/rucio/core/dirac.py index 77bc43877c..8d793ee1bb 100644 --- a/lib/rucio/core/dirac.py +++ b/lib/rucio/core/dirac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/distance.py b/lib/rucio/core/distance.py index 918376e0bd..ba8bfc615e 100644 --- a/lib/rucio/core/distance.py +++ b/lib/rucio/core/distance.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/exporter.py b/lib/rucio/core/exporter.py index 8e93d8cb80..0387b1b16c 100644 --- a/lib/rucio/core/exporter.py +++ b/lib/rucio/core/exporter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/heartbeat.py b/lib/rucio/core/heartbeat.py index 444d50d76e..0f6d47a9fa 100644 --- a/lib/rucio/core/heartbeat.py +++ b/lib/rucio/core/heartbeat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/identity.py b/lib/rucio/core/identity.py index e3da92a0eb..ef871bfd9a 100644 --- a/lib/rucio/core/identity.py +++ b/lib/rucio/core/identity.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/importer.py b/lib/rucio/core/importer.py index 63e741420f..cd1b70e54f 100644 --- a/lib/rucio/core/importer.py +++ b/lib/rucio/core/importer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/lifetime_exception.py b/lib/rucio/core/lifetime_exception.py index 4fd7064da6..566fc42eaf 100644 --- a/lib/rucio/core/lifetime_exception.py +++ b/lib/rucio/core/lifetime_exception.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/lock.py b/lib/rucio/core/lock.py index cc1c27287e..c582eb4c99 100644 --- a/lib/rucio/core/lock.py +++ b/lib/rucio/core/lock.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/message.py b/lib/rucio/core/message.py index fb5a00b84b..1729d022d4 100644 --- a/lib/rucio/core/message.py +++ b/lib/rucio/core/message.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/meta_conventions.py b/lib/rucio/core/meta_conventions.py index 14beb65a18..807d843171 100644 --- a/lib/rucio/core/meta_conventions.py +++ b/lib/rucio/core/meta_conventions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/monitor.py b/lib/rucio/core/monitor.py index 447f2b4920..03482ac27d 100644 --- a/lib/rucio/core/monitor.py +++ b/lib/rucio/core/monitor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/naming_convention.py b/lib/rucio/core/naming_convention.py index d0a82e51f9..ac6d44dc96 100644 --- a/lib/rucio/core/naming_convention.py +++ b/lib/rucio/core/naming_convention.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/nongrid_trace.py b/lib/rucio/core/nongrid_trace.py index ac7430c19e..35071f9b01 100644 --- a/lib/rucio/core/nongrid_trace.py +++ b/lib/rucio/core/nongrid_trace.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/oidc.py b/lib/rucio/core/oidc.py index d85a0122e8..1c08a3dd0e 100644 --- a/lib/rucio/core/oidc.py +++ b/lib/rucio/core/oidc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/__init__.py b/lib/rucio/core/permission/__init__.py index 09c80195c9..095188444e 100644 --- a/lib/rucio/core/permission/__init__.py +++ b/lib/rucio/core/permission/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/atlas.py b/lib/rucio/core/permission/atlas.py index 165b5fb7ad..e69a301ef9 100644 --- a/lib/rucio/core/permission/atlas.py +++ b/lib/rucio/core/permission/atlas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/belleii.py b/lib/rucio/core/permission/belleii.py index 89c8b1ad59..c2ffa7a9d0 100644 --- a/lib/rucio/core/permission/belleii.py +++ b/lib/rucio/core/permission/belleii.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/cms.py b/lib/rucio/core/permission/cms.py index f9799309ea..42e0f00c0a 100644 --- a/lib/rucio/core/permission/cms.py +++ b/lib/rucio/core/permission/cms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/escape.py b/lib/rucio/core/permission/escape.py index 1f4c63fba2..82eb86b510 100644 --- a/lib/rucio/core/permission/escape.py +++ b/lib/rucio/core/permission/escape.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/generic.py b/lib/rucio/core/permission/generic.py index 7ef601fce5..69c4b2401c 100644 --- a/lib/rucio/core/permission/generic.py +++ b/lib/rucio/core/permission/generic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/permission/generic_multi_vo.py b/lib/rucio/core/permission/generic_multi_vo.py index 80b7e3f81f..caed89b210 100644 --- a/lib/rucio/core/permission/generic_multi_vo.py +++ b/lib/rucio/core/permission/generic_multi_vo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/quarantined_replica.py b/lib/rucio/core/quarantined_replica.py index 342f314958..03179df2a7 100644 --- a/lib/rucio/core/quarantined_replica.py +++ b/lib/rucio/core/quarantined_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/replica.py b/lib/rucio/core/replica.py index 8b55cbe444..93f2384605 100644 --- a/lib/rucio/core/replica.py +++ b/lib/rucio/core/replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/replica_sorter.py b/lib/rucio/core/replica_sorter.py index 1309e31c0b..033e4b9152 100644 --- a/lib/rucio/core/replica_sorter.py +++ b/lib/rucio/core/replica_sorter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/request.py b/lib/rucio/core/request.py index c59bdc1d2e..2b41239b84 100644 --- a/lib/rucio/core/request.py +++ b/lib/rucio/core/request.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rse.py b/lib/rucio/core/rse.py index dd4c6415b9..5d2f7abd13 100644 --- a/lib/rucio/core/rse.py +++ b/lib/rucio/core/rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rse_counter.py b/lib/rucio/core/rse_counter.py index cbedecca25..7b3847cb19 100644 --- a/lib/rucio/core/rse_counter.py +++ b/lib/rucio/core/rse_counter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rse_expression_parser.py b/lib/rucio/core/rse_expression_parser.py index b255dbd17d..d44417d8bd 100644 --- a/lib/rucio/core/rse_expression_parser.py +++ b/lib/rucio/core/rse_expression_parser.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rse_selector.py b/lib/rucio/core/rse_selector.py index 48b123abc8..7c320e90d7 100644 --- a/lib/rucio/core/rse_selector.py +++ b/lib/rucio/core/rse_selector.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rule.py b/lib/rucio/core/rule.py index e16d5c84f9..49d1f8420a 100644 --- a/lib/rucio/core/rule.py +++ b/lib/rucio/core/rule.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/rule_grouping.py b/lib/rucio/core/rule_grouping.py index 2e7b5615ad..5fa711b924 100644 --- a/lib/rucio/core/rule_grouping.py +++ b/lib/rucio/core/rule_grouping.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/scope.py b/lib/rucio/core/scope.py index d215bf9c49..ec2e5079bc 100644 --- a/lib/rucio/core/scope.py +++ b/lib/rucio/core/scope.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/subscription.py b/lib/rucio/core/subscription.py index 9df8d954c8..0760493be2 100644 --- a/lib/rucio/core/subscription.py +++ b/lib/rucio/core/subscription.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/topology.py b/lib/rucio/core/topology.py index 6192fe7864..56b141f24e 100644 --- a/lib/rucio/core/topology.py +++ b/lib/rucio/core/topology.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/trace.py b/lib/rucio/core/trace.py index 0cd0bc0fd5..1cfa2e18c4 100644 --- a/lib/rucio/core/trace.py +++ b/lib/rucio/core/trace.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/transfer.py b/lib/rucio/core/transfer.py index 927ef7e95f..1854936587 100644 --- a/lib/rucio/core/transfer.py +++ b/lib/rucio/core/transfer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/vo.py b/lib/rucio/core/vo.py index 6240421090..f2d8a643da 100644 --- a/lib/rucio/core/vo.py +++ b/lib/rucio/core/vo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/core/volatile_replica.py b/lib/rucio/core/volatile_replica.py index b5c78dd331..ae8d5a71e3 100644 --- a/lib/rucio/core/volatile_replica.py +++ b/lib/rucio/core/volatile_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/__init__.py b/lib/rucio/daemons/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/__init__.py +++ b/lib/rucio/daemons/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/abacus/__init__.py b/lib/rucio/daemons/abacus/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/abacus/__init__.py +++ b/lib/rucio/daemons/abacus/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/abacus/account.py b/lib/rucio/daemons/abacus/account.py index 6055188d78..37dcd46c98 100644 --- a/lib/rucio/daemons/abacus/account.py +++ b/lib/rucio/daemons/abacus/account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/abacus/collection_replica.py b/lib/rucio/daemons/abacus/collection_replica.py index 7af89b0177..906e33e23f 100644 --- a/lib/rucio/daemons/abacus/collection_replica.py +++ b/lib/rucio/daemons/abacus/collection_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/abacus/rse.py b/lib/rucio/daemons/abacus/rse.py index f4fd4f0eeb..0ff4b12d84 100644 --- a/lib/rucio/daemons/abacus/rse.py +++ b/lib/rucio/daemons/abacus/rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/atropos/__init__.py b/lib/rucio/daemons/atropos/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/atropos/__init__.py +++ b/lib/rucio/daemons/atropos/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/atropos/atropos.py b/lib/rucio/daemons/atropos/atropos.py index c51f646b21..21c573ee43 100644 --- a/lib/rucio/daemons/atropos/atropos.py +++ b/lib/rucio/daemons/atropos/atropos.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/auditor/__init__.py b/lib/rucio/daemons/auditor/__init__.py index f08d7bb918..1bde50ac66 100644 --- a/lib/rucio/daemons/auditor/__init__.py +++ b/lib/rucio/daemons/auditor/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/auditor/hdfs.py b/lib/rucio/daemons/auditor/hdfs.py index 44e2075f8a..1c1e26df59 100644 --- a/lib/rucio/daemons/auditor/hdfs.py +++ b/lib/rucio/daemons/auditor/hdfs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/auditor/srmdumps.py b/lib/rucio/daemons/auditor/srmdumps.py index 42d72a97c0..e87ed06682 100644 --- a/lib/rucio/daemons/auditor/srmdumps.py +++ b/lib/rucio/daemons/auditor/srmdumps.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/automatix/__init__.py b/lib/rucio/daemons/automatix/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/automatix/__init__.py +++ b/lib/rucio/daemons/automatix/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/automatix/automatix.py b/lib/rucio/daemons/automatix/automatix.py index 7cff2e5432..15b6cc0639 100644 --- a/lib/rucio/daemons/automatix/automatix.py +++ b/lib/rucio/daemons/automatix/automatix.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/badreplicas/__init__.py b/lib/rucio/daemons/badreplicas/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/badreplicas/__init__.py +++ b/lib/rucio/daemons/badreplicas/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/badreplicas/minos.py b/lib/rucio/daemons/badreplicas/minos.py index 0549b43b2c..b7ddea2827 100644 --- a/lib/rucio/daemons/badreplicas/minos.py +++ b/lib/rucio/daemons/badreplicas/minos.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/badreplicas/minos_temporary_expiration.py b/lib/rucio/daemons/badreplicas/minos_temporary_expiration.py index 4239b93aa5..1a388017b2 100644 --- a/lib/rucio/daemons/badreplicas/minos_temporary_expiration.py +++ b/lib/rucio/daemons/badreplicas/minos_temporary_expiration.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/badreplicas/necromancer.py b/lib/rucio/daemons/badreplicas/necromancer.py index a085dfee8a..c6cd3b5d3d 100644 --- a/lib/rucio/daemons/badreplicas/necromancer.py +++ b/lib/rucio/daemons/badreplicas/necromancer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/bb8/__init__.py b/lib/rucio/daemons/bb8/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/bb8/__init__.py +++ b/lib/rucio/daemons/bb8/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/bb8/bb8.py b/lib/rucio/daemons/bb8/bb8.py index b37dd99611..37d03a513b 100644 --- a/lib/rucio/daemons/bb8/bb8.py +++ b/lib/rucio/daemons/bb8/bb8.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/bb8/common.py b/lib/rucio/daemons/bb8/common.py index 913a2a27ce..744f0e606e 100644 --- a/lib/rucio/daemons/bb8/common.py +++ b/lib/rucio/daemons/bb8/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/bb8/nuclei_background_rebalance.py b/lib/rucio/daemons/bb8/nuclei_background_rebalance.py index 22bef087f0..e2247549c7 100644 --- a/lib/rucio/daemons/bb8/nuclei_background_rebalance.py +++ b/lib/rucio/daemons/bb8/nuclei_background_rebalance.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/bb8/t2_background_rebalance.py b/lib/rucio/daemons/bb8/t2_background_rebalance.py index efeeffd7ee..14f8746522 100644 --- a/lib/rucio/daemons/bb8/t2_background_rebalance.py +++ b/lib/rucio/daemons/bb8/t2_background_rebalance.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/__init__.py b/lib/rucio/daemons/c3po/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/c3po/__init__.py +++ b/lib/rucio/daemons/c3po/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/algorithms/__init__.py b/lib/rucio/daemons/c3po/algorithms/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/c3po/algorithms/__init__.py +++ b/lib/rucio/daemons/c3po/algorithms/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/algorithms/simple.py b/lib/rucio/daemons/c3po/algorithms/simple.py index edc1e814fc..1c48349e80 100644 --- a/lib/rucio/daemons/c3po/algorithms/simple.py +++ b/lib/rucio/daemons/c3po/algorithms/simple.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/algorithms/t2_free_space.py b/lib/rucio/daemons/c3po/algorithms/t2_free_space.py index f23e64dec0..dcf9f3c856 100644 --- a/lib/rucio/daemons/c3po/algorithms/t2_free_space.py +++ b/lib/rucio/daemons/c3po/algorithms/t2_free_space.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py b/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py index c4d6db810a..24f80824d0 100644 --- a/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py +++ b/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop_with_network.py b/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop_with_network.py index 212e20fb70..ddf643920b 100644 --- a/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop_with_network.py +++ b/lib/rucio/daemons/c3po/algorithms/t2_free_space_only_pop_with_network.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/c3po.py b/lib/rucio/daemons/c3po/c3po.py index 5aca641ab7..88c12069d7 100644 --- a/lib/rucio/daemons/c3po/c3po.py +++ b/lib/rucio/daemons/c3po/c3po.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/__init__.py b/lib/rucio/daemons/c3po/collectors/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/c3po/collectors/__init__.py +++ b/lib/rucio/daemons/c3po/collectors/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/agis.py b/lib/rucio/daemons/c3po/collectors/agis.py index 4b03680709..ab8be9a45d 100644 --- a/lib/rucio/daemons/c3po/collectors/agis.py +++ b/lib/rucio/daemons/c3po/collectors/agis.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/free_space.py b/lib/rucio/daemons/c3po/collectors/free_space.py index b2ff1c5dcb..3b8db0ea62 100644 --- a/lib/rucio/daemons/c3po/collectors/free_space.py +++ b/lib/rucio/daemons/c3po/collectors/free_space.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/jedi_did.py b/lib/rucio/daemons/c3po/collectors/jedi_did.py index 531a258804..cf1a861d2c 100644 --- a/lib/rucio/daemons/c3po/collectors/jedi_did.py +++ b/lib/rucio/daemons/c3po/collectors/jedi_did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/mock_did.py b/lib/rucio/daemons/c3po/collectors/mock_did.py index ed99e5bb61..07a6efe616 100644 --- a/lib/rucio/daemons/c3po/collectors/mock_did.py +++ b/lib/rucio/daemons/c3po/collectors/mock_did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/network_metrics.py b/lib/rucio/daemons/c3po/collectors/network_metrics.py index acecabf986..f62881ee9f 100644 --- a/lib/rucio/daemons/c3po/collectors/network_metrics.py +++ b/lib/rucio/daemons/c3po/collectors/network_metrics.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/collectors/workload.py b/lib/rucio/daemons/c3po/collectors/workload.py index d19ceadd06..45634eaec4 100644 --- a/lib/rucio/daemons/c3po/collectors/workload.py +++ b/lib/rucio/daemons/c3po/collectors/workload.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/__init__.py b/lib/rucio/daemons/c3po/utils/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/c3po/utils/__init__.py +++ b/lib/rucio/daemons/c3po/utils/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/dataset_cache.py b/lib/rucio/daemons/c3po/utils/dataset_cache.py index 8f02fd1616..f7784a96a4 100644 --- a/lib/rucio/daemons/c3po/utils/dataset_cache.py +++ b/lib/rucio/daemons/c3po/utils/dataset_cache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py b/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py index 4e25bc99c8..532aadce61 100644 --- a/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py +++ b/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/expiring_list.py b/lib/rucio/daemons/c3po/utils/expiring_list.py index 94bbb68bfd..9663c9e928 100644 --- a/lib/rucio/daemons/c3po/utils/expiring_list.py +++ b/lib/rucio/daemons/c3po/utils/expiring_list.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/popularity.py b/lib/rucio/daemons/c3po/utils/popularity.py index 75ffa8fa00..20cb006f2f 100644 --- a/lib/rucio/daemons/c3po/utils/popularity.py +++ b/lib/rucio/daemons/c3po/utils/popularity.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/c3po/utils/timeseries.py b/lib/rucio/daemons/c3po/utils/timeseries.py index 147f124566..4c38a652a2 100644 --- a/lib/rucio/daemons/c3po/utils/timeseries.py +++ b/lib/rucio/daemons/c3po/utils/timeseries.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/common.py b/lib/rucio/daemons/common.py index 60883d6a25..f319de995a 100644 --- a/lib/rucio/daemons/common.py +++ b/lib/rucio/daemons/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/__init__.py b/lib/rucio/daemons/conveyor/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/conveyor/__init__.py +++ b/lib/rucio/daemons/conveyor/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/common.py b/lib/rucio/daemons/conveyor/common.py index bd23218ee5..b359b6fac4 100644 --- a/lib/rucio/daemons/conveyor/common.py +++ b/lib/rucio/daemons/conveyor/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/finisher.py b/lib/rucio/daemons/conveyor/finisher.py index 1dc3b09195..7d6c3c7e5e 100644 --- a/lib/rucio/daemons/conveyor/finisher.py +++ b/lib/rucio/daemons/conveyor/finisher.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/poller.py b/lib/rucio/daemons/conveyor/poller.py index fba63b0775..b725fb158d 100644 --- a/lib/rucio/daemons/conveyor/poller.py +++ b/lib/rucio/daemons/conveyor/poller.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/preparer.py b/lib/rucio/daemons/conveyor/preparer.py index 82eeb01109..00d87f9cfe 100644 --- a/lib/rucio/daemons/conveyor/preparer.py +++ b/lib/rucio/daemons/conveyor/preparer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/receiver.py b/lib/rucio/daemons/conveyor/receiver.py index 356bbe8e9c..3d61f89eb4 100644 --- a/lib/rucio/daemons/conveyor/receiver.py +++ b/lib/rucio/daemons/conveyor/receiver.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/stager.py b/lib/rucio/daemons/conveyor/stager.py index fd6bbdc0ef..f834b2c5d3 100644 --- a/lib/rucio/daemons/conveyor/stager.py +++ b/lib/rucio/daemons/conveyor/stager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/submitter.py b/lib/rucio/daemons/conveyor/submitter.py index 3d701fbd45..c09ba86adf 100644 --- a/lib/rucio/daemons/conveyor/submitter.py +++ b/lib/rucio/daemons/conveyor/submitter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/conveyor/throttler.py b/lib/rucio/daemons/conveyor/throttler.py index f93794202e..28dac61e63 100644 --- a/lib/rucio/daemons/conveyor/throttler.py +++ b/lib/rucio/daemons/conveyor/throttler.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/follower/__init__.py b/lib/rucio/daemons/follower/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/follower/__init__.py +++ b/lib/rucio/daemons/follower/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/follower/follower.py b/lib/rucio/daemons/follower/follower.py index b86dd8dc72..6aa574aa07 100644 --- a/lib/rucio/daemons/follower/follower.py +++ b/lib/rucio/daemons/follower/follower.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/hermes/__init__.py b/lib/rucio/daemons/hermes/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/hermes/__init__.py +++ b/lib/rucio/daemons/hermes/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/hermes/hermes.py b/lib/rucio/daemons/hermes/hermes.py index df279681a0..03f5356ecd 100644 --- a/lib/rucio/daemons/hermes/hermes.py +++ b/lib/rucio/daemons/hermes/hermes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/judge/__init__.py b/lib/rucio/daemons/judge/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/judge/__init__.py +++ b/lib/rucio/daemons/judge/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/judge/cleaner.py b/lib/rucio/daemons/judge/cleaner.py index 43fd24a1b1..5b1c031159 100644 --- a/lib/rucio/daemons/judge/cleaner.py +++ b/lib/rucio/daemons/judge/cleaner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/judge/evaluator.py b/lib/rucio/daemons/judge/evaluator.py index f26a5fa6e0..4348b1b051 100644 --- a/lib/rucio/daemons/judge/evaluator.py +++ b/lib/rucio/daemons/judge/evaluator.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/judge/injector.py b/lib/rucio/daemons/judge/injector.py index a214064597..cbfaee7cca 100644 --- a/lib/rucio/daemons/judge/injector.py +++ b/lib/rucio/daemons/judge/injector.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/judge/repairer.py b/lib/rucio/daemons/judge/repairer.py index b58f24969a..c3341f0f60 100644 --- a/lib/rucio/daemons/judge/repairer.py +++ b/lib/rucio/daemons/judge/repairer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/oauthmanager/__init__.py b/lib/rucio/daemons/oauthmanager/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/oauthmanager/__init__.py +++ b/lib/rucio/daemons/oauthmanager/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/oauthmanager/oauthmanager.py b/lib/rucio/daemons/oauthmanager/oauthmanager.py index 32e15b4834..beed38ca64 100644 --- a/lib/rucio/daemons/oauthmanager/oauthmanager.py +++ b/lib/rucio/daemons/oauthmanager/oauthmanager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/reaper/__init__.py b/lib/rucio/daemons/reaper/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/reaper/__init__.py +++ b/lib/rucio/daemons/reaper/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/reaper/dark_reaper.py b/lib/rucio/daemons/reaper/dark_reaper.py index 40c322802f..dce69ae221 100644 --- a/lib/rucio/daemons/reaper/dark_reaper.py +++ b/lib/rucio/daemons/reaper/dark_reaper.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/reaper/reaper.py b/lib/rucio/daemons/reaper/reaper.py index 069d3da6d1..024f8a74b4 100644 --- a/lib/rucio/daemons/reaper/reaper.py +++ b/lib/rucio/daemons/reaper/reaper.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/replicarecoverer/__init__.py b/lib/rucio/daemons/replicarecoverer/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/replicarecoverer/__init__.py +++ b/lib/rucio/daemons/replicarecoverer/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/replicarecoverer/suspicious_replica_recoverer.py b/lib/rucio/daemons/replicarecoverer/suspicious_replica_recoverer.py index 104aa453e9..eca3d6645e 100755 --- a/lib/rucio/daemons/replicarecoverer/suspicious_replica_recoverer.py +++ b/lib/rucio/daemons/replicarecoverer/suspicious_replica_recoverer.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/__init__.py b/lib/rucio/daemons/rsedecommissioner/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/rsedecommissioner/__init__.py +++ b/lib/rucio/daemons/rsedecommissioner/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/config.py b/lib/rucio/daemons/rsedecommissioner/config.py index 51fcab47b6..71c481eacb 100644 --- a/lib/rucio/daemons/rsedecommissioner/config.py +++ b/lib/rucio/daemons/rsedecommissioner/config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/profiles/__init__.py b/lib/rucio/daemons/rsedecommissioner/profiles/__init__.py index 3b70ba756c..a588b365e3 100644 --- a/lib/rucio/daemons/rsedecommissioner/profiles/__init__.py +++ b/lib/rucio/daemons/rsedecommissioner/profiles/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/profiles/atlas.py b/lib/rucio/daemons/rsedecommissioner/profiles/atlas.py index 5b8d3b8594..3c0c20bfed 100644 --- a/lib/rucio/daemons/rsedecommissioner/profiles/atlas.py +++ b/lib/rucio/daemons/rsedecommissioner/profiles/atlas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/profiles/generic.py b/lib/rucio/daemons/rsedecommissioner/profiles/generic.py index 819b6f6681..adcf336101 100644 --- a/lib/rucio/daemons/rsedecommissioner/profiles/generic.py +++ b/lib/rucio/daemons/rsedecommissioner/profiles/generic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/profiles/types.py b/lib/rucio/daemons/rsedecommissioner/profiles/types.py index e712116844..219e067e34 100644 --- a/lib/rucio/daemons/rsedecommissioner/profiles/types.py +++ b/lib/rucio/daemons/rsedecommissioner/profiles/types.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/rsedecommissioner/rse_decommissioner.py b/lib/rucio/daemons/rsedecommissioner/rse_decommissioner.py index 73e00a0ee3..7a145db7a8 100644 --- a/lib/rucio/daemons/rsedecommissioner/rse_decommissioner.py +++ b/lib/rucio/daemons/rsedecommissioner/rse_decommissioner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/storage/__init__.py b/lib/rucio/daemons/storage/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/storage/__init__.py +++ b/lib/rucio/daemons/storage/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/storage/consistency/__init__.py b/lib/rucio/daemons/storage/consistency/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/storage/consistency/__init__.py +++ b/lib/rucio/daemons/storage/consistency/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/storage/consistency/actions.py b/lib/rucio/daemons/storage/consistency/actions.py index 6ae8762bf3..a765bf67d8 100644 --- a/lib/rucio/daemons/storage/consistency/actions.py +++ b/lib/rucio/daemons/storage/consistency/actions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/tracer/__init__.py b/lib/rucio/daemons/tracer/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/tracer/__init__.py +++ b/lib/rucio/daemons/tracer/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/tracer/kronos.py b/lib/rucio/daemons/tracer/kronos.py index 5118d900ef..6b78d8f4c1 100644 --- a/lib/rucio/daemons/tracer/kronos.py +++ b/lib/rucio/daemons/tracer/kronos.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/transmogrifier/__init__.py b/lib/rucio/daemons/transmogrifier/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/transmogrifier/__init__.py +++ b/lib/rucio/daemons/transmogrifier/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/transmogrifier/transmogrifier.py b/lib/rucio/daemons/transmogrifier/transmogrifier.py index 5a68b3839a..c46a5b30e8 100644 --- a/lib/rucio/daemons/transmogrifier/transmogrifier.py +++ b/lib/rucio/daemons/transmogrifier/transmogrifier.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/undertaker/__init__.py b/lib/rucio/daemons/undertaker/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/daemons/undertaker/__init__.py +++ b/lib/rucio/daemons/undertaker/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/daemons/undertaker/undertaker.py b/lib/rucio/daemons/undertaker/undertaker.py index 8673ed9230..80d92242d4 100644 --- a/lib/rucio/daemons/undertaker/undertaker.py +++ b/lib/rucio/daemons/undertaker/undertaker.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/__init__.py b/lib/rucio/db/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/db/__init__.py +++ b/lib/rucio/db/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/__init__.py b/lib/rucio/db/sqla/__init__.py index 95456e55d1..33d61fb1d9 100644 --- a/lib/rucio/db/sqla/__init__.py +++ b/lib/rucio/db/sqla/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/constants.py b/lib/rucio/db/sqla/constants.py index 2ca08588ce..65b680069c 100644 --- a/lib/rucio/db/sqla/constants.py +++ b/lib/rucio/db/sqla/constants.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/__init__.py b/lib/rucio/db/sqla/migrate_repo/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/db/sqla/migrate_repo/__init__.py +++ b/lib/rucio/db/sqla/migrate_repo/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/env.py b/lib/rucio/db/sqla/migrate_repo/env.py index 608b996141..d629c689ca 100644 --- a/lib/rucio/db/sqla/migrate_repo/env.py +++ b/lib/rucio/db/sqla/migrate_repo/env.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py b/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py index bfbe66c89a..f052c1e053 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/0437a40dbfd1_add_eol_at_in_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/0437a40dbfd1_add_eol_at_in_rules.py index 5640376ad4..0e0e205864 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/0437a40dbfd1_add_eol_at_in_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/0437a40dbfd1_add_eol_at_in_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py b/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py index 579f8a2ffd..5949e9ef4d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/102efcf145f4_added_stuck_at_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/102efcf145f4_added_stuck_at_column_to_rules.py index dc99aefa11..15a0ed0767 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/102efcf145f4_added_stuck_at_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/102efcf145f4_added_stuck_at_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py b/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py index a634162fcb..5064dd84a2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/140fef722e91_cleanup_distances_table.py b/lib/rucio/db/sqla/migrate_repo/versions/140fef722e91_cleanup_distances_table.py index 53da643a3d..87dc52872b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/140fef722e91_cleanup_distances_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/140fef722e91_cleanup_distances_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/14ec5aeb64cf_add_request_external_host.py b/lib/rucio/db/sqla/migrate_repo/versions/14ec5aeb64cf_add_request_external_host.py index 5697f45f6b..6796082b48 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/14ec5aeb64cf_add_request_external_host.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/14ec5aeb64cf_add_request_external_host.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/156fb5b5a14_add_request_type_to_requests_idx.py b/lib/rucio/db/sqla/migrate_repo/versions/156fb5b5a14_add_request_type_to_requests_idx.py index a477786f82..6f2d5e4045 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/156fb5b5a14_add_request_type_to_requests_idx.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/156fb5b5a14_add_request_type_to_requests_idx.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py b/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py index a46db5b34a..7e0cea25c7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/16a0aca82e12_create_index_on_table_replicas_path.py b/lib/rucio/db/sqla/migrate_repo/versions/16a0aca82e12_create_index_on_table_replicas_path.py index 2d52b4e85e..1d4ded8bbc 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/16a0aca82e12_create_index_on_table_replicas_path.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/16a0aca82e12_create_index_on_table_replicas_path.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1803333ac20f_adding_provenance_and_phys_group.py b/lib/rucio/db/sqla/migrate_repo/versions/1803333ac20f_adding_provenance_and_phys_group.py index e30c58d9bc..7ec702b99b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1803333ac20f_adding_provenance_and_phys_group.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1803333ac20f_adding_provenance_and_phys_group.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py index 1734e73165..b7fbda96b8 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1a80adff031a_create_index_on_rules_hist_recent.py b/lib/rucio/db/sqla/migrate_repo/versions/1a80adff031a_create_index_on_rules_hist_recent.py index 07399c1811..d86788f2d6 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1a80adff031a_create_index_on_rules_hist_recent.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1a80adff031a_create_index_on_rules_hist_recent.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py b/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py index e8a6848ff9..e97657a5c0 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py b/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py index 54d8551a19..ae90e4ca70 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py b/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py index cbd6e41c61..acfe2dbcb2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1f46c5f240ac_add_bytes_column_to_bad_replicas.py b/lib/rucio/db/sqla/migrate_repo/versions/1f46c5f240ac_add_bytes_column_to_bad_replicas.py index 4749536f17..fb586aa767 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1f46c5f240ac_add_bytes_column_to_bad_replicas.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1f46c5f240ac_add_bytes_column_to_bad_replicas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py index dc59357c0b..c79685bc0a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py index 8bb17323be..4c6728a653 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py index a4194647f6..30126f49c3 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/22cf51430c78_add_availability_column_to_table_rses.py b/lib/rucio/db/sqla/migrate_repo/versions/22cf51430c78_add_availability_column_to_table_rses.py index e586d7569b..1d81e59d9f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/22cf51430c78_add_availability_column_to_table_rses.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/22cf51430c78_add_availability_column_to_table_rses.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py b/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py index c4eee238d1..5e3fe729d0 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/25821a8a45a3_remove_unique_constraint_on_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/25821a8a45a3_remove_unique_constraint_on_requests.py index 43e637a379..508d073847 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/25821a8a45a3_remove_unique_constraint_on_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/25821a8a45a3_remove_unique_constraint_on_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/25fc855625cf_added_unique_constraint_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/25fc855625cf_added_unique_constraint_to_rules.py index e94015b255..90f5ad2c38 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/25fc855625cf_added_unique_constraint_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/25fc855625cf_added_unique_constraint_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/269fee20dee9_add_repair_cnt_to_locks.py b/lib/rucio/db/sqla/migrate_repo/versions/269fee20dee9_add_repair_cnt_to_locks.py index b8f359afa5..b4362f6deb 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/269fee20dee9_add_repair_cnt_to_locks.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/269fee20dee9_add_repair_cnt_to_locks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/271a46ea6244_add_ignore_availability_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/271a46ea6244_add_ignore_availability_column_to_rules.py index fb5f9e183d..765625ddfe 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/271a46ea6244_add_ignore_availability_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/271a46ea6244_add_ignore_availability_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py b/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py index 710910efe7..5bf8b973a0 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/27e3a68927fb_remove_replicas_tombstone_and_replicas_.py b/lib/rucio/db/sqla/migrate_repo/versions/27e3a68927fb_remove_replicas_tombstone_and_replicas_.py index efa3556cd6..55fcdc09e7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/27e3a68927fb_remove_replicas_tombstone_and_replicas_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/27e3a68927fb_remove_replicas_tombstone_and_replicas_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py b/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py index 28250cdca6..ec003a4fc2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/295289b5a800_processed_by_and__at_in_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/295289b5a800_processed_by_and__at_in_requests.py index 9d1bf4ce0a..96a2aed787 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/295289b5a800_processed_by_and__at_in_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/295289b5a800_processed_by_and__at_in_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2962ece31cf4_add_nbaccesses_column_in_the_did_table.py b/lib/rucio/db/sqla/migrate_repo/versions/2962ece31cf4_add_nbaccesses_column_in_the_did_table.py index d781743dd9..a664e6732d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2962ece31cf4_add_nbaccesses_column_in_the_did_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2962ece31cf4_add_nbaccesses_column_in_the_did_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py index a6d8425ba4..a2757dfdd2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2b69addda658_add_columns_for_third_party_copy_read_.py b/lib/rucio/db/sqla/migrate_repo/versions/2b69addda658_add_columns_for_third_party_copy_read_.py index 3c0abf3e42..24dc46b776 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2b69addda658_add_columns_for_third_party_copy_read_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2b69addda658_add_columns_for_third_party_copy_read_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2b8e7bcb4783_add_config_table.py b/lib/rucio/db/sqla/migrate_repo/versions/2b8e7bcb4783_add_config_table.py index 59ac7234f1..50fda8b93e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2b8e7bcb4783_add_config_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2b8e7bcb4783_add_config_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2ba5229cb54c_add_submitted_at_to_requests_table.py b/lib/rucio/db/sqla/migrate_repo/versions/2ba5229cb54c_add_submitted_at_to_requests_table.py index e50841d55a..b77ecf0993 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2ba5229cb54c_add_submitted_at_to_requests_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2ba5229cb54c_add_submitted_at_to_requests_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2cbee484dcf9_added_column_volume_to_rse_transfer_.py b/lib/rucio/db/sqla/migrate_repo/versions/2cbee484dcf9_added_column_volume_to_rse_transfer_.py index f9cb2b6e6a..b215080470 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2cbee484dcf9_added_column_volume_to_rse_transfer_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2cbee484dcf9_added_column_volume_to_rse_transfer_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py b/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py index e9e6a82a12..2f2b286a15 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2eef46be23d4_change_tokens_pk.py b/lib/rucio/db/sqla/migrate_repo/versions/2eef46be23d4_change_tokens_pk.py index b4300edb2f..e0f026f151 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2eef46be23d4_change_tokens_pk.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2eef46be23d4_change_tokens_pk.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2f648fc909f3_index_in_rule_history_on_scope_name.py b/lib/rucio/db/sqla/migrate_repo/versions/2f648fc909f3_index_in_rule_history_on_scope_name.py index d2c94e7fbb..5556d63e87 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2f648fc909f3_index_in_rule_history_on_scope_name.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2f648fc909f3_index_in_rule_history_on_scope_name.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py b/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py index 6b736f7433..62af248031 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/30fa38b6434e_add_index_on_service_column_in_the_message_table.py b/lib/rucio/db/sqla/migrate_repo/versions/30fa38b6434e_add_index_on_service_column_in_the_message_table.py index 74f436110a..8c2cb34b75 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/30fa38b6434e_add_index_on_service_column_in_the_message_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/30fa38b6434e_add_index_on_service_column_in_the_message_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py b/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py index 54390098de..d3bf7d93d2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py b/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py index 7dcc23c96d..576b3cda1b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py b/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py index ba38bdb6a2..7f6367007c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3345511706b8_replicas_table_pk_definition_is_in_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/35ef10d1e11b_change_index_on_table_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/35ef10d1e11b_change_index_on_table_requests.py index 7851a9cea4..4757185f78 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/35ef10d1e11b_change_index_on_table_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/35ef10d1e11b_change_index_on_table_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py b/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py index f60d19c6bc..e534886bf9 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py index eb193e2a73..f1da4ed33e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3ac1660a1a72_extend_distance_table.py b/lib/rucio/db/sqla/migrate_repo/versions/3ac1660a1a72_extend_distance_table.py index dc6b683ebf..3aaf499c04 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3ac1660a1a72_extend_distance_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3ac1660a1a72_extend_distance_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py b/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py index 5752de3bd9..bfd29f56bb 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py b/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py index 227a55e649..82021f3517 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py b/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py index 0ceb047232..e5f7beb9db 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/40ad39ce3160_add_transferred_at_to_requests_table.py b/lib/rucio/db/sqla/migrate_repo/versions/40ad39ce3160_add_transferred_at_to_requests_table.py index cbe0ba7ea5..96157490d5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/40ad39ce3160_add_transferred_at_to_requests_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/40ad39ce3160_add_transferred_at_to_requests_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py index f581eeae77..9baea20caa 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/42db2617c364_create_index_on_requests_external_id.py b/lib/rucio/db/sqla/migrate_repo/versions/42db2617c364_create_index_on_requests_external_id.py index 1b4fd245ba..9ca4c37f17 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/42db2617c364_create_index_on_requests_external_id.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/42db2617c364_create_index_on_requests_external_id.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/436827b13f82_added_column_activity_to_table_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/436827b13f82_added_column_activity_to_table_requests.py index f1e071a572..cd1b784f47 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/436827b13f82_added_column_activity_to_table_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/436827b13f82_added_column_activity_to_table_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/44278720f774_update_requests_typ_sta_upd_idx_index.py b/lib/rucio/db/sqla/migrate_repo/versions/44278720f774_update_requests_typ_sta_upd_idx_index.py index 1239c29dd2..d1138116c5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/44278720f774_update_requests_typ_sta_upd_idx_index.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/44278720f774_update_requests_typ_sta_upd_idx_index.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py b/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py index c7bafc9285..8e97d1b0ea 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/469d262be19_removing_created_at_index.py b/lib/rucio/db/sqla/migrate_repo/versions/469d262be19_removing_created_at_index.py index 9d1f7c802d..fd8c7930f5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/469d262be19_removing_created_at_index.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/469d262be19_removing_created_at_index.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py b/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py index b3d4625606..5fb5c946e9 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/49a21b4d4357_create_index_on_table_tokens.py b/lib/rucio/db/sqla/migrate_repo/versions/49a21b4d4357_create_index_on_table_tokens.py index 08ec19d485..78de81998b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/49a21b4d4357_create_index_on_table_tokens.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/49a21b4d4357_create_index_on_table_tokens.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4a2cbedda8b9_add_source_replica_expression_column_to_.py b/lib/rucio/db/sqla/migrate_repo/versions/4a2cbedda8b9_add_source_replica_expression_column_to_.py index 06b6d48c2e..ed8ce5442c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4a2cbedda8b9_add_source_replica_expression_column_to_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4a2cbedda8b9_add_source_replica_expression_column_to_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4a7182d9578b_added_bytes_length_accessed_at_columns.py b/lib/rucio/db/sqla/migrate_repo/versions/4a7182d9578b_added_bytes_length_accessed_at_columns.py index e28fb2fd86..4439f87537 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4a7182d9578b_added_bytes_length_accessed_at_columns.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4a7182d9578b_added_bytes_length_accessed_at_columns.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4bab9edd01fc_create_index_on_requests_rule_id.py b/lib/rucio/db/sqla/migrate_repo/versions/4bab9edd01fc_create_index_on_requests_rule_id.py index f1343aa0d7..c83b4dc2f4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4bab9edd01fc_create_index_on_requests_rule_id.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4bab9edd01fc_create_index_on_requests_rule_id.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4c3a4acfe006_new_attr_account_table.py b/lib/rucio/db/sqla/migrate_repo/versions/4c3a4acfe006_new_attr_account_table.py index 215ebe2fb9..a6efec1696 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4c3a4acfe006_new_attr_account_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4c3a4acfe006_new_attr_account_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4cf0a2e127d4_adding_transient_metadata.py b/lib/rucio/db/sqla/migrate_repo/versions/4cf0a2e127d4_adding_transient_metadata.py index eb088e8bd4..6dba91a833 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4cf0a2e127d4_adding_transient_metadata.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4cf0a2e127d4_adding_transient_metadata.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py b/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py index 12c3e695ee..7771616a85 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/50280c53117c_add_qos_class_to_rse.py b/lib/rucio/db/sqla/migrate_repo/versions/50280c53117c_add_qos_class_to_rse.py index 96e297136f..d98ca2e6c2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/50280c53117c_add_qos_class_to_rse.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/50280c53117c_add_qos_class_to_rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/52153819589c_add_rse_id_to_replicas_table.py b/lib/rucio/db/sqla/migrate_repo/versions/52153819589c_add_rse_id_to_replicas_table.py index fb860e9904..892aae61d9 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/52153819589c_add_rse_id_to_replicas_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/52153819589c_add_rse_id_to_replicas_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/52fd9f4916fa_added_activity_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/52fd9f4916fa_added_activity_to_rules.py index d2c76f4e88..fd624e7266 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/52fd9f4916fa_added_activity_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/52fd9f4916fa_added_activity_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/53b479c3cb0f_fix_did_meta_table_missing_updated_at_.py b/lib/rucio/db/sqla/migrate_repo/versions/53b479c3cb0f_fix_did_meta_table_missing_updated_at_.py index 7465c6b282..1a7846bb6f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/53b479c3cb0f_fix_did_meta_table_missing_updated_at_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/53b479c3cb0f_fix_did_meta_table_missing_updated_at_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/5673b4b6e843_add_wfms_metadata_to_rule_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/5673b4b6e843_add_wfms_metadata_to_rule_tables.py index d354fa6d9d..2e7c42e07b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/5673b4b6e843_add_wfms_metadata_to_rule_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/5673b4b6e843_add_wfms_metadata_to_rule_tables.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py index d3e9388ffe..4040acb62f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/58bff7008037_add_started_at_to_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/58bff7008037_add_started_at_to_requests.py index 9dd35ccced..d2c1c1835b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/58bff7008037_add_started_at_to_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/58bff7008037_add_started_at_to_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py b/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py index b68b774cb0..176ad53ccd 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py b/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py index bca8333c00..7e5454ec3e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py b/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py index debd41d4b4..d6d3b9eae8 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/6e572a9bfbf3_add_new_split_container_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/6e572a9bfbf3_add_new_split_container_column_to_rules.py index d3298ff141..3b38ee1e75 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/6e572a9bfbf3_add_new_split_container_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/6e572a9bfbf3_add_new_split_container_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/70587619328_add_comment_column_for_subscriptions.py b/lib/rucio/db/sqla/migrate_repo/versions/70587619328_add_comment_column_for_subscriptions.py index 352b242759..b6b7c9c44f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/70587619328_add_comment_column_for_subscriptions.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/70587619328_add_comment_column_for_subscriptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/739064d31565_remove_history_table_pks.py b/lib/rucio/db/sqla/migrate_repo/versions/739064d31565_remove_history_table_pks.py index 461f44cce0..5072cadeb7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/739064d31565_remove_history_table_pks.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/739064d31565_remove_history_table_pks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py b/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py index b35d811fbb..7e3cc226e7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py b/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py index f6de46949f..cdfd24dadf 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/810a41685bc1_added_columns_rse_transfer_limits.py b/lib/rucio/db/sqla/migrate_repo/versions/810a41685bc1_added_columns_rse_transfer_limits.py index 4fc20d8bc8..fc8faad696 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/810a41685bc1_added_columns_rse_transfer_limits.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/810a41685bc1_added_columns_rse_transfer_limits.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/83f991c63a93_correct_rse_expression_length.py b/lib/rucio/db/sqla/migrate_repo/versions/83f991c63a93_correct_rse_expression_length.py index d57d0418e0..f5c9dc712a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/83f991c63a93_correct_rse_expression_length.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/83f991c63a93_correct_rse_expression_length.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/8523998e2e76_increase_size_of_extended_attributes_.py b/lib/rucio/db/sqla/migrate_repo/versions/8523998e2e76_increase_size_of_extended_attributes_.py index 24f2649444..de23d71b09 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/8523998e2e76_increase_size_of_extended_attributes_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/8523998e2e76_increase_size_of_extended_attributes_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/8ea9122275b1_adding_missing_function_based_indices.py b/lib/rucio/db/sqla/migrate_repo/versions/8ea9122275b1_adding_missing_function_based_indices.py index 4466c6f398..1f4c822f3d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/8ea9122275b1_adding_missing_function_based_indices.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/8ea9122275b1_adding_missing_function_based_indices.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/90f47792bb76_add_clob_payload_to_messages.py b/lib/rucio/db/sqla/migrate_repo/versions/90f47792bb76_add_clob_payload_to_messages.py index 886c084efd..a1c5b2ae62 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/90f47792bb76_add_clob_payload_to_messages.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/90f47792bb76_add_clob_payload_to_messages.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py b/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py index 2b4da66539..040fcd9811 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/94a5961ddbf2_add_estimator_columns.py b/lib/rucio/db/sqla/migrate_repo/versions/94a5961ddbf2_add_estimator_columns.py index 0d635271dc..2986ecd8f1 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/94a5961ddbf2_add_estimator_columns.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/94a5961ddbf2_add_estimator_columns.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py b/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py index a42ddab859..40475c388c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py b/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py index bfe8bef2d9..acb69ede8a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/9eb936a81eb1_true_is_true.py b/lib/rucio/db/sqla/migrate_repo/versions/9eb936a81eb1_true_is_true.py index fd201c5881..eb0d55b361 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/9eb936a81eb1_true_is_true.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/9eb936a81eb1_true_is_true.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py b/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py index bba7a60c18..d9bc461c34 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a118956323f8_added_vo_table_and_vo_col_to_rse.py b/lib/rucio/db/sqla/migrate_repo/versions/a118956323f8_added_vo_table_and_vo_col_to_rse.py index eac0befefb..9d5ceccd6c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a118956323f8_added_vo_table_and_vo_col_to_rse.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a118956323f8_added_vo_table_and_vo_col_to_rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a193a275255c_add_status_column_in_messages.py b/lib/rucio/db/sqla/migrate_repo/versions/a193a275255c_add_status_column_in_messages.py index 2266dee212..e98054f748 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a193a275255c_add_status_column_in_messages.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a193a275255c_add_status_column_in_messages.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a5f6f6e928a7_1_7_0.py b/lib/rucio/db/sqla/migrate_repo/versions/a5f6f6e928a7_1_7_0.py index b01be0577e..922b62d0e4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a5f6f6e928a7_1_7_0.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a5f6f6e928a7_1_7_0.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py index a6509ace49..f36809f8ff 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a6eb23955c28_state_idx_non_functional.py b/lib/rucio/db/sqla/migrate_repo/versions/a6eb23955c28_state_idx_non_functional.py index f3596ffedb..c8cab4cd2b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a6eb23955c28_state_idx_non_functional.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a6eb23955c28_state_idx_non_functional.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a74275a1ad30_added_global_quota_table.py b/lib/rucio/db/sqla/migrate_repo/versions/a74275a1ad30_added_global_quota_table.py index d32ec86061..815677cc08 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a74275a1ad30_added_global_quota_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a74275a1ad30_added_global_quota_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a93e4e47bda_heartbeats.py b/lib/rucio/db/sqla/migrate_repo/versions/a93e4e47bda_heartbeats.py index 61b8231115..d82944900d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a93e4e47bda_heartbeats.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a93e4e47bda_heartbeats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py index 04339e672b..9f3c158a2b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b4293a99f344_added_column_identity_to_table_tokens.py b/lib/rucio/db/sqla/migrate_repo/versions/b4293a99f344_added_column_identity_to_table_tokens.py index 5a81ff946a..58c327f5ca 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b4293a99f344_added_column_identity_to_table_tokens.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b4293a99f344_added_column_identity_to_table_tokens.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py b/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py index bf9f65c8cc..538bbc5d7e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py b/lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py index 44ad092001..11c42f1955 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b818052fa670_add_index_to_quarantined_replicas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b8caac94d7f0_add_comments_column_for_subscriptions_.py b/lib/rucio/db/sqla/migrate_repo/versions/b8caac94d7f0_add_comments_column_for_subscriptions_.py index 6b3f0faccc..d5859b0ac3 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b8caac94d7f0_add_comments_column_for_subscriptions_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b8caac94d7f0_add_comments_column_for_subscriptions_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py b/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py index 165863ad12..25bd74cb07 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py b/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py index a3327f3196..58eefe65fd 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/bc68e9946deb_add_staging_timestamps_to_request.py b/lib/rucio/db/sqla/migrate_repo/versions/bc68e9946deb_add_staging_timestamps_to_request.py index 23b377aef5..3153dd532c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/bc68e9946deb_add_staging_timestamps_to_request.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/bc68e9946deb_add_staging_timestamps_to_request.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py index 6498690016..8b4a4f269e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py b/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py index 13eb3bc441..b4435893d3 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/c129ccdb2d5_add_lumiblocknr_to_dids.py b/lib/rucio/db/sqla/migrate_repo/versions/c129ccdb2d5_add_lumiblocknr_to_dids.py index 17bf5a7d3a..16aec6d3f0 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/c129ccdb2d5_add_lumiblocknr_to_dids.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/c129ccdb2d5_add_lumiblocknr_to_dids.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py b/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py index a40c82dcb2..cc44706f98 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py b/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py index 38d118ef23..b5532165b2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py b/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py index dced31faf6..2ac9757e74 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py b/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py index a099b1f18f..bb4b246cf6 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d6dceb1de2d_added_purge_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/d6dceb1de2d_added_purge_column_to_rules.py index 5393ff5277..d1ce47ad4a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d6dceb1de2d_added_purge_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d6dceb1de2d_added_purge_column_to_rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d6e2c3b2cf26_remove_third_party_copy_column_from_rse.py b/lib/rucio/db/sqla/migrate_repo/versions/d6e2c3b2cf26_remove_third_party_copy_column_from_rse.py index 07251bec9d..9183dee8d4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d6e2c3b2cf26_remove_third_party_copy_column_from_rse.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d6e2c3b2cf26_remove_third_party_copy_column_from_rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py b/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py index 9d5d23e6ca..026686e22b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/e138c364ebd0_extending_columns_for_filter_and_.py b/lib/rucio/db/sqla/migrate_repo/versions/e138c364ebd0_extending_columns_for_filter_and_.py index 1bf28e255e..7157c74932 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/e138c364ebd0_extending_columns_for_filter_and_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/e138c364ebd0_extending_columns_for_filter_and_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py b/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py index 1b355073af..b848254b63 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/f1b14a8c2ac1_postgres_use_check_constraints.py b/lib/rucio/db/sqla/migrate_repo/versions/f1b14a8c2ac1_postgres_use_check_constraints.py index 647804f651..faf2bd31db 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/f1b14a8c2ac1_postgres_use_check_constraints.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/f1b14a8c2ac1_postgres_use_check_constraints.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py index 7703b35fb4..96380c25f6 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/f85a2962b021_adding_transfertool_column_to_requests_.py b/lib/rucio/db/sqla/migrate_repo/versions/f85a2962b021_adding_transfertool_column_to_requests_.py index 7cbf3a0ec6..05438d16d4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/f85a2962b021_adding_transfertool_column_to_requests_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/f85a2962b021_adding_transfertool_column_to_requests_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/fa7a7d78b602_increase_refresh_token_size.py b/lib/rucio/db/sqla/migrate_repo/versions/fa7a7d78b602_increase_refresh_token_size.py index 4ed80eb50b..3fd2eb77a1 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/fa7a7d78b602_increase_refresh_token_size.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/fa7a7d78b602_increase_refresh_token_size.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/fb28a95fe288_add_replicas_rse_id_tombstone_idx.py b/lib/rucio/db/sqla/migrate_repo/versions/fb28a95fe288_add_replicas_rse_id_tombstone_idx.py index 1dc130514c..512bddf742 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/fb28a95fe288_add_replicas_rse_id_tombstone_idx.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/fb28a95fe288_add_replicas_rse_id_tombstone_idx.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/fe1a65b176c9_set_third_party_copy_read_and_write_.py b/lib/rucio/db/sqla/migrate_repo/versions/fe1a65b176c9_set_third_party_copy_read_and_write_.py index 47aba2989b..3dbabd9645 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/fe1a65b176c9_set_third_party_copy_read_and_write_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/fe1a65b176c9_set_third_party_copy_read_and_write_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/migrate_repo/versions/fe8ea2fa9788_added_third_party_copy_column_to_rse_.py b/lib/rucio/db/sqla/migrate_repo/versions/fe8ea2fa9788_added_third_party_copy_column_to_rse_.py index a3f868643f..a4e1b72628 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/fe8ea2fa9788_added_third_party_copy_column_to_rse_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/fe8ea2fa9788_added_third_party_copy_column_to_rse_.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/models.py b/lib/rucio/db/sqla/models.py index a8ac0ac039..c4ac717e42 100644 --- a/lib/rucio/db/sqla/models.py +++ b/lib/rucio/db/sqla/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/sautils.py b/lib/rucio/db/sqla/sautils.py index 8af213e074..e0c693e17c 100644 --- a/lib/rucio/db/sqla/sautils.py +++ b/lib/rucio/db/sqla/sautils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/session.py b/lib/rucio/db/sqla/session.py index 1aefd30c59..88f0c7601c 100644 --- a/lib/rucio/db/sqla/session.py +++ b/lib/rucio/db/sqla/session.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/types.py b/lib/rucio/db/sqla/types.py index 99113f4497..09dacb2e43 100644 --- a/lib/rucio/db/sqla/types.py +++ b/lib/rucio/db/sqla/types.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/db/sqla/util.py b/lib/rucio/db/sqla/util.py index d111dbf451..b4e2e85f78 100644 --- a/lib/rucio/db/sqla/util.py +++ b/lib/rucio/db/sqla/util.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/__init__.py b/lib/rucio/rse/__init__.py index 4de8a6f76c..4a7b6ef572 100644 --- a/lib/rucio/rse/__init__.py +++ b/lib/rucio/rse/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/__init__.py b/lib/rucio/rse/protocols/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/rse/protocols/__init__.py +++ b/lib/rucio/rse/protocols/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/bittorrent.py b/lib/rucio/rse/protocols/bittorrent.py index c4ab54a442..418bed4fd1 100644 --- a/lib/rucio/rse/protocols/bittorrent.py +++ b/lib/rucio/rse/protocols/bittorrent.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/cache.py b/lib/rucio/rse/protocols/cache.py index 2b747ce34c..b82eab24ac 100644 --- a/lib/rucio/rse/protocols/cache.py +++ b/lib/rucio/rse/protocols/cache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/dummy.py b/lib/rucio/rse/protocols/dummy.py index 1bdab43352..107ea595dc 100644 --- a/lib/rucio/rse/protocols/dummy.py +++ b/lib/rucio/rse/protocols/dummy.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index af4e88b423..37908555b9 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/globus.py b/lib/rucio/rse/protocols/globus.py index 3305f3bf70..5f98f43c2e 100644 --- a/lib/rucio/rse/protocols/globus.py +++ b/lib/rucio/rse/protocols/globus.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/gsiftp.py b/lib/rucio/rse/protocols/gsiftp.py index 6e9a692cdf..b0921763b3 100644 --- a/lib/rucio/rse/protocols/gsiftp.py +++ b/lib/rucio/rse/protocols/gsiftp.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/http_cache.py b/lib/rucio/rse/protocols/http_cache.py index f3866be632..fb1a2f5e8d 100644 --- a/lib/rucio/rse/protocols/http_cache.py +++ b/lib/rucio/rse/protocols/http_cache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/mock.py b/lib/rucio/rse/protocols/mock.py index f040d4748b..ddf152a05e 100644 --- a/lib/rucio/rse/protocols/mock.py +++ b/lib/rucio/rse/protocols/mock.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/ngarc.py b/lib/rucio/rse/protocols/ngarc.py index fbedb31b3a..6c4017c182 100644 --- a/lib/rucio/rse/protocols/ngarc.py +++ b/lib/rucio/rse/protocols/ngarc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/posix.py b/lib/rucio/rse/protocols/posix.py index 6b3f9b87a5..9c9ab7a937 100644 --- a/lib/rucio/rse/protocols/posix.py +++ b/lib/rucio/rse/protocols/posix.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/protocol.py b/lib/rucio/rse/protocols/protocol.py index 0ae446b4a1..2c9ed4c2e5 100644 --- a/lib/rucio/rse/protocols/protocol.py +++ b/lib/rucio/rse/protocols/protocol.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/rclone.py b/lib/rucio/rse/protocols/rclone.py index 1763651906..9caaa51970 100644 --- a/lib/rucio/rse/protocols/rclone.py +++ b/lib/rucio/rse/protocols/rclone.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/rfio.py b/lib/rucio/rse/protocols/rfio.py index 6654b2d037..a08cd2bc94 100644 --- a/lib/rucio/rse/protocols/rfio.py +++ b/lib/rucio/rse/protocols/rfio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/srm.py b/lib/rucio/rse/protocols/srm.py index 4b9fc59ffd..80751a3451 100644 --- a/lib/rucio/rse/protocols/srm.py +++ b/lib/rucio/rse/protocols/srm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/ssh.py b/lib/rucio/rse/protocols/ssh.py index 6e9cc00a54..7ada13c527 100644 --- a/lib/rucio/rse/protocols/ssh.py +++ b/lib/rucio/rse/protocols/ssh.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/storm.py b/lib/rucio/rse/protocols/storm.py index b0dd6d4fef..0d86bca51a 100644 --- a/lib/rucio/rse/protocols/storm.py +++ b/lib/rucio/rse/protocols/storm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/webdav.py b/lib/rucio/rse/protocols/webdav.py index c3ec871372..e9f8b243e2 100644 --- a/lib/rucio/rse/protocols/webdav.py +++ b/lib/rucio/rse/protocols/webdav.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/protocols/xrootd.py b/lib/rucio/rse/protocols/xrootd.py index 702b9faa1b..78630a5c12 100644 --- a/lib/rucio/rse/protocols/xrootd.py +++ b/lib/rucio/rse/protocols/xrootd.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/rse/rsemanager.py b/lib/rucio/rse/rsemanager.py index 715812096d..0ddbdfc82a 100644 --- a/lib/rucio/rse/rsemanager.py +++ b/lib/rucio/rse/rsemanager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/tests/__init__.py b/lib/rucio/tests/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/tests/__init__.py +++ b/lib/rucio/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/tests/common.py b/lib/rucio/tests/common.py index cbd558d91d..e0b6f93d5a 100644 --- a/lib/rucio/tests/common.py +++ b/lib/rucio/tests/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/tests/common_server.py b/lib/rucio/tests/common_server.py index 8a9d281dfb..e1f7ebf502 100644 --- a/lib/rucio/tests/common_server.py +++ b/lib/rucio/tests/common_server.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/__init__.py b/lib/rucio/transfertool/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/transfertool/__init__.py +++ b/lib/rucio/transfertool/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/bittorrent.py b/lib/rucio/transfertool/bittorrent.py index 70d62ce685..d2bab2b172 100644 --- a/lib/rucio/transfertool/bittorrent.py +++ b/lib/rucio/transfertool/bittorrent.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/bittorrent_driver.py b/lib/rucio/transfertool/bittorrent_driver.py index 59324b2e7b..14c80e07ca 100644 --- a/lib/rucio/transfertool/bittorrent_driver.py +++ b/lib/rucio/transfertool/bittorrent_driver.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/bittorrent_driver_qbittorrent.py b/lib/rucio/transfertool/bittorrent_driver_qbittorrent.py index b7281e3745..7b6c6da156 100644 --- a/lib/rucio/transfertool/bittorrent_driver_qbittorrent.py +++ b/lib/rucio/transfertool/bittorrent_driver_qbittorrent.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/fts3.py b/lib/rucio/transfertool/fts3.py index e0ea29f5a1..0af3e82c3a 100644 --- a/lib/rucio/transfertool/fts3.py +++ b/lib/rucio/transfertool/fts3.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/fts3_plugins.py b/lib/rucio/transfertool/fts3_plugins.py index da6bf56e47..8cf1ee4074 100644 --- a/lib/rucio/transfertool/fts3_plugins.py +++ b/lib/rucio/transfertool/fts3_plugins.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/globus.py b/lib/rucio/transfertool/globus.py index f32a6c4d45..bed44037cb 100644 --- a/lib/rucio/transfertool/globus.py +++ b/lib/rucio/transfertool/globus.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/globus_library.py b/lib/rucio/transfertool/globus_library.py index 4e452a696d..8050658c7d 100644 --- a/lib/rucio/transfertool/globus_library.py +++ b/lib/rucio/transfertool/globus_library.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/mock.py b/lib/rucio/transfertool/mock.py index a8997e4de1..7f7c76728e 100644 --- a/lib/rucio/transfertool/mock.py +++ b/lib/rucio/transfertool/mock.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/transfertool/transfertool.py b/lib/rucio/transfertool/transfertool.py index 4ad8e17365..87ebf4e236 100644 --- a/lib/rucio/transfertool/transfertool.py +++ b/lib/rucio/transfertool/transfertool.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/version.py b/lib/rucio/version.py index 76194a1d26..8d6581a9e9 100644 --- a/lib/rucio/version.py +++ b/lib/rucio/version.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/__init__.py b/lib/rucio/web/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/web/__init__.py +++ b/lib/rucio/web/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/__init__.py b/lib/rucio/web/rest/__init__.py index 06d1c8adf0..23757cf2d7 100755 --- a/lib/rucio/web/rest/__init__.py +++ b/lib/rucio/web/rest/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/__init__.py b/lib/rucio/web/rest/flaskapi/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/web/rest/flaskapi/__init__.py +++ b/lib/rucio/web/rest/flaskapi/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/authenticated_bp.py b/lib/rucio/web/rest/flaskapi/authenticated_bp.py index ed41d48460..35648347ab 100644 --- a/lib/rucio/web/rest/flaskapi/authenticated_bp.py +++ b/lib/rucio/web/rest/flaskapi/authenticated_bp.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/__init__.py b/lib/rucio/web/rest/flaskapi/v1/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/web/rest/flaskapi/v1/__init__.py +++ b/lib/rucio/web/rest/flaskapi/v1/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/accountlimits.py b/lib/rucio/web/rest/flaskapi/v1/accountlimits.py index fe7dfda179..413277a3ca 100644 --- a/lib/rucio/web/rest/flaskapi/v1/accountlimits.py +++ b/lib/rucio/web/rest/flaskapi/v1/accountlimits.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/accounts.py b/lib/rucio/web/rest/flaskapi/v1/accounts.py index aa7012e3de..2898768a06 100644 --- a/lib/rucio/web/rest/flaskapi/v1/accounts.py +++ b/lib/rucio/web/rest/flaskapi/v1/accounts.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/archives.py b/lib/rucio/web/rest/flaskapi/v1/archives.py index 39a80a0100..5e7cbea223 100644 --- a/lib/rucio/web/rest/flaskapi/v1/archives.py +++ b/lib/rucio/web/rest/flaskapi/v1/archives.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/auth.py b/lib/rucio/web/rest/flaskapi/v1/auth.py index 753757e743..70677b07a1 100644 --- a/lib/rucio/web/rest/flaskapi/v1/auth.py +++ b/lib/rucio/web/rest/flaskapi/v1/auth.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/common.py b/lib/rucio/web/rest/flaskapi/v1/common.py index bbf47cbb84..ae7409f28b 100644 --- a/lib/rucio/web/rest/flaskapi/v1/common.py +++ b/lib/rucio/web/rest/flaskapi/v1/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/config.py b/lib/rucio/web/rest/flaskapi/v1/config.py index 33fd55f9e3..51d3de7a16 100644 --- a/lib/rucio/web/rest/flaskapi/v1/config.py +++ b/lib/rucio/web/rest/flaskapi/v1/config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/credentials.py b/lib/rucio/web/rest/flaskapi/v1/credentials.py index 51d02c00b4..e93520c34f 100644 --- a/lib/rucio/web/rest/flaskapi/v1/credentials.py +++ b/lib/rucio/web/rest/flaskapi/v1/credentials.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/dids.py b/lib/rucio/web/rest/flaskapi/v1/dids.py index 52ea7dd9cf..7a271bd223 100644 --- a/lib/rucio/web/rest/flaskapi/v1/dids.py +++ b/lib/rucio/web/rest/flaskapi/v1/dids.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/dirac.py b/lib/rucio/web/rest/flaskapi/v1/dirac.py index bde880ffde..708a6aef70 100644 --- a/lib/rucio/web/rest/flaskapi/v1/dirac.py +++ b/lib/rucio/web/rest/flaskapi/v1/dirac.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/export.py b/lib/rucio/web/rest/flaskapi/v1/export.py index d94de60217..717951a16c 100644 --- a/lib/rucio/web/rest/flaskapi/v1/export.py +++ b/lib/rucio/web/rest/flaskapi/v1/export.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/heartbeats.py b/lib/rucio/web/rest/flaskapi/v1/heartbeats.py index 3313f81b4e..74a16b808f 100644 --- a/lib/rucio/web/rest/flaskapi/v1/heartbeats.py +++ b/lib/rucio/web/rest/flaskapi/v1/heartbeats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/identities.py b/lib/rucio/web/rest/flaskapi/v1/identities.py index d2fb0a7d5f..0c9b13867f 100644 --- a/lib/rucio/web/rest/flaskapi/v1/identities.py +++ b/lib/rucio/web/rest/flaskapi/v1/identities.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/import.py b/lib/rucio/web/rest/flaskapi/v1/import.py index eb372a4fe7..5b6f3c9672 100644 --- a/lib/rucio/web/rest/flaskapi/v1/import.py +++ b/lib/rucio/web/rest/flaskapi/v1/import.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/lifetime_exceptions.py b/lib/rucio/web/rest/flaskapi/v1/lifetime_exceptions.py index 57c33a4e28..a76e7b9366 100644 --- a/lib/rucio/web/rest/flaskapi/v1/lifetime_exceptions.py +++ b/lib/rucio/web/rest/flaskapi/v1/lifetime_exceptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/locks.py b/lib/rucio/web/rest/flaskapi/v1/locks.py index b69d65d100..3b00f12f5c 100644 --- a/lib/rucio/web/rest/flaskapi/v1/locks.py +++ b/lib/rucio/web/rest/flaskapi/v1/locks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/main.py b/lib/rucio/web/rest/flaskapi/v1/main.py index 6caaa85002..1082a4be46 100644 --- a/lib/rucio/web/rest/flaskapi/v1/main.py +++ b/lib/rucio/web/rest/flaskapi/v1/main.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/meta_conventions.py b/lib/rucio/web/rest/flaskapi/v1/meta_conventions.py index b54867faf9..b2462bfaed 100644 --- a/lib/rucio/web/rest/flaskapi/v1/meta_conventions.py +++ b/lib/rucio/web/rest/flaskapi/v1/meta_conventions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/metrics.py b/lib/rucio/web/rest/flaskapi/v1/metrics.py index c359814dba..040b784833 100644 --- a/lib/rucio/web/rest/flaskapi/v1/metrics.py +++ b/lib/rucio/web/rest/flaskapi/v1/metrics.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/nongrid_traces.py b/lib/rucio/web/rest/flaskapi/v1/nongrid_traces.py index c58ba67280..329e6545c1 100644 --- a/lib/rucio/web/rest/flaskapi/v1/nongrid_traces.py +++ b/lib/rucio/web/rest/flaskapi/v1/nongrid_traces.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/ping.py b/lib/rucio/web/rest/flaskapi/v1/ping.py index 3d84f07930..bf8e1af400 100644 --- a/lib/rucio/web/rest/flaskapi/v1/ping.py +++ b/lib/rucio/web/rest/flaskapi/v1/ping.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/redirect.py b/lib/rucio/web/rest/flaskapi/v1/redirect.py index f0ccdbe974..987e8dbb6f 100644 --- a/lib/rucio/web/rest/flaskapi/v1/redirect.py +++ b/lib/rucio/web/rest/flaskapi/v1/redirect.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/replicas.py b/lib/rucio/web/rest/flaskapi/v1/replicas.py index 0325877291..146d3db4bf 100644 --- a/lib/rucio/web/rest/flaskapi/v1/replicas.py +++ b/lib/rucio/web/rest/flaskapi/v1/replicas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/requests.py b/lib/rucio/web/rest/flaskapi/v1/requests.py index 7ee74837a2..bb324d2305 100644 --- a/lib/rucio/web/rest/flaskapi/v1/requests.py +++ b/lib/rucio/web/rest/flaskapi/v1/requests.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/rses.py b/lib/rucio/web/rest/flaskapi/v1/rses.py index 2da77e33ab..1975e66b47 100644 --- a/lib/rucio/web/rest/flaskapi/v1/rses.py +++ b/lib/rucio/web/rest/flaskapi/v1/rses.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/rules.py b/lib/rucio/web/rest/flaskapi/v1/rules.py index 92a1eb4e61..9c0254dd51 100644 --- a/lib/rucio/web/rest/flaskapi/v1/rules.py +++ b/lib/rucio/web/rest/flaskapi/v1/rules.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/scopes.py b/lib/rucio/web/rest/flaskapi/v1/scopes.py index f696c967db..1d17985769 100644 --- a/lib/rucio/web/rest/flaskapi/v1/scopes.py +++ b/lib/rucio/web/rest/flaskapi/v1/scopes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/subscriptions.py b/lib/rucio/web/rest/flaskapi/v1/subscriptions.py index 45fb254ee6..e8decf98cf 100644 --- a/lib/rucio/web/rest/flaskapi/v1/subscriptions.py +++ b/lib/rucio/web/rest/flaskapi/v1/subscriptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/traces.py b/lib/rucio/web/rest/flaskapi/v1/traces.py index e4512eea72..499c27cf7e 100644 --- a/lib/rucio/web/rest/flaskapi/v1/traces.py +++ b/lib/rucio/web/rest/flaskapi/v1/traces.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/flaskapi/v1/vos.py b/lib/rucio/web/rest/flaskapi/v1/vos.py index 717a096abb..d2918e1a93 100644 --- a/lib/rucio/web/rest/flaskapi/v1/vos.py +++ b/lib/rucio/web/rest/flaskapi/v1/vos.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/main.py b/lib/rucio/web/rest/main.py index 3a5d095956..c625a61d75 100644 --- a/lib/rucio/web/rest/main.py +++ b/lib/rucio/web/rest/main.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/metrics.py b/lib/rucio/web/rest/metrics.py index 81e433594b..d3f636d6da 100644 --- a/lib/rucio/web/rest/metrics.py +++ b/lib/rucio/web/rest/metrics.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/rest/ping.py b/lib/rucio/web/rest/ping.py index 85e411a85b..51dcf35808 100644 --- a/lib/rucio/web/rest/ping.py +++ b/lib/rucio/web/rest/ping.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/__init__.py b/lib/rucio/web/ui/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/web/ui/__init__.py +++ b/lib/rucio/web/ui/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/flask/__init__.py b/lib/rucio/web/ui/flask/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/lib/rucio/web/ui/flask/__init__.py +++ b/lib/rucio/web/ui/flask/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/flask/bp.py b/lib/rucio/web/ui/flask/bp.py index 2851df56d8..e58a5484e4 100644 --- a/lib/rucio/web/ui/flask/bp.py +++ b/lib/rucio/web/ui/flask/bp.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/flask/common/__init__.py b/lib/rucio/web/ui/flask/common/__init__.py index 06d1c8adf0..23757cf2d7 100755 --- a/lib/rucio/web/ui/flask/common/__init__.py +++ b/lib/rucio/web/ui/flask/common/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/flask/common/utils.py b/lib/rucio/web/ui/flask/common/utils.py index f4c58ee256..91eb18ab7e 100644 --- a/lib/rucio/web/ui/flask/common/utils.py +++ b/lib/rucio/web/ui/flask/common/utils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/flask/main.py b/lib/rucio/web/ui/flask/main.py index 3cc6a4c981..4540b2d9d2 100644 --- a/lib/rucio/web/ui/flask/main.py +++ b/lib/rucio/web/ui/flask/main.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/rucio/web/ui/main.py b/lib/rucio/web/ui/main.py index 8a3122f030..4bff21a31d 100644 --- a/lib/rucio/web/ui/main.py +++ b/lib/rucio/web/ui/main.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/setup_rucio.py b/setup_rucio.py index 03a9ba1cb5..13c924c6c3 100644 --- a/setup_rucio.py +++ b/setup_rucio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/setup_rucio_client.py b/setup_rucio_client.py index f287258af2..6d40081a20 100644 --- a/setup_rucio_client.py +++ b/setup_rucio_client.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/setup_webui.py b/setup_webui.py index ad707102d0..d0f5b71fb7 100644 --- a/setup_webui.py +++ b/setup_webui.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/setuputil.py b/setuputil.py index 2647c173fa..1b2e3fcd79 100644 --- a/setuputil.py +++ b/setuputil.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/__init__.py b/tests/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/conftest.py b/tests/conftest.py index 82722923ca..b47feb6e1c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/inputs/__init__.py b/tests/inputs/__init__.py index 3255951c4e..3da2dc8e5c 100644 --- a/tests/inputs/__init__.py +++ b/tests/inputs/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/lfn2pfn_module_test.py b/tests/lfn2pfn_module_test.py index 32b8121d1e..ec652108e0 100644 --- a/tests/lfn2pfn_module_test.py +++ b/tests/lfn2pfn_module_test.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/mocks/__init__.py b/tests/mocks/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/tests/mocks/__init__.py +++ b/tests/mocks/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/mocks/gfal2.py b/tests/mocks/gfal2.py index 81a4160fd7..0026940225 100644 --- a/tests/mocks/gfal2.py +++ b/tests/mocks/gfal2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/mocks/mock_http_server.py b/tests/mocks/mock_http_server.py index e55dcc7770..4977c928f6 100644 --- a/tests/mocks/mock_http_server.py +++ b/tests/mocks/mock_http_server.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/rsemgr_api_test.py b/tests/rsemgr_api_test.py index 0d39e3d1a3..2276a3272f 100644 --- a/tests/rsemgr_api_test.py +++ b/tests/rsemgr_api_test.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/ruciopytest/__init__.py b/tests/ruciopytest/__init__.py index a617c9918b..dacb4823b6 100644 --- a/tests/ruciopytest/__init__.py +++ b/tests/ruciopytest/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/ruciopytest/artifacts_plugin.py b/tests/ruciopytest/artifacts_plugin.py index 00b4901709..ca6e07b9f6 100644 --- a/tests/ruciopytest/artifacts_plugin.py +++ b/tests/ruciopytest/artifacts_plugin.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/ruciopytest/xdist_noparallel_remote.py b/tests/ruciopytest/xdist_noparallel_remote.py index a389ca311b..e5599b7af0 100644 --- a/tests/ruciopytest/xdist_noparallel_remote.py +++ b/tests/ruciopytest/xdist_noparallel_remote.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/ruciopytest/xdist_noparallel_scheduler.py b/tests/ruciopytest/xdist_noparallel_scheduler.py index 457dffcf08..4ae604cdd9 100644 --- a/tests/ruciopytest/xdist_noparallel_scheduler.py +++ b/tests/ruciopytest/xdist_noparallel_scheduler.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/temp_factories.py b/tests/temp_factories.py index dcb21c4053..1cbdd38eb4 100644 --- a/tests/temp_factories.py +++ b/tests/temp_factories.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_abacus_account.py b/tests/test_abacus_account.py index 4e325981a4..3d2cebcca2 100644 --- a/tests/test_abacus_account.py +++ b/tests/test_abacus_account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_abacus_collection_replica.py b/tests/test_abacus_collection_replica.py index c48229bf47..7e60984c9a 100644 --- a/tests/test_abacus_collection_replica.py +++ b/tests/test_abacus_collection_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_abacus_rse.py b/tests/test_abacus_rse.py index 1698ed37c2..0836db2730 100644 --- a/tests/test_abacus_rse.py +++ b/tests/test_abacus_rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_account.py b/tests/test_account.py index dfc96f838a..86359a953d 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_account_limits.py b/tests/test_account_limits.py index bb374743f2..f73b233ae3 100644 --- a/tests/test_account_limits.py +++ b/tests/test_account_limits.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_api_external_representation.py b/tests/test_api_external_representation.py index b61e1b1b4b..dfdf8a540f 100644 --- a/tests/test_api_external_representation.py +++ b/tests/test_api_external_representation.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_archive.py b/tests/test_archive.py index 9afc2b794b..227931b10e 100644 --- a/tests/test_archive.py +++ b/tests/test_archive.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_auditor.py b/tests/test_auditor.py index efe59a6c81..9c751a5721 100644 --- a/tests/test_auditor.py +++ b/tests/test_auditor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_auditor_hdfs.py b/tests/test_auditor_hdfs.py index 3d19237c58..fa895f00cd 100644 --- a/tests/test_auditor_hdfs.py +++ b/tests/test_auditor_hdfs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_auditor_srmdumps.py b/tests/test_auditor_srmdumps.py index d703532723..1e3be3f7b8 100644 --- a/tests/test_auditor_srmdumps.py +++ b/tests/test_auditor_srmdumps.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_authentication.py b/tests/test_authentication.py index bf3c181479..d35a8813c8 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_automatix.py b/tests/test_automatix.py index 12f6a8d30f..57f0e74241 100644 --- a/tests/test_automatix.py +++ b/tests/test_automatix.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_bad_replica.py b/tests/test_bad_replica.py index cb4044d9fd..06a9bc3260 100644 --- a/tests/test_bad_replica.py +++ b/tests/test_bad_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_bb8.py b/tests/test_bb8.py index acc8557c7d..081435eae3 100644 --- a/tests/test_bb8.py +++ b/tests/test_bb8.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_belleii.py b/tests/test_belleii.py index df8984ed05..41ba7966cd 100644 --- a/tests/test_belleii.py +++ b/tests/test_belleii.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_bin_rucio.py b/tests/test_bin_rucio.py index 350b1fe13b..0b5b707fa4 100755 --- a/tests/test_bin_rucio.py +++ b/tests/test_bin_rucio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_boolean.py b/tests/test_boolean.py index fb224b6cc1..eea7d74694 100644 --- a/tests/test_boolean.py +++ b/tests/test_boolean.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_clients.py b/tests/test_clients.py index e0a7f3df7d..affa544cea 100644 --- a/tests/test_clients.py +++ b/tests/test_clients.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_common_types.py b/tests/test_common_types.py index 2afaae7869..f8adfb7b5a 100644 --- a/tests/test_common_types.py +++ b/tests/test_common_types.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_config.py b/tests/test_config.py index e4d0a65d67..2b48ce0cf3 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_conveyor.py b/tests/test_conveyor.py index 4429b6369b..cc107239cb 100644 --- a/tests/test_conveyor.py +++ b/tests/test_conveyor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_conveyor_submitter.py b/tests/test_conveyor_submitter.py index 0b883bfd29..b72f4aaa3a 100644 --- a/tests/test_conveyor_submitter.py +++ b/tests/test_conveyor_submitter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_counter.py b/tests/test_counter.py index 6388a703a3..0fe8fdd6b1 100644 --- a/tests/test_counter.py +++ b/tests/test_counter.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_credential.py b/tests/test_credential.py index 108c423369..14ac34f467 100644 --- a/tests/test_credential.py +++ b/tests/test_credential.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_curl.py b/tests/test_curl.py index 15b728960a..2d1a1e77e7 100644 --- a/tests/test_curl.py +++ b/tests/test_curl.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_daemons.py b/tests/test_daemons.py index fbea2766ad..56b1d6e5c2 100644 --- a/tests/test_daemons.py +++ b/tests/test_daemons.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_dataset_replicas.py b/tests/test_dataset_replicas.py index 6b975f4b6f..3a4af174d2 100644 --- a/tests/test_dataset_replicas.py +++ b/tests/test_dataset_replicas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_db.py b/tests/test_db.py index c465b410d8..648fb1d332 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_did.py b/tests/test_did.py index d547cbae5f..307cc0c101 100644 --- a/tests/test_did.py +++ b/tests/test_did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_did_meta_plugins.py b/tests/test_did_meta_plugins.py index a848a0fd32..9b9f3057f4 100644 --- a/tests/test_did_meta_plugins.py +++ b/tests/test_did_meta_plugins.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_didtype.py b/tests/test_didtype.py index 90388555e0..dfdc8788c7 100644 --- a/tests/test_didtype.py +++ b/tests/test_didtype.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_download.py b/tests/test_download.py index c2ce80363b..378c000fdb 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_dumper.py b/tests/test_dumper.py index 8c00813bb7..94cf3b46f1 100644 --- a/tests/test_dumper.py +++ b/tests/test_dumper.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_dumper_consistency.py b/tests/test_dumper_consistency.py index c12f22913e..5aa238eac7 100644 --- a/tests/test_dumper_consistency.py +++ b/tests/test_dumper_consistency.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_dumper_data_model.py b/tests/test_dumper_data_model.py index 1a029f6022..bad2bab773 100644 --- a/tests/test_dumper_data_model.py +++ b/tests/test_dumper_data_model.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_dumper_path_parsing.py b/tests/test_dumper_path_parsing.py index 9f8c645111..6bbd25a1e3 100644 --- a/tests/test_dumper_path_parsing.py +++ b/tests/test_dumper_path_parsing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_filter_engine.py b/tests/test_filter_engine.py index 05d76e0226..7ec609a71a 100644 --- a/tests/test_filter_engine.py +++ b/tests/test_filter_engine.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_heartbeat.py b/tests/test_heartbeat.py index 46e47a33c0..e3d2f3e7fe 100644 --- a/tests/test_heartbeat.py +++ b/tests/test_heartbeat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_hermes.py b/tests/test_hermes.py index 343b5fad04..25ec7e6e87 100644 --- a/tests/test_hermes.py +++ b/tests/test_hermes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_identity.py b/tests/test_identity.py index 56ea327680..997aa38165 100644 --- a/tests/test_identity.py +++ b/tests/test_identity.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_impl_upload_download.py b/tests/test_impl_upload_download.py index 7044676fb5..31afea25bc 100644 --- a/tests/test_impl_upload_download.py +++ b/tests/test_impl_upload_download.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_import_export.py b/tests/test_import_export.py index 1aac3c8a25..bcad63fd3e 100644 --- a/tests/test_import_export.py +++ b/tests/test_import_export.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_judge_cleaner.py b/tests/test_judge_cleaner.py index 4fe4cb9dbe..4c4a414c44 100644 --- a/tests/test_judge_cleaner.py +++ b/tests/test_judge_cleaner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_judge_evaluator.py b/tests/test_judge_evaluator.py index 63480689a3..aa9f582ec1 100644 --- a/tests/test_judge_evaluator.py +++ b/tests/test_judge_evaluator.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_judge_injector.py b/tests/test_judge_injector.py index 93b52390f2..636256f612 100644 --- a/tests/test_judge_injector.py +++ b/tests/test_judge_injector.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_judge_repairer.py b/tests/test_judge_repairer.py index 0cc57079bd..25b05a889e 100644 --- a/tests/test_judge_repairer.py +++ b/tests/test_judge_repairer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_lifetime.py b/tests/test_lifetime.py index d2cbf4f2cc..06e15ccb60 100644 --- a/tests/test_lifetime.py +++ b/tests/test_lifetime.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_message.py b/tests/test_message.py index 32ebd32e4b..a0d701c3bb 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_meta_conventions.py b/tests/test_meta_conventions.py index 9225f2b7ea..b182faf16d 100644 --- a/tests/test_meta_conventions.py +++ b/tests/test_meta_conventions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_meta_did.py b/tests/test_meta_did.py index 9c0d89a8d7..b106eb2592 100644 --- a/tests/test_meta_did.py +++ b/tests/test_meta_did.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_module_import.py b/tests/test_module_import.py index 46a4b592dc..c78d1d722e 100644 --- a/tests/test_module_import.py +++ b/tests/test_module_import.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_monitor.py b/tests/test_monitor.py index 05afc8a0ad..52738f1055 100644 --- a/tests/test_monitor.py +++ b/tests/test_monitor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_multi_vo.py b/tests/test_multi_vo.py index c29c76ea9e..bb60ee9231 100644 --- a/tests/test_multi_vo.py +++ b/tests/test_multi_vo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_naming_convention.py b/tests/test_naming_convention.py index 42bd3ab3f7..54d2ef18d4 100644 --- a/tests/test_naming_convention.py +++ b/tests/test_naming_convention.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_oauthmanager.py b/tests/test_oauthmanager.py index 908c547609..d1ee8c401d 100644 --- a/tests/test_oauthmanager.py +++ b/tests/test_oauthmanager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_oidc.py b/tests/test_oidc.py index 66ad747877..18a1ff8d37 100644 --- a/tests/test_oidc.py +++ b/tests/test_oidc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_permission.py b/tests/test_permission.py index b6330a6d58..713322b8cb 100644 --- a/tests/test_permission.py +++ b/tests/test_permission.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_pfns.py b/tests/test_pfns.py index 1328fa39f2..40faf2f446 100644 --- a/tests/test_pfns.py +++ b/tests/test_pfns.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_ping.py b/tests/test_ping.py index 958bdf9719..d93bb92b68 100644 --- a/tests/test_ping.py +++ b/tests/test_ping.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_preparer.py b/tests/test_preparer.py index 206cb9ed6e..db81c3a6d1 100644 --- a/tests/test_preparer.py +++ b/tests/test_preparer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_qos.py b/tests/test_qos.py index 7f7394c58f..f5f9448fd3 100644 --- a/tests/test_qos.py +++ b/tests/test_qos.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_quarantined_replica.py b/tests/test_quarantined_replica.py index 1c778d63f6..6daeacb8ad 100644 --- a/tests/test_quarantined_replica.py +++ b/tests/test_quarantined_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_reaper.py b/tests/test_reaper.py index 71d9596243..b907de4290 100644 --- a/tests/test_reaper.py +++ b/tests/test_reaper.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_redirect.py b/tests/test_redirect.py index 9df3f82001..18c214d7b5 100644 --- a/tests/test_redirect.py +++ b/tests/test_redirect.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_replica.py b/tests/test_replica.py index b24caa0edf..94e5c1b518 100644 --- a/tests/test_replica.py +++ b/tests/test_replica.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_replica_recoverer.py b/tests/test_replica_recoverer.py index dd22bb29b0..6b9792fdb3 100644 --- a/tests/test_replica_recoverer.py +++ b/tests/test_replica_recoverer.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_replica_sorting.py b/tests/test_replica_sorting.py index a83f0391e7..cf0bc45940 100644 --- a/tests/test_replica_sorting.py +++ b/tests/test_replica_sorting.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_request.py b/tests/test_request.py index f79864675a..f0294f47a7 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_root_proxy.py b/tests/test_root_proxy.py index 286f417150..7f21b63608 100644 --- a/tests/test_root_proxy.py +++ b/tests/test_root_proxy.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse.py b/tests/test_rse.py index 06ef631054..0d7f75552d 100644 --- a/tests/test_rse.py +++ b/tests/test_rse.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_expression_parser.py b/tests/test_rse_expression_parser.py index 4a9950daed..85b3ab1f76 100644 --- a/tests/test_rse_expression_parser.py +++ b/tests/test_rse_expression_parser.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_lfn2path.py b/tests/test_rse_lfn2path.py index 468b5a9866..a3131ef9c5 100644 --- a/tests/test_rse_lfn2path.py +++ b/tests/test_rse_lfn2path.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_gfal2.py b/tests/test_rse_protocol_gfal2.py index b0e2ff70ad..024e0e8314 100644 --- a/tests/test_rse_protocol_gfal2.py +++ b/tests/test_rse_protocol_gfal2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_gfal2_impl.py b/tests/test_rse_protocol_gfal2_impl.py index 6312060468..ee36c7852b 100644 --- a/tests/test_rse_protocol_gfal2_impl.py +++ b/tests/test_rse_protocol_gfal2_impl.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_posix.py b/tests/test_rse_protocol_posix.py index ad0e2b4c5b..4611d6672c 100644 --- a/tests/test_rse_protocol_posix.py +++ b/tests/test_rse_protocol_posix.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_rclone.py b/tests/test_rse_protocol_rclone.py index c327a896d4..2f7895f56b 100644 --- a/tests/test_rse_protocol_rclone.py +++ b/tests/test_rse_protocol_rclone.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_rsync.py b/tests/test_rse_protocol_rsync.py index 20c8cecf04..8af7538f27 100644 --- a/tests/test_rse_protocol_rsync.py +++ b/tests/test_rse_protocol_rsync.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_srm.py b/tests/test_rse_protocol_srm.py index 5c2555545c..57bff73d26 100644 --- a/tests/test_rse_protocol_srm.py +++ b/tests/test_rse_protocol_srm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_ssh.py b/tests/test_rse_protocol_ssh.py index fb57844708..25d6496fc7 100644 --- a/tests/test_rse_protocol_ssh.py +++ b/tests/test_rse_protocol_ssh.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_webdav.py b/tests/test_rse_protocol_webdav.py index 1c1f077125..bbc09bee04 100644 --- a/tests/test_rse_protocol_webdav.py +++ b/tests/test_rse_protocol_webdav.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_protocol_xrootd.py b/tests/test_rse_protocol_xrootd.py index 505907037f..128e9138c6 100644 --- a/tests/test_rse_protocol_xrootd.py +++ b/tests/test_rse_protocol_xrootd.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rse_selector.py b/tests/test_rse_selector.py index 5b5b7a3e8d..4b8f65c0d5 100644 --- a/tests/test_rse_selector.py +++ b/tests/test_rse_selector.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rucio_server.py b/tests/test_rucio_server.py index d4466427fb..49484c4a8e 100644 --- a/tests/test_rucio_server.py +++ b/tests/test_rucio_server.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_rule.py b/tests/test_rule.py index 19a7a85224..bc47cc0bee 100644 --- a/tests/test_rule.py +++ b/tests/test_rule.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_schema_cms.py b/tests/test_schema_cms.py index 21e363c3a5..16915d5642 100644 --- a/tests/test_schema_cms.py +++ b/tests/test_schema_cms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_scope.py b/tests/test_scope.py index 1a41c77415..4f8cde8179 100644 --- a/tests/test_scope.py +++ b/tests/test_scope.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_subscription.py b/tests/test_subscription.py index a93b907e90..fdf5bb9ba8 100644 --- a/tests/test_subscription.py +++ b/tests/test_subscription.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_throttler.py b/tests/test_throttler.py index f159c9183e..437abab06a 100644 --- a/tests/test_throttler.py +++ b/tests/test_throttler.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_tpc.py b/tests/test_tpc.py index a7f5829346..57a85dae21 100644 --- a/tests/test_tpc.py +++ b/tests/test_tpc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_trace.py b/tests/test_trace.py index 1630481b7f..ee861d2701 100644 --- a/tests/test_trace.py +++ b/tests/test_trace.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_transfer.py b/tests/test_transfer.py index 815c331db4..e0651b05e3 100644 --- a/tests/test_transfer.py +++ b/tests/test_transfer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_transfer_plugins.py b/tests/test_transfer_plugins.py index 391ad1f410..d62bee6d05 100644 --- a/tests/test_transfer_plugins.py +++ b/tests/test_transfer_plugins.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_undertaker.py b/tests/test_undertaker.py index a14b935853..faa7d79787 100644 --- a/tests/test_undertaker.py +++ b/tests/test_undertaker.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_upload.py b/tests/test_upload.py index e21482b821..731ba3f337 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_utils.py b/tests/test_utils.py index 43fe64e00b..73c9286266 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/add_header b/tools/add_header index 40b07bdfd4..f8abfc7d50 100755 --- a/tools/add_header +++ b/tools/add_header @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/bootstrap.py b/tools/bootstrap.py index 8dc3943193..59c5dd9c5d 100755 --- a/tools/bootstrap.py +++ b/tools/bootstrap.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/bootstrap_tests.py b/tools/bootstrap_tests.py index 66e3787b8d..484e8e2462 100755 --- a/tools/bootstrap_tests.py +++ b/tools/bootstrap_tests.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/convert_database_vo.py b/tools/convert_database_vo.py index ecefe71a2f..fa177319d5 100755 --- a/tools/convert_database_vo.py +++ b/tools/convert_database_vo.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/destroy_database.py b/tools/destroy_database.py index 0ca9342b91..64d14966d0 100755 --- a/tools/destroy_database.py +++ b/tools/destroy_database.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/generate_doc.py b/tools/generate_doc.py index 42ad49a99f..f590dec7d8 100755 --- a/tools/generate_doc.py +++ b/tools/generate_doc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/generate_rest_api_doc.py b/tools/generate_rest_api_doc.py index 43df849f0b..965bda521a 100755 --- a/tools/generate_rest_api_doc.py +++ b/tools/generate_rest_api_doc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/generate_version.py b/tools/generate_version.py index 6808a84967..91ebf500b9 100644 --- a/tools/generate_version.py +++ b/tools/generate_version.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/github/workflow/grabrelease.py b/tools/github/workflow/grabrelease.py index fc7d2297e6..a5b5fac299 100755 --- a/tools/github/workflow/grabrelease.py +++ b/tools/github/workflow/grabrelease.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/github/workflow/set_branch_output_env.py b/tools/github/workflow/set_branch_output_env.py index 269f1cd822..7b4b210dea 100755 --- a/tools/github/workflow/set_branch_output_env.py +++ b/tools/github/workflow/set_branch_output_env.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/github/workflow/util.py b/tools/github/workflow/util.py index df889e1ea1..6ad5215575 100644 --- a/tools/github/workflow/util.py +++ b/tools/github/workflow/util.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/merge_rucio_configs.py b/tools/merge_rucio_configs.py index 8a98d83333..29a04e5b46 100644 --- a/tools/merge_rucio_configs.py +++ b/tools/merge_rucio_configs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/monitoring/extract.py b/tools/monitoring/extract.py index 0f5009b2db..3de2ad8aaa 100644 --- a/tools/monitoring/extract.py +++ b/tools/monitoring/extract.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/reset_database.py b/tools/reset_database.py index 2e03a963dd..15b27c865d 100755 --- a/tools/reset_database.py +++ b/tools/reset_database.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/__init__.py b/tools/run_pyright/__init__.py index 06d1c8adf0..23757cf2d7 100644 --- a/tools/run_pyright/__init__.py +++ b/tools/run_pyright/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/__main__.py b/tools/run_pyright/__main__.py index 24735f32e0..93c7486a18 100755 --- a/tools/run_pyright/__main__.py +++ b/tools/run_pyright/__main__.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/compare.py b/tools/run_pyright/compare.py index cc3c8be605..f123138eb1 100644 --- a/tools/run_pyright/compare.py +++ b/tools/run_pyright/compare.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/generate.py b/tools/run_pyright/generate.py index b3b9099bbb..e7e8cc4f09 100644 --- a/tools/run_pyright/generate.py +++ b/tools/run_pyright/generate.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/models.py b/tools/run_pyright/models.py index 0058ce8367..7f8187c5bf 100644 --- a/tools/run_pyright/models.py +++ b/tools/run_pyright/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/run_pyright/utils.py b/tools/run_pyright/utils.py index 06a36ec883..b90c6b52fa 100644 --- a/tools/run_pyright/utils.py +++ b/tools/run_pyright/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/sync_meta.py b/tools/sync_meta.py index 87051176fe..631b4041d0 100755 --- a/tools/sync_meta.py +++ b/tools/sync_meta.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/sync_rses.py b/tools/sync_rses.py index 24697788d5..e3508678de 100755 --- a/tools/sync_rses.py +++ b/tools/sync_rses.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/build_images.py b/tools/test/build_images.py index 24d2bbd6fd..c2c1da0bb5 100755 --- a/tools/test/build_images.py +++ b/tools/test/build_images.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/donkeyrider.py b/tools/test/donkeyrider.py index 3921626230..4f58eb5c59 100755 --- a/tools/test/donkeyrider.py +++ b/tools/test/donkeyrider.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/ignoretool.py b/tools/test/ignoretool.py index 12f808dfdc..0ea7f4ccb9 100755 --- a/tools/test/ignoretool.py +++ b/tools/test/ignoretool.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/matrix_parser.py b/tools/test/matrix_parser.py index 9590c2165e..7b74a5d673 100755 --- a/tools/test/matrix_parser.py +++ b/tools/test/matrix_parser.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/run_tests.py b/tools/test/run_tests.py index f57cf7870c..7ad4d2b4a9 100755 --- a/tools/test/run_tests.py +++ b/tools/test/run_tests.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/test/votest_helper.py b/tools/test/votest_helper.py index d79768712c..e93499e096 100755 --- a/tools/test/votest_helper.py +++ b/tools/test/votest_helper.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tools/update_ui_version.py b/tools/update_ui_version.py index cf26fe7661..21898ae46a 100755 --- a/tools/update_ui_version.py +++ b/tools/update_ui_version.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); From bd488c66d635ece9f2b9fde12d6d1c655765911d Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:18:11 +0100 Subject: [PATCH 03/13] Testing: pyupgrade, remove unnecessary object inheritance; #6538 Since Python 3, all classes inherit from object by default, so object can be omitted from the list of base classes. See also: - https://docs.astral.sh/ruff/rules/useless-object-inheritance/ - https://peps.python.org/pep-3115/ --- lib/rucio/client/baseclient.py | 2 +- lib/rucio/common/didtype.py | 2 +- lib/rucio/common/dumper/__init__.py | 2 +- lib/rucio/common/dumper/data_models.py | 4 ++-- lib/rucio/common/types.py | 2 +- .../core/did_meta_plugins/did_meta_plugin_interface.py | 2 +- lib/rucio/core/rse_expression_parser.py | 2 +- lib/rucio/core/transfer.py | 2 +- lib/rucio/daemons/auditor/srmdumps.py | 4 ++-- lib/rucio/daemons/c3po/collectors/agis.py | 4 ++-- lib/rucio/daemons/c3po/collectors/free_space.py | 4 ++-- lib/rucio/daemons/c3po/collectors/mock_did.py | 2 +- lib/rucio/daemons/c3po/collectors/network_metrics.py | 2 +- lib/rucio/daemons/c3po/collectors/workload.py | 4 ++-- lib/rucio/daemons/c3po/utils/dataset_cache.py | 2 +- lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py | 2 +- lib/rucio/daemons/c3po/utils/expiring_list.py | 2 +- lib/rucio/daemons/c3po/utils/timeseries.py | 2 +- lib/rucio/daemons/conveyor/receiver.py | 2 +- lib/rucio/daemons/storage/consistency/actions.py | 2 +- lib/rucio/db/sqla/models.py | 2 +- lib/rucio/rse/protocols/protocol.py | 2 +- lib/rucio/rse/protocols/webdav.py | 4 ++-- lib/rucio/transfertool/transfertool.py | 6 +++--- lib/rucio/web/rest/flaskapi/v1/common.py | 2 +- tests/mocks/gfal2.py | 4 ++-- tests/test_auditor_hdfs.py | 2 +- tests/test_dumper_data_model.py | 4 ++-- tests/test_dumper_path_parsing.py | 2 +- tests/test_hermes.py | 2 +- tests/test_oidc.py | 2 +- 31 files changed, 41 insertions(+), 41 deletions(-) diff --git a/lib/rucio/client/baseclient.py b/lib/rucio/client/baseclient.py index c512625b4c..9c93e01cc1 100644 --- a/lib/rucio/client/baseclient.py +++ b/lib/rucio/client/baseclient.py @@ -67,7 +67,7 @@ def choice(hosts): return random.choice(hosts) -class BaseClient(object): +class BaseClient: """Main client class for accessing Rucio resources. Handles the authentication.""" diff --git a/lib/rucio/common/didtype.py b/lib/rucio/common/didtype.py index ffb52a6797..4e463e5644 100755 --- a/lib/rucio/common/didtype.py +++ b/lib/rucio/common/didtype.py @@ -19,7 +19,7 @@ from rucio.common.exception import DIDError -class DID(object): +class DID: """ Class used to store a DID diff --git a/lib/rucio/common/dumper/__init__.py b/lib/rucio/common/dumper/__init__.py index 4e530480e5..c18193a3f9 100644 --- a/lib/rucio/common/dumper/__init__.py +++ b/lib/rucio/common/dumper/__init__.py @@ -38,7 +38,7 @@ def __init__(self, msg='', code=None): super(HTTPDownloadFailed, self).__init__(msg) -class LogPipeHandler(logging.Handler, object): +class LogPipeHandler(logging.Handler): def __init__(self, pipe): super(LogPipeHandler, self).__init__() self.pipe = pipe diff --git a/lib/rucio/common/dumper/data_models.py b/lib/rucio/common/dumper/data_models.py index 90e68fc7c4..dfb4f20022 100644 --- a/lib/rucio/common/dumper/data_models.py +++ b/lib/rucio/common/dumper/data_models.py @@ -29,7 +29,7 @@ from rucio.common.dumper import DUMPS_CACHE_DIR, HTTPDownloadFailed, get_requests_session, http_download_to_file, smart_open, temp_file, to_datetime -class DataModel(object): +class DataModel: """ Data model for the dumps """ @@ -267,7 +267,7 @@ def __init__(self, *args): assert len(args) <= 9 -class Filter(object): +class Filter: _Condition = collections.namedtuple('_Condition', ('comparator', 'attribute', 'expected')) def __init__(self, filter_str, record_class): diff --git a/lib/rucio/common/types.py b/lib/rucio/common/types.py index aa3b9a9b8c..d085839695 100644 --- a/lib/rucio/common/types.py +++ b/lib/rucio/common/types.py @@ -15,7 +15,7 @@ from typing import Any, Callable, Literal, Optional, TypedDict, Union -class InternalType(object): +class InternalType: ''' Base for Internal representations of string types ''' diff --git a/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py b/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py index 862b97b53e..d43a4eaa1f 100644 --- a/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py +++ b/lib/rucio/core/did_meta_plugins/did_meta_plugin_interface.py @@ -23,7 +23,7 @@ from sqlalchemy.orm import Session -class DidMetaPlugin(object, metaclass=ABCMeta): +class DidMetaPlugin(metaclass=ABCMeta): """ Interface for plugins managing metadata of DIDs """ diff --git a/lib/rucio/core/rse_expression_parser.py b/lib/rucio/core/rse_expression_parser.py index d44417d8bd..eb19b738c0 100644 --- a/lib/rucio/core/rse_expression_parser.py +++ b/lib/rucio/core/rse_expression_parser.py @@ -208,7 +208,7 @@ def __extract_term(expression): raise SystemError('This point in the code should not be reachable') -class BaseExpressionElement(object, metaclass=abc.ABCMeta): +class BaseExpressionElement(metaclass=abc.ABCMeta): @abc.abstractmethod def resolve_elements(self, session): """ diff --git a/lib/rucio/core/transfer.py b/lib/rucio/core/transfer.py index 1854936587..f16eec3fd9 100644 --- a/lib/rucio/core/transfer.py +++ b/lib/rucio/core/transfer.py @@ -927,7 +927,7 @@ def apply(self, ctx: RequestRankingContext, source: RequestSource) -> "Optional[ """ pass - class _ClassNameDescriptor(object): + class _ClassNameDescriptor: """ Automatically set the external_name of the strategy to the class name. """ diff --git a/lib/rucio/daemons/auditor/srmdumps.py b/lib/rucio/daemons/auditor/srmdumps.py index e87ed06682..50bcbd68f4 100644 --- a/lib/rucio/daemons/auditor/srmdumps.py +++ b/lib/rucio/daemons/auditor/srmdumps.py @@ -34,7 +34,7 @@ __DUMPERCONFIGDIRS = list(filter(os.path.exists, __DUMPERCONFIGDIRS)) -class Parser(ConfigParser.RawConfigParser, object): +class Parser(ConfigParser.RawConfigParser): ''' RawConfigParser subclass that doesn't modify the the name of the options and removes any quotes arround the string values. @@ -110,7 +110,7 @@ def gfal_links(base_url): return ['/'.join((base_url, f)) for f in ctxt.listdir(str(base_url))] -class _LinkCollector(HTMLParser.HTMLParser, object): +class _LinkCollector(HTMLParser.HTMLParser): def __init__(self): super(_LinkCollector, self).__init__() self.links = [] diff --git a/lib/rucio/daemons/c3po/collectors/agis.py b/lib/rucio/daemons/c3po/collectors/agis.py index ab8be9a45d..cd405736c8 100644 --- a/lib/rucio/daemons/c3po/collectors/agis.py +++ b/lib/rucio/daemons/c3po/collectors/agis.py @@ -19,11 +19,11 @@ from rucio.common.config import config_get -class MappingCollector(object): +class MappingCollector: """ Provides mappings from PanDA / DDM resources to ATLAS sites and back. """ - class _MappingCollector(object): + class _MappingCollector: ''' _MappingCollector ''' diff --git a/lib/rucio/daemons/c3po/collectors/free_space.py b/lib/rucio/daemons/c3po/collectors/free_space.py index 3b8db0ea62..6f0fcec1a7 100644 --- a/lib/rucio/daemons/c3po/collectors/free_space.py +++ b/lib/rucio/daemons/c3po/collectors/free_space.py @@ -20,11 +20,11 @@ from rucio.db.sqla.session import read_session -class FreeSpaceCollector(object): +class FreeSpaceCollector: """ Collector to get the SRM free and used information for DATADISK RSEs. """ - class _FreeSpaceCollector(object): + class _FreeSpaceCollector: """ Hidden implementation """ diff --git a/lib/rucio/daemons/c3po/collectors/mock_did.py b/lib/rucio/daemons/c3po/collectors/mock_did.py index 07a6efe616..a98b79f39b 100644 --- a/lib/rucio/daemons/c3po/collectors/mock_did.py +++ b/lib/rucio/daemons/c3po/collectors/mock_did.py @@ -19,7 +19,7 @@ from random import choice -class MockDIDCollector(object): +class MockDIDCollector: """ Simple collector that reads dids from a file. Used to test the interface. diff --git a/lib/rucio/daemons/c3po/collectors/network_metrics.py b/lib/rucio/daemons/c3po/collectors/network_metrics.py index f62881ee9f..6608c84d3e 100644 --- a/lib/rucio/daemons/c3po/collectors/network_metrics.py +++ b/lib/rucio/daemons/c3po/collectors/network_metrics.py @@ -19,7 +19,7 @@ from rucio.common.config import config_get, config_get_int -class NetworkMetricsCollector(object): +class NetworkMetricsCollector: """ Collector to get the bandwidth metrics between two sites. """ diff --git a/lib/rucio/daemons/c3po/collectors/workload.py b/lib/rucio/daemons/c3po/collectors/workload.py index 45634eaec4..808355f9d8 100644 --- a/lib/rucio/daemons/c3po/collectors/workload.py +++ b/lib/rucio/daemons/c3po/collectors/workload.py @@ -26,13 +26,13 @@ from rucio.daemons.c3po.utils.timeseries import RedisTimeSeries -class WorkloadCollector(object): +class WorkloadCollector: """ Collector to retrieve the workload from PanDA. It stores it as a time series in Redis and provides the average and maximum number of running jobs for a sliding window. """ - class __WorkloadCollector(object): + class __WorkloadCollector: """ Private class needed implement singleton. """ diff --git a/lib/rucio/daemons/c3po/utils/dataset_cache.py b/lib/rucio/daemons/c3po/utils/dataset_cache.py index f7784a96a4..96cc59f1d3 100644 --- a/lib/rucio/daemons/c3po/utils/dataset_cache.py +++ b/lib/rucio/daemons/c3po/utils/dataset_cache.py @@ -17,7 +17,7 @@ from rucio.daemons.c3po.utils.timeseries import RedisTimeSeries -class DatasetCache(object): +class DatasetCache: """ Utility to count the accesses of the datasets during the last day. """ diff --git a/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py b/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py index 532aadce61..a504918377 100644 --- a/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py +++ b/lib/rucio/daemons/c3po/utils/expiring_dataset_cache.py @@ -20,7 +20,7 @@ from redis import StrictRedis -class ExpiringDatasetCache(object): +class ExpiringDatasetCache: """ Cache with expiring values to keep track of recently created replicas. """ diff --git a/lib/rucio/daemons/c3po/utils/expiring_list.py b/lib/rucio/daemons/c3po/utils/expiring_list.py index 9663c9e928..c90969dc99 100644 --- a/lib/rucio/daemons/c3po/utils/expiring_list.py +++ b/lib/rucio/daemons/c3po/utils/expiring_list.py @@ -20,7 +20,7 @@ from threading import Lock, Timer -class ExpiringList(object): +class ExpiringList: """ Simple list with time based element expiration """ diff --git a/lib/rucio/daemons/c3po/utils/timeseries.py b/lib/rucio/daemons/c3po/utils/timeseries.py index 4c38a652a2..75ed02ae53 100644 --- a/lib/rucio/daemons/c3po/utils/timeseries.py +++ b/lib/rucio/daemons/c3po/utils/timeseries.py @@ -21,7 +21,7 @@ from redis import StrictRedis -class RedisTimeSeries(object): +class RedisTimeSeries: """ Redis time series abstraction """ diff --git a/lib/rucio/daemons/conveyor/receiver.py b/lib/rucio/daemons/conveyor/receiver.py index 3d61f89eb4..5db6badc95 100644 --- a/lib/rucio/daemons/conveyor/receiver.py +++ b/lib/rucio/daemons/conveyor/receiver.py @@ -46,7 +46,7 @@ DAEMON_NAME = 'conveyor-receiver' -class Receiver(object): +class Receiver: def __init__(self, broker, id_, total_threads, transfer_stats_manager: request_core.TransferStatsManager, all_vos=False): self.__all_vos = all_vos diff --git a/lib/rucio/daemons/storage/consistency/actions.py b/lib/rucio/daemons/storage/consistency/actions.py index a765bf67d8..2a548a59ff 100644 --- a/lib/rucio/daemons/storage/consistency/actions.py +++ b/lib/rucio/daemons/storage/consistency/actions.py @@ -122,7 +122,7 @@ def declare_bad_file_replicas(dids, rse_id, reason, issuer, # TODO: This is Igor's Stats class.It will be factored out as a separate class in a future version of the code. # - Igor Mandrichenko , 2018 -class Stats(object): +class Stats: def __init__(self, path): self.path = path diff --git a/lib/rucio/db/sqla/models.py b/lib/rucio/db/sqla/models.py index c4ac717e42..c811714843 100644 --- a/lib/rucio/db/sqla/models.py +++ b/lib/rucio/db/sqla/models.py @@ -182,7 +182,7 @@ def _ck_constraint_name(const, table): const.name = "REQUESTS_HISTORY_STATE_CHK" -class ModelBase(object): +class ModelBase: """Base class for Rucio Models""" __table_initialized__ = False diff --git a/lib/rucio/rse/protocols/protocol.py b/lib/rucio/rse/protocols/protocol.py index 2c9ed4c2e5..063d5ae4c6 100644 --- a/lib/rucio/rse/protocols/protocol.py +++ b/lib/rucio/rse/protocols/protocol.py @@ -261,7 +261,7 @@ def path(self, scope, name): RSEDeterministicTranslation._module_init_() # pylint: disable=protected-access -class RSEProtocol(object): +class RSEProtocol: """ This class is virtual and acts as a base to inherit new protocols from. It further provides some common functionality which applies for the amjority of the protocols.""" def __init__(self, protocol_attr, rse_settings, logger=logging.log): diff --git a/lib/rucio/rse/protocols/webdav.py b/lib/rucio/rse/protocols/webdav.py index e9f8b243e2..61ddba3d09 100644 --- a/lib/rucio/rse/protocols/webdav.py +++ b/lib/rucio/rse/protocols/webdav.py @@ -39,7 +39,7 @@ def init_poolmanager(self, connections, maxsize, block=False): ca_cert_dir="/etc/grid-security/certificates") -class UploadInChunks(object): +class UploadInChunks: ''' Class to upload by chunks. ''' @@ -72,7 +72,7 @@ def __len__(self): return self.__totalsize -class IterableToFileAdapter(object): +class IterableToFileAdapter: ''' Class IterableToFileAdapter ''' diff --git a/lib/rucio/transfertool/transfertool.py b/lib/rucio/transfertool/transfertool.py index 87ebf4e236..f9852250a0 100644 --- a/lib/rucio/transfertool/transfertool.py +++ b/lib/rucio/transfertool/transfertool.py @@ -26,7 +26,7 @@ from rucio.core.rse import RseData -class TransferToolBuilder(object): +class TransferToolBuilder: """ Builder for Transfertool objects. Stores the parameters needed to create the Transfertool object of the given type/class. @@ -53,7 +53,7 @@ def make_transfertool(self, **additional_kwargs): return self.transfertool_class(**all_kwargs) -class TransferStatusReport(object, metaclass=ABCMeta): +class TransferStatusReport(metaclass=ABCMeta): """ Allows to compute the changes which have to be applied to the database to reflect the current status reported by the external transfertool into @@ -113,7 +113,7 @@ def get_db_fields_to_update(self, session, logger=logging.log): return updates -class Transfertool(object, metaclass=ABCMeta): +class Transfertool(metaclass=ABCMeta): """ Interface definition of the Rucio transfertool """ diff --git a/lib/rucio/web/rest/flaskapi/v1/common.py b/lib/rucio/web/rest/flaskapi/v1/common.py index ae7409f28b..3ab1a1f6b0 100644 --- a/lib/rucio/web/rest/flaskapi/v1/common.py +++ b/lib/rucio/web/rest/flaskapi/v1/common.py @@ -42,7 +42,7 @@ HeadersType = Union[Headers, dict[str, str], Sequence[tuple[str, str]]] -class CORSMiddleware(object): +class CORSMiddleware: """ WebUI 2.0 makes preflight requests to the API, which are not handled by the API. This middleware intercepts the preflight OPTIONS requests and returns a 200 OK response. diff --git a/tests/mocks/gfal2.py b/tests/mocks/gfal2.py index 0026940225..12b0388d41 100644 --- a/tests/mocks/gfal2.py +++ b/tests/mocks/gfal2.py @@ -15,13 +15,13 @@ import contextlib -class MockGfal2(object): +class MockGfal2: """ This is a mock gfal2 to test the Storage dumper """ files = {} - class MockContext(object): + class MockContext: ''' MockContext ''' diff --git a/tests/test_auditor_hdfs.py b/tests/test_auditor_hdfs.py index fa895f00cd..4f6d1a2081 100644 --- a/tests/test_auditor_hdfs.py +++ b/tests/test_auditor_hdfs.py @@ -21,7 +21,7 @@ from rucio.daemons.auditor import hdfs -class FakeHDFSGet(object): +class FakeHDFSGet: def __init__(self, files=[]): self.files = files diff --git a/tests/test_dumper_data_model.py b/tests/test_dumper_data_model.py index bad2bab773..25cd68f0fa 100644 --- a/tests/test_dumper_data_model.py +++ b/tests/test_dumper_data_model.py @@ -214,7 +214,7 @@ def test_raises_exception(self, mock_session_head, mock_session_get, tmp_path): ) -class TestCompleteDataset(object): +class TestCompleteDataset: @staticmethod def test_creation_with_7_parameters(): @@ -261,7 +261,7 @@ def test_empty_size_is_(): assert complete_dataset.size is None # pylint: disable=no-member -class TestReplica(object): +class TestReplica: @staticmethod def test_replica_with_8_parameters(): diff --git a/tests/test_dumper_path_parsing.py b/tests/test_dumper_path_parsing.py index 6bbd25a1e3..cfe93102a5 100644 --- a/tests/test_dumper_path_parsing.py +++ b/tests/test_dumper_path_parsing.py @@ -15,7 +15,7 @@ from rucio.common.dumper.path_parsing import components, remove_prefix -class TestPathParsing(object): +class TestPathParsing: def test_remove_prefix(self): prefix = ['a', 'b', 'c', 'd'] diff --git a/tests/test_hermes.py b/tests/test_hermes.py index 25ec7e6e87..f10e905a46 100644 --- a/tests/test_hermes.py +++ b/tests/test_hermes.py @@ -29,7 +29,7 @@ from rucio.tests.common import rse_name_generator, skip_missing_elasticsearch_influxdb_in_env -class MyListener(object): +class MyListener: def __init__(self, conn): self.conn = conn self.count = 0 diff --git a/tests/test_oidc.py b/tests/test_oidc.py index 18a1ff8d37..54e04516a5 100644 --- a/tests/test_oidc.py +++ b/tests/test_oidc.py @@ -185,7 +185,7 @@ def parse_response(cls, AuthorizationResponse, info=None, sformat="urlencoded"): return None -class MockResponse(object): +class MockResponse: def __init__(self, json_data): self.json_data = json_data From a5e36a59d662b4a77b5e114a9ed54684e028e249 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:29:03 +0100 Subject: [PATCH 04/13] Testing: pyupgrade, replace exceptions that alias to OSError; #6538 In Python3.3+, a variety of exceptions (such as IOError) were aliased to OSError, with the latter being the preferred exception to use. See also: - https://docs.python.org/3/library/exceptions.html#OSError - https://stackoverflow.com/questions/29347790/difference-between-ioerror-and-oserror - https://docs.astral.sh/ruff/rules/os-error-alias/ --- lib/rucio/client/baseclient.py | 6 +++--- lib/rucio/common/cache.py | 2 +- lib/rucio/common/pcache.py | 4 ++-- lib/rucio/core/rule.py | 2 +- lib/rucio/daemons/auditor/hdfs.py | 2 +- lib/rucio/rse/protocols/posix.py | 8 ++++---- lib/rucio/rse/protocols/webdav.py | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/rucio/client/baseclient.py b/lib/rucio/client/baseclient.py index 9c93e01cc1..77a5df050d 100644 --- a/lib/rucio/client/baseclient.py +++ b/lib/rucio/client/baseclient.py @@ -412,7 +412,7 @@ def _send_request(self, url, headers=None, type_='GET', data=None, params=None, if retry > self.request_retries: raise continue - except IOError as error: + except OSError as error: # Handle Broken Pipe # While in python3 we can directly catch 'BrokenPipeError', in python2 it doesn't exist. if getattr(error, 'errno') != errno.EPIPE: @@ -859,7 +859,7 @@ def __read_token(self): token_file_handler = open(self.token_file, 'r') self.auth_token = token_file_handler.readline() self.headers['X-Rucio-Auth-Token'] = self.auth_token - except IOError as error: + except OSError as error: print("I/O error({0}): {1}".format(error.errno, error.strerror)) except Exception: raise @@ -890,7 +890,7 @@ def __write_token(self): with fdopen(file_d, "w") as f_exp_epoch: f_exp_epoch.write(str(self.token_exp_epoch)) move(file_n, self.token_exp_epoch_file) - except IOError as error: + except OSError as error: print("I/O error({0}): {1}".format(error.errno, error.strerror)) except Exception: raise diff --git a/lib/rucio/common/cache.py b/lib/rucio/common/cache.py index 1abd8f8bae..ccd0150a39 100644 --- a/lib/rucio/common/cache.py +++ b/lib/rucio/common/cache.py @@ -35,7 +35,7 @@ import pymemcache _mc_client = pymemcache.Client(CACHE_URL, connect_timeout=1, timeout=1) _mc_client.version() -except IOError: +except OSError: ENABLE_CACHING = False except ImportError: ENABLE_CACHING = False diff --git a/lib/rucio/common/pcache.py b/lib/rucio/common/pcache.py index b937d2dd02..ddcd6f2697 100644 --- a/lib/rucio/common/pcache.py +++ b/lib/rucio/common/pcache.py @@ -1127,7 +1127,7 @@ def lock_file(self, name, blocking=True): return try: f = open(name, 'w') - except IOError as e: + except OSError as e: self.log(ERROR, "open: %s", e) return e.errno @@ -1139,7 +1139,7 @@ def lock_file(self, name, blocking=True): try: status = fcntl.lockf(f, flag) break - except IOError as e: + except OSError as e: if e.errno in (errno.EAGAIN, errno.EACCES) and not blocking: f.close() del self.locks[name] diff --git a/lib/rucio/core/rule.py b/lib/rucio/core/rule.py index 49d1f8420a..e9b103f84a 100644 --- a/lib/rucio/core/rule.py +++ b/lib/rucio/core/rule.py @@ -2791,7 +2791,7 @@ def generate_email_for_rule_ok_notification( try: with open(template_path, 'r') as templatefile: template = Template(templatefile.read()) - except IOError as ex: + except OSError as ex: logger(logging.ERROR, "Couldn't open file '%s'", template_path, exc_info=ex) return diff --git a/lib/rucio/daemons/auditor/hdfs.py b/lib/rucio/daemons/auditor/hdfs.py index 1c1e26df59..e7ad1a2108 100644 --- a/lib/rucio/daemons/auditor/hdfs.py +++ b/lib/rucio/daemons/auditor/hdfs.py @@ -32,7 +32,7 @@ def _hdfs_get(src_url, dst_path): ) _, stderr = get.communicate() if get.returncode != 0: - raise IOError('_hdfs_get(): "{0}": {1}. Return code {2}'.format( + raise OSError('_hdfs_get(): "{0}": {1}. Return code {2}'.format( ' '.join(cmd), stderr, get.returncode, diff --git a/lib/rucio/rse/protocols/posix.py b/lib/rucio/rse/protocols/posix.py index 9c9ab7a937..cdd670c77a 100644 --- a/lib/rucio/rse/protocols/posix.py +++ b/lib/rucio/rse/protocols/posix.py @@ -70,12 +70,12 @@ def get(self, pfn, dest, transfer_timeout=None): """ try: shutil.copy(self.pfn2path(pfn), dest) - except IOError as e: + except OSError as e: try: # To check if the error happend local or remote with open(dest, 'wb'): pass call(['rm', '-rf', dest]) - except IOError as e: + except OSError as e: if e.errno == 2: raise exception.DestinationNotAccessible(e) else: @@ -109,7 +109,7 @@ def put(self, source, target, source_dir=None, transfer_timeout=None): if not os.path.exists(dirs): os.makedirs(dirs) shutil.copy(sf, target) - except IOError as e: + except OSError as e: if e.errno == 2: raise exception.SourceNotFound(e) elif not self.exists(self.rse['prefix']): @@ -151,7 +151,7 @@ def rename(self, pfn, new_pfn): if not os.path.exists(os.path.dirname(new_path)): os.makedirs(os.path.dirname(new_path)) os.rename(path, new_path) - except IOError as e: + except OSError as e: if e.errno == 2: if self.exists(self.pfn2path(path)): raise exception.SourceNotFound(e) diff --git a/lib/rucio/rse/protocols/webdav.py b/lib/rucio/rse/protocols/webdav.py index 61ddba3d09..d3c740e641 100644 --- a/lib/rucio/rse/protocols/webdav.py +++ b/lib/rucio/rse/protocols/webdav.py @@ -331,13 +331,13 @@ def put(self, source, target, source_dir=None, transfer_timeout=None, progressba raise exception.RucioException(result.status_code, result.text) except requests.exceptions.ConnectionError as error: raise exception.ServiceUnavailable(error) - except IOError as error: + except OSError as error: raise exception.SourceNotFound(error) except requests.exceptions.ConnectionError as error: raise exception.ServiceUnavailable(error) except requests.exceptions.ReadTimeout as error: raise exception.ServiceUnavailable(error) - except IOError as error: + except OSError as error: raise exception.SourceNotFound(error) def rename(self, pfn, new_pfn): From 61668416792ba3ee42b147edf467d2f76092addd Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:33:13 +0100 Subject: [PATCH 05/13] Testing: Remove extra parentheses when not needed; #6538 See also: - UP034 --- lib/rucio/common/pcache.py | 2 +- lib/rucio/common/utils.py | 2 +- .../2190e703eb6e_move_rse_settings_to_rse_attributes.py | 2 +- tools/github/workflow/set_branch_output_env.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rucio/common/pcache.py b/lib/rucio/common/pcache.py index ddcd6f2697..80fd03ec99 100644 --- a/lib/rucio/common/pcache.py +++ b/lib/rucio/common/pcache.py @@ -258,7 +258,7 @@ def parse_args(self, args): elif opt in ("-r", "--retry"): self.max_retries = int(arg) elif opt in ("-V", "--version"): - print((str(self.version))) + print(str(self.version)) sys.exit(0) elif opt in ("-l", "--log"): self.log_file = arg diff --git a/lib/rucio/common/utils.py b/lib/rucio/common/utils.py index f68efc84a5..2fbe27fe12 100644 --- a/lib/rucio/common/utils.py +++ b/lib/rucio/common/utils.py @@ -1658,7 +1658,7 @@ def start(): while not graceful_stop.is_set(): starttime = time.time() action() - time.sleep(interval - ((time.time() - starttime))) + time.sleep(interval - (time.time() - starttime)) t = threading.Thread(target=start) return t diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py index 4c6728a653..72c37f9595 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py @@ -83,7 +83,7 @@ def upgrade(): ) conn.execute( - sa.insert((get_rse_attr_association())).from_select( + sa.insert(get_rse_attr_association()).from_select( ["rse_id", "key", "value", "created_at", "updated_at"], select_stmt ) ) diff --git a/tools/github/workflow/set_branch_output_env.py b/tools/github/workflow/set_branch_output_env.py index 7b4b210dea..a8492778f2 100755 --- a/tools/github/workflow/set_branch_output_env.py +++ b/tools/github/workflow/set_branch_output_env.py @@ -21,7 +21,7 @@ def set_output(name: str, value: str) -> None: def main(): - set_output("branch", str((env.get("GITHUB_BASE_REF", None) if env.get("GITHUB_BASE_REF", None) else env.get("GITHUB_REF", "master")))) + set_output("branch", str(env.get("GITHUB_BASE_REF", None) if env.get("GITHUB_BASE_REF", None) else env.get("GITHUB_REF", "master"))) if __name__ == "__main__": From ca0f28e8fc091b06867a08a0947006977351a795 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:36:41 +0100 Subject: [PATCH 06/13] Testing: Remove unnecessary class parentheses; #6538 See: - https://docs.astral.sh/ruff/rules/unnecessary-class-parentheses/ --- lib/rucio/common/plugins.py | 2 +- lib/rucio/core/rse_selector.py | 2 +- lib/rucio/daemons/c3po/collectors/jedi_did.py | 2 +- tests/test_abacus_account.py | 2 +- tests/test_abacus_collection_replica.py | 2 +- tests/test_abacus_rse.py | 2 +- tests/test_auditor.py | 2 +- tests/test_module_import.py | 2 +- tools/monitoring/extract.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rucio/common/plugins.py b/lib/rucio/common/plugins.py index e3a5c54146..a0a804da07 100644 --- a/lib/rucio/common/plugins.py +++ b/lib/rucio/common/plugins.py @@ -23,7 +23,7 @@ PolicyPackageAlgorithmsT = TypeVar('PolicyPackageAlgorithmsT', bound='PolicyPackageAlgorithms') -class PolicyPackageAlgorithms(): +class PolicyPackageAlgorithms: """ Base class for Rucio Policy Package Algorithms diff --git a/lib/rucio/core/rse_selector.py b/lib/rucio/core/rse_selector.py index 7c320e90d7..a1e98446d6 100644 --- a/lib/rucio/core/rse_selector.py +++ b/lib/rucio/core/rse_selector.py @@ -27,7 +27,7 @@ from sqlalchemy.orm import Session -class RSESelector(): +class RSESelector: """ Representation of the RSE selector """ diff --git a/lib/rucio/daemons/c3po/collectors/jedi_did.py b/lib/rucio/daemons/c3po/collectors/jedi_did.py index cf1a861d2c..51a4fbfd97 100644 --- a/lib/rucio/daemons/c3po/collectors/jedi_did.py +++ b/lib/rucio/daemons/c3po/collectors/jedi_did.py @@ -17,7 +17,7 @@ from rucio.db.sqla.session import read_session -class JediDIDCollector(): +class JediDIDCollector: def __init__(self, queue): self.queue = queue self.max_tid = 0 diff --git a/tests/test_abacus_account.py b/tests/test_abacus_account.py index 3d2cebcca2..7569f26993 100644 --- a/tests/test_abacus_account.py +++ b/tests/test_abacus_account.py @@ -26,7 +26,7 @@ @pytest.mark.noparallel(reason='uses daemon, failing in parallel to other tests, updates account') -class TestAbacusAccount2(): +class TestAbacusAccount2: def test_abacus_account(self, vo, root_account, mock_scope, rse_factory, did_factory, rucio_client): """ ABACUS (ACCOUNT): Test update of account usage """ diff --git a/tests/test_abacus_collection_replica.py b/tests/test_abacus_collection_replica.py index 7e60984c9a..e117f1dd56 100644 --- a/tests/test_abacus_collection_replica.py +++ b/tests/test_abacus_collection_replica.py @@ -28,7 +28,7 @@ @pytest.mark.noparallel(reason='uses daemons, fails when run in parallel') -class TestAbacusCollectionReplica(): +class TestAbacusCollectionReplica: def test_abacus_collection_replica_cleanup(self, vo, mock_scope, rse_factory, did_client, jdoe_account): """ ABACUS (COLLECTION REPLICA): Test if the cleanup procedure works correctly. """ diff --git a/tests/test_abacus_rse.py b/tests/test_abacus_rse.py index 0836db2730..b5a63f0194 100644 --- a/tests/test_abacus_rse.py +++ b/tests/test_abacus_rse.py @@ -23,7 +23,7 @@ @pytest.mark.noparallel(reason='uses daemon, failing in parallel to other tests') -class TestAbacusRSE(): +class TestAbacusRSE: def test_abacus_rse(self, vo, mock_scope, rse_factory, did_factory, rucio_client): """ ABACUS (RSE): Test update of RSE usage. """ diff --git a/tests/test_auditor.py b/tests/test_auditor.py index 9c751a5721..4bd7b05644 100644 --- a/tests/test_auditor.py +++ b/tests/test_auditor.py @@ -106,7 +106,7 @@ def test_auditor_check_survives_failures_and_queues_failed_rses(mock_auditor): lambda: None, ) - class MockMultiProcessing(): + class MockMultiProcessing: def is_set(self): return queue.empty() terminate = MockMultiProcessing() diff --git a/tests/test_module_import.py b/tests/test_module_import.py index c78d1d722e..8094f636fd 100644 --- a/tests/test_module_import.py +++ b/tests/test_module_import.py @@ -15,7 +15,7 @@ from rucio.common.utils import execute -class TestModuleImport(): +class TestModuleImport: def test_import(self): """ """ cmd = 'rucio --version' diff --git a/tools/monitoring/extract.py b/tools/monitoring/extract.py index 3de2ad8aaa..2cfdefec0e 100644 --- a/tools/monitoring/extract.py +++ b/tools/monitoring/extract.py @@ -28,7 +28,7 @@ import stomp -class ElasticConn(): +class ElasticConn: def __init__(self, host_port, auth): self.__es = es.Elasticsearch([host_port[0]],http_auth=auth,consumer_port=host_port[1]) From ea1bddaf4722ac740294c042ecb7a6dea1341ced Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:39:12 +0100 Subject: [PATCH 07/13] Testing: Remove unnecessary str() casting; #6538 See: - https://docs.astral.sh/ruff/rules/native-literals/ --- lib/rucio/common/utils.py | 2 +- lib/rucio/core/replica.py | 2 +- lib/rucio/daemons/conveyor/receiver.py | 4 ++-- lib/rucio/transfertool/fts3.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/rucio/common/utils.py b/lib/rucio/common/utils.py index 2fbe27fe12..3f16b28561 100644 --- a/lib/rucio/common/utils.py +++ b/lib/rucio/common/utils.py @@ -578,7 +578,7 @@ def val_to_space_sep_str(vallist): else: return str(vallist) except: - return str('') + return '' def date_to_str(date): diff --git a/lib/rucio/core/replica.py b/lib/rucio/core/replica.py index 93f2384605..d3d016bbd8 100644 --- a/lib/rucio/core/replica.py +++ b/lib/rucio/core/replica.py @@ -94,7 +94,7 @@ def get_bad_replicas_summary(rse_expression=None, from_date=None, to_date=None, rse_clause.append(models.BadReplicas.rse_id == rse['id']) if session.bind.dialect.name == 'oracle': - to_days = func.trunc(models.BadReplicas.created_at, str('DD')) + to_days = func.trunc(models.BadReplicas.created_at, 'DD') elif session.bind.dialect.name == 'mysql': to_days = func.date(models.BadReplicas.created_at) elif session.bind.dialect.name == 'postgresql': diff --git a/lib/rucio/daemons/conveyor/receiver.py b/lib/rucio/daemons/conveyor/receiver.py index 5db6badc95..a4336262f0 100644 --- a/lib/rucio/daemons/conveyor/receiver.py +++ b/lib/rucio/daemons/conveyor/receiver.py @@ -70,9 +70,9 @@ def on_message(self, frame): if 'job_metadata' in msg.keys() \ and isinstance(msg['job_metadata'], dict) \ and 'issuer' in msg['job_metadata'].keys() \ - and str(msg['job_metadata']['issuer']) == str('rucio'): + and str(msg['job_metadata']['issuer']) == 'rucio': - if 'job_state' in msg.keys() and (str(msg['job_state']) != str('ACTIVE') or msg.get('job_multihop', False) is True): + if 'job_state' in msg.keys() and (str(msg['job_state']) != 'ACTIVE' or msg.get('job_multihop', False) is True): METRICS.counter('message_rucio').inc() self._perform_request_update(msg) diff --git a/lib/rucio/transfertool/fts3.py b/lib/rucio/transfertool/fts3.py index 0af3e82c3a..853c57e5ad 100644 --- a/lib/rucio/transfertool/fts3.py +++ b/lib/rucio/transfertool/fts3.py @@ -653,7 +653,7 @@ def __init__(self, external_host, request_id, fts_message): self._transfer_id = fts_message.get('tr_id').split("__")[-1] self._file_metadata = fts_message['file_metadata'] - self._multi_sources = str(fts_message.get('job_metadata', {}).get('multi_sources', '')).lower() == str('true') + self._multi_sources = str(fts_message.get('job_metadata', {}).get('multi_sources', '')).lower() == 'true' self._src_url = fts_message.get('src_url', None) self._dst_url = fts_message.get('dst_url', None) @@ -724,7 +724,7 @@ def __init__(self, external_host, request_id, job_response, file_response, reque self._transfer_id = job_response.get('job_id') self._file_metadata = file_response['file_metadata'] - self._multi_sources = str(job_response['job_metadata'].get('multi_sources', '')).lower() == str('true') + self._multi_sources = str(job_response['job_metadata'].get('multi_sources', '')).lower() == 'true' self._src_url = file_response.get('source_surl', None) self._dst_url = file_response.get('dest_surl', None) self.logger = logging.log From e745498b205c5f4ab1e73e79375e92f6e1ca6e9e Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:43:54 +0100 Subject: [PATCH 08/13] Testing: Remove unnecessary encode to utf-8; #6538 UTF-8 is the default encoding in Python, so there is no need to call encode when UTF-8 is the desired encoding. Instead, use a bytes literal. See also: - https://docs.astral.sh/ruff/rules/unnecessary-encode-utf8/ --- tests/test_dumper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dumper.py b/tests/test_dumper.py index 94cf3b46f1..2b34572ba1 100644 --- a/tests/test_dumper.py +++ b/tests/test_dumper.py @@ -83,7 +83,7 @@ def test_smart_open_for_bz2_file(): fd, path = tempfile.mkstemp() comp = bz2.BZ2Compressor() with os.fdopen(fd, 'wb') as f: - f.write(comp.compress('abcdef'.encode())) + f.write(comp.compress(b'abcdef')) f.write(comp.flush()) assert not isinstance(dumper.smart_open(path), bz2.BZ2File) os.unlink(path) From b6e266e38ffa9a0f836eb6393884e7d180a3dac1 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:46:36 +0100 Subject: [PATCH 09/13] Testing: pyupgrade, remove unnecessary import from future; #6538 See also: - https://docs.astral.sh/ruff/rules/unnecessary-future-import/ --- lib/rucio/common/cache.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rucio/common/cache.py b/lib/rucio/common/cache.py index ccd0150a39..16bbb57c26 100644 --- a/lib/rucio/common/cache.py +++ b/lib/rucio/common/cache.py @@ -11,7 +11,6 @@ # WITHOUT 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 typing import TYPE_CHECKING From 26acb475f9dc209cdeeeb8acce779e7b1198c1a9 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 17:47:29 +0100 Subject: [PATCH 10/13] Testing: Add pyupgrade linting; #6538 Pyupgrade is a linter to check for deprecated Python syntax. This commit configures ruff to perform pyupgrade linting. In the ignore list, I added some pyupgrade error codes (UP*) for the moment. These must either be fixed manually, or might be controversial in some way, so we can consider them at a later point. --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8d58511e99..3d7069bd4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,12 +38,19 @@ exclude = [ [tool.ruff.lint] select = [ "I", # isort + "UP", # pyupgrade ] ignore = [ "ALL", + "UP008", # Use `super()` instead of `super(__class__, self)` + "UP015", # Unnecessary open mode parameters + "UP027", # Replace unpacked list comprehension with a generator expression + "UP028", # Replace `yield` over `for` loop with `yield from` + "UP030", # Use implicit references for positional format fields "UP031", # Use format specifiers instead of percent format + "UP032", # Use f-string instead of `format` call "SIM210", ] -extend-safe-fixes = ["I001"] \ No newline at end of file +extend-safe-fixes = ["I001"] From 42ab87f733161f84883956e76ef1c8d520c75cc6 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 18:02:28 +0100 Subject: [PATCH 11/13] Testing: Extend linter to Python files without extension (e.g. bin/) and lint them; #6538 --- bin/rucio | 37 +++++++++++++++--------- bin/rucio-abacus-account | 1 - bin/rucio-abacus-collection-replica | 1 - bin/rucio-abacus-rse | 1 - bin/rucio-admin | 41 ++++++++++++++++----------- bin/rucio-atropos | 1 - bin/rucio-auditor | 3 +- bin/rucio-automatix | 1 - bin/rucio-bb8 | 1 - bin/rucio-c3po | 1 - bin/rucio-cache-client | 2 -- bin/rucio-cache-consumer | 1 - bin/rucio-conveyor-finisher | 1 - bin/rucio-conveyor-poller | 1 - bin/rucio-conveyor-preparer | 1 - bin/rucio-conveyor-receiver | 1 - bin/rucio-conveyor-stager | 1 - bin/rucio-conveyor-submitter | 1 - bin/rucio-conveyor-throttler | 1 - bin/rucio-dark-reaper | 1 - bin/rucio-dumper | 10 +++---- bin/rucio-follower | 1 - bin/rucio-hermes | 1 - bin/rucio-judge-cleaner | 1 - bin/rucio-judge-evaluator | 1 - bin/rucio-judge-injector | 1 - bin/rucio-judge-repairer | 1 - bin/rucio-kronos | 1 - bin/rucio-minos | 1 - bin/rucio-minos-temporary-expiration | 1 - bin/rucio-necromancer | 1 - bin/rucio-oauth-manager | 1 - bin/rucio-reaper | 1 - bin/rucio-replica-recoverer | 1 - bin/rucio-rse-decommissioner | 1 - bin/rucio-storage-consistency-actions | 1 - bin/rucio-transmogrifier | 1 - bin/rucio-undertaker | 1 - pyproject.toml | 8 ++++-- tools/generate-release-notes | 4 +-- 40 files changed, 61 insertions(+), 77 deletions(-) diff --git a/bin/rucio b/bin/rucio index 03758e56a9..a5126969c0 100755 --- a/bin/rucio +++ b/bin/rucio @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,27 +26,39 @@ import time import traceback import unittest import uuid +from configparser import NoOptionError, NoSectionError from copy import deepcopy from datetime import datetime from functools import wraps -from configparser import NoOptionError, NoSectionError -from tabulate import tabulate - # rucio module has the same name as this executable module, so this rule fails. pylint: disable=no-name-in-module from rucio import version from rucio.client import Client from rucio.common.config import config_get, config_get_float -from rucio.common.exception import (DataIdentifierAlreadyExists, AccessDenied, DataIdentifierNotFound, InvalidObject, - RSENotFound, InvalidRSEExpression, InputValidationError, DuplicateContent, - RuleNotFound, CannotAuthenticate, MissingDependency, UnsupportedOperation, - RucioException, DuplicateRule, InvalidType, DuplicateCriteriaInDIDFilter, - DIDFilterSyntaxError) +from rucio.common.constants import ReplicaState +from rucio.common.exception import ( + AccessDenied, + CannotAuthenticate, + DataIdentifierAlreadyExists, + DataIdentifierNotFound, + DIDFilterSyntaxError, + DuplicateContent, + DuplicateCriteriaInDIDFilter, + DuplicateRule, + InputValidationError, + InvalidObject, + InvalidRSEExpression, + InvalidType, + MissingDependency, + RSENotFound, + RucioException, + RuleNotFound, + UnsupportedOperation, +) from rucio.common.extra import import_extras from rucio.common.test_rucio_server import TestRucioServer -from rucio.common.utils import sizefmt, Color, detect_client_location, chunks, parse_did_filter_from_string, \ - parse_did_filter_from_string_fe, extract_scope, setup_logger, StoreAndDeprecateWarningAction -from rucio.common.constants import ReplicaState +from rucio.common.utils import Color, StoreAndDeprecateWarningAction, chunks, detect_client_location, extract_scope, parse_did_filter_from_string, parse_did_filter_from_string_fe, setup_logger, sizefmt +from tabulate import tabulate EXTRA_MODULES = import_extras(['argcomplete']) @@ -488,7 +499,7 @@ def attach(args): try: f = open(dids[0], 'r') dids = [did.rstrip() for did in f.readlines()] - except IOError: + except OSError: logger.error("Can't open file '" + dids[0] + "'.") return FAILURE diff --git a/bin/rucio-abacus-account b/bin/rucio-abacus-account index 5070087e24..37cc76468a 100755 --- a/bin/rucio-abacus-account +++ b/bin/rucio-abacus-account @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-abacus-collection-replica b/bin/rucio-abacus-collection-replica index 023e0f00de..fa383db973 100755 --- a/bin/rucio-abacus-collection-replica +++ b/bin/rucio-abacus-collection-replica @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-abacus-rse b/bin/rucio-abacus-rse index 41809b86d8..5a5c586ec6 100755 --- a/bin/rucio-abacus-rse +++ b/bin/rucio-abacus-rse @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-admin b/bin/rucio-admin index 5caf3b2796..84fee6bb5c 100755 --- a/bin/rucio-admin +++ b/bin/rucio-admin @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -25,26 +24,36 @@ import signal import sys import time import traceback -from textwrap import dedent -from functools import wraps - from configparser import NoOptionError, NoSectionError -from tabulate import tabulate +from functools import wraps +from textwrap import dedent from rucio import version from rucio.client import Client from rucio.common.config import config_get -from rucio.common.exception import (AccountNotFound, DataIdentifierAlreadyExists, AccessDenied, - DataIdentifierNotFound, InvalidObject, ReplicaNotFound, - RSENotFound, RSEOperationNotSupported, InvalidRSEExpression, - DuplicateContent, RuleNotFound, CannotAuthenticate, - Duplicate, ReplicaIsLocked, ConfigNotFound, ScopeNotFound, - InputValidationError) +from rucio.common.exception import ( + AccessDenied, + AccountNotFound, + CannotAuthenticate, + ConfigNotFound, + DataIdentifierAlreadyExists, + DataIdentifierNotFound, + Duplicate, + DuplicateContent, + InputValidationError, + InvalidObject, + InvalidRSEExpression, + ReplicaIsLocked, + ReplicaNotFound, + RSENotFound, + RSEOperationNotSupported, + RuleNotFound, + ScopeNotFound, +) from rucio.common.extra import import_extras -from rucio.common.utils import (chunks, construct_surl, sizefmt, get_bytes_value_from_string, - render_json, parse_response, extract_scope, clean_surls, - StoreAndDeprecateWarningAction) +from rucio.common.utils import StoreAndDeprecateWarningAction, chunks, clean_surls, construct_surl, extract_scope, get_bytes_value_from_string, parse_response, render_json, sizefmt from rucio.rse import rsemanager as rsemgr +from tabulate import tabulate EXTRA_MODULES = import_extras(['argcomplete']) @@ -1277,7 +1286,7 @@ def import_data(args): print('There was problem with decoding your file.') print(error) return FAILURE - except IOError as error: + except OSError as error: print('There was a problem with reading your file.') print(error) return FAILURE @@ -1309,7 +1318,7 @@ def export_data(args): print('File successfully written.') print('Data successfully exported to %s' % args.file_path) return SUCCESS - except IOError as error: + except OSError as error: print('There was a problem with reading your file.') print(error) return FAILURE diff --git a/bin/rucio-atropos b/bin/rucio-atropos index f70abd412a..0e6b17f8f7 100755 --- a/bin/rucio-atropos +++ b/bin/rucio-atropos @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-auditor b/bin/rucio-auditor index 5324684f8c..25ab4adc70 100755 --- a/bin/rucio-auditor +++ b/bin/rucio-auditor @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +23,7 @@ import textwrap import time from datetime import datetime from functools import partial -from multiprocessing import Queue, Process, Event, Pipe +from multiprocessing import Event, Pipe, Process, Queue import rucio.common.config as config import rucio.common.dumper as dumper diff --git a/bin/rucio-automatix b/bin/rucio-automatix index 31285a96cd..a07d0d3a86 100755 --- a/bin/rucio-automatix +++ b/bin/rucio-automatix @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-bb8 b/bin/rucio-bb8 index ee05c57246..aaef1c1655 100755 --- a/bin/rucio-bb8 +++ b/bin/rucio-bb8 @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-c3po b/bin/rucio-c3po index b2e28715bc..8f1480dd30 100755 --- a/bin/rucio-c3po +++ b/bin/rucio-c3po @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-cache-client b/bin/rucio-cache-client index 3e740eecd5..39004e2a81 100755 --- a/bin/rucio-cache-client +++ b/bin/rucio-cache-client @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,7 +26,6 @@ import sys import stomp from jsonschema import validate - from rucio.client.didclient import DIDClient from rucio.client.rseclient import RSEClient from rucio.common.config import config_get, config_get_int diff --git a/bin/rucio-cache-consumer b/bin/rucio-cache-consumer index 7fc5ab40e9..2f51c1a3a4 100755 --- a/bin/rucio-cache-consumer +++ b/bin/rucio-cache-consumer @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-finisher b/bin/rucio-conveyor-finisher index 39ee47c642..f46a6a1d14 100755 --- a/bin/rucio-conveyor-finisher +++ b/bin/rucio-conveyor-finisher @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-poller b/bin/rucio-conveyor-poller index 0e7535ddb0..eea03a76f1 100755 --- a/bin/rucio-conveyor-poller +++ b/bin/rucio-conveyor-poller @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-preparer b/bin/rucio-conveyor-preparer index 5964d904d9..9a6ad8b575 100755 --- a/bin/rucio-conveyor-preparer +++ b/bin/rucio-conveyor-preparer @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-receiver b/bin/rucio-conveyor-receiver index 0109d2ed34..01a9473c4f 100755 --- a/bin/rucio-conveyor-receiver +++ b/bin/rucio-conveyor-receiver @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-stager b/bin/rucio-conveyor-stager index 27db42498a..a379d9fee0 100755 --- a/bin/rucio-conveyor-stager +++ b/bin/rucio-conveyor-stager @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-submitter b/bin/rucio-conveyor-submitter index 18831373ff..aacb1fe34c 100755 --- a/bin/rucio-conveyor-submitter +++ b/bin/rucio-conveyor-submitter @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-conveyor-throttler b/bin/rucio-conveyor-throttler index 56277abab7..333dc35be6 100755 --- a/bin/rucio-conveyor-throttler +++ b/bin/rucio-conveyor-throttler @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-dark-reaper b/bin/rucio-dark-reaper index eb347bfb88..a4da2e1c6a 100755 --- a/bin/rucio-dark-reaper +++ b/bin/rucio-dark-reaper @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-dumper b/bin/rucio-dumper index f8170de839..c0654dd9e7 100755 --- a/bin/rucio-dumper +++ b/bin/rucio-dumper @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,11 +17,10 @@ import argparse import datetime import logging import sys -import tabulate import rucio.common.dumper.consistency as consistency import rucio.common.dumper.data_models as data_models - +import tabulate from rucio.common.dumper import error logger = logging.getLogger('rucio-dumper') @@ -130,7 +128,7 @@ if __name__ == "__main__": fields.append(args.sum) data = [] for key, value in data_dict.items(): - total = sum((getattr(x, args.sum) for x in value)) + total = sum(getattr(x, args.sum) for x in value) # FIXME: Ugly hack to have some result setattr(value[0], args.sum, total) data.append(value[0]) @@ -139,12 +137,12 @@ if __name__ == "__main__": if args.fields: _show_fields = args.fields.split(',') - if not all((f in fields for f in _show_fields)): + if not all(f in fields for f in _show_fields): error('Invalid field in --fields argument') fields = _show_fields elif args.hide: _hide_fields = args.hide.split(',') - if not all((f in fields for f in _hide_fields)): + if not all(f in fields for f in _hide_fields): error('Invalid field in --hide argument') fields = [f for f in fields if f not in _hide_fields] diff --git a/bin/rucio-follower b/bin/rucio-follower index 6a3b066878..93f70bd448 100755 --- a/bin/rucio-follower +++ b/bin/rucio-follower @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-hermes b/bin/rucio-hermes index 4ae4c01fd2..ff885aebac 100755 --- a/bin/rucio-hermes +++ b/bin/rucio-hermes @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-judge-cleaner b/bin/rucio-judge-cleaner index 4f6b03c7fd..52a1422bb1 100755 --- a/bin/rucio-judge-cleaner +++ b/bin/rucio-judge-cleaner @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-judge-evaluator b/bin/rucio-judge-evaluator index ef7b954602..fc743b9297 100755 --- a/bin/rucio-judge-evaluator +++ b/bin/rucio-judge-evaluator @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-judge-injector b/bin/rucio-judge-injector index d62c97de66..89193772ae 100755 --- a/bin/rucio-judge-injector +++ b/bin/rucio-judge-injector @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-judge-repairer b/bin/rucio-judge-repairer index 8eeef90730..4fa8bbd15e 100755 --- a/bin/rucio-judge-repairer +++ b/bin/rucio-judge-repairer @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-kronos b/bin/rucio-kronos index c082a74650..3dad3fa310 100755 --- a/bin/rucio-kronos +++ b/bin/rucio-kronos @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-minos b/bin/rucio-minos index 21dc385f3d..ee5fbcd2eb 100755 --- a/bin/rucio-minos +++ b/bin/rucio-minos @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-minos-temporary-expiration b/bin/rucio-minos-temporary-expiration index 653b8fb06c..1b7222c5df 100755 --- a/bin/rucio-minos-temporary-expiration +++ b/bin/rucio-minos-temporary-expiration @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-necromancer b/bin/rucio-necromancer index 19a01cf0ec..19c6bc3f85 100755 --- a/bin/rucio-necromancer +++ b/bin/rucio-necromancer @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-oauth-manager b/bin/rucio-oauth-manager index d4e16e705c..42ac018cca 100755 --- a/bin/rucio-oauth-manager +++ b/bin/rucio-oauth-manager @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-reaper b/bin/rucio-reaper index 711fa836e2..ca54c3c2f9 100755 --- a/bin/rucio-reaper +++ b/bin/rucio-reaper @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-replica-recoverer b/bin/rucio-replica-recoverer index 05fe7d9802..8112408946 100755 --- a/bin/rucio-replica-recoverer +++ b/bin/rucio-replica-recoverer @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-rse-decommissioner b/bin/rucio-rse-decommissioner index 31945eb44b..4a027bfe54 100755 --- a/bin/rucio-rse-decommissioner +++ b/bin/rucio-rse-decommissioner @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-storage-consistency-actions b/bin/rucio-storage-consistency-actions index ec8eda4fdc..05b5d701bb 100755 --- a/bin/rucio-storage-consistency-actions +++ b/bin/rucio-storage-consistency-actions @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-transmogrifier b/bin/rucio-transmogrifier index f38d02f161..9e6d41b618 100755 --- a/bin/rucio-transmogrifier +++ b/bin/rucio-transmogrifier @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/bin/rucio-undertaker b/bin/rucio-undertaker index 15003ff85e..768acc6613 100755 --- a/bin/rucio-undertaker +++ b/bin/rucio-undertaker @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pyproject.toml b/pyproject.toml index 3d7069bd4e..7a3aea538e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,10 @@ build-backend = "setuptools.build_meta" [tool.ruff] line-length = 256 +extend-include = [ + "bin/*", +] + # Exclude a variety of commonly ignored directories. exclude = [ ".bzr", @@ -50,7 +54,5 @@ ignore = [ "UP030", # Use implicit references for positional format fields "UP031", # Use format specifiers instead of percent format "UP032", # Use f-string instead of `format` call - "SIM210", + "SIM210", ] - -extend-safe-fixes = ["I001"] diff --git a/tools/generate-release-notes b/tools/generate-release-notes index e2cdd3b77a..6f853bb4fb 100755 --- a/tools/generate-release-notes +++ b/tools/generate-release-notes @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,10 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json import subprocess import sys + import requests -import json if __name__ == "__main__": requests.packages.urllib3.disable_warnings() From 954c78ac3f8f245347e5628ee2f06067a585fd15 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Wed, 20 Mar 2024 18:20:26 +0100 Subject: [PATCH 12/13] Add .py file extension to generate-release-notes and format flake8 --- ...release-notes => generate-release-notes.py} | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) rename tools/{generate-release-notes => generate-release-notes.py} (93%) diff --git a/tools/generate-release-notes b/tools/generate-release-notes.py similarity index 93% rename from tools/generate-release-notes rename to tools/generate-release-notes.py index 6f853bb4fb..541fec02eb 100755 --- a/tools/generate-release-notes +++ b/tools/generate-release-notes.py @@ -38,6 +38,7 @@ else: milestone_title = arg + def format_issue(issue, doc=False): if not doc: if issue['component']: @@ -57,6 +58,7 @@ def load_milestones(github_token, page=1): params={'state': 'all', 'page': page, 'per_page': '100'}) return json.loads(r.text) + def get_issue_component_type(issue): component = None type_ = 'enhancement' @@ -72,6 +74,7 @@ def get_issue_component_type(issue): type_ = 'feature' return component, type_ + def print_issues(issues, section_title): if not issues: return @@ -118,6 +121,7 @@ def print_issues(issues, section_title): for issue in bugs: print(format_issue(issue, doc=True)) + root_git_dir = subprocess.check_output('git rev-parse --show-toplevel', shell=True).decode("utf-8").rstrip() # Load OAUTH token try: @@ -152,21 +156,21 @@ def print_issues(issues, section_title): # If --backport is specified, we additionally need to scan older issues if option_backport: r = requests.get(url='https://api.github.com/repos/rucio/rucio/issues', - headers={'Authorization': 'token %s' % github_token}, - params={'labels': 'backport', 'state': 'closed', 'per_page': 100}) + headers={'Authorization': 'token %s' % github_token}, + params={'labels': 'backport', 'state': 'closed', 'per_page': 100}) for issue in json.loads(r.text): # Load the comments r = requests.get(url=issue['comments_url'], - headers={'Authorization': 'token %s' % github_token}, - params={'per_page': 100}) + headers={'Authorization': 'token %s' % github_token}, + params={'per_page': 100}) # Iterate comments for comment in json.loads(r.text): if 'backport %s' % milestone_title in comment['body'].lower(): component, type_ = get_issue_component_type(issue) issues.append({'component': component, - 'type': type_, - 'number': issue['number'], - 'title': issue['title']}) + 'type': type_, + 'number': issue['number'], + 'title': issue['title']}) print_issues([issue for issue in issues if issue['component'] not in ['Clients', 'WebUI']], 'General') print_issues([issue for issue in issues if issue['component'] in ['Clients']], 'Clients') From dd0e68eba74e022d0f425d632642553ae4a7f3e4 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Wed, 20 Mar 2024 18:22:51 +0100 Subject: [PATCH 13/13] Mark rucio as first-party dependency for isort and re-sort imports; #6538 rucio is detected as a third-party dependency by default (likely has to do with the project structure or __init__ files). This change configures isort to treat rucio as a first-party dependency, and re-formats the files. --- bin/rucio | 3 ++- bin/rucio-admin | 3 ++- bin/rucio-cache-client | 1 + bin/rucio-dumper | 3 ++- ...b656_add_new_rule_notification_state_progress.py | 1 + .../0f1adb7a599a_create_transfer_hops_table.py | 1 + .../13d4f70c66a9_introduce_transfer_limits.py | 1 + ...d4d803c8_split_rse_availability_into_multiple.py | 3 ++- .../1a29d6a9504c_add_didtype_chck_to_requests.py | 1 + .../1c45d9730ca6_increase_identity_length.py | 1 + .../1d1215494e95_add_quarantined_replicas_table.py | 1 + ...f484df21_asynchronous_rules_and_rule_approval.py | 1 + .../1fc15ab60d43_add_message_history_table.py | 1 + ...0e703eb6e_move_rse_settings_to_rse_attributes.py | 1 + ...9dc9961_add_mismatch_scheme_state_to_requests.py | 1 + .../versions/22d887e4ec0a_create_sources_table.py | 1 + .../277b5fbb41d3_switch_heartbeats_executable.py | 1 + .../versions/2854cd9e168_added_rule_id_column.py | 1 + .../2af3291ec4c_added_replicas_history_table.py | 1 + ...e4a83846_add_source_to_requests_and_requests_.py | 1 + ...ef557_add_naming_convention_table_and_closed_.py | 1 + .../3152492b110b_added_staging_area_column.py | 1 + .../32c7d2783f7e_create_bad_replicas_table.py | 1 + .../379a19b5332d_create_rse_limits_table.py | 1 + .../384b96aa0f60_created_rule_history_tables.py | 1 + ...68b0_create_collection_replicas_updates_table.py | 1 + .../3c9df354071b_extend_waiting_request_state.py | 1 + ...fab443_add_a_new_state_lost_in_badfilesstatus.py | 1 + ...4207be2fd914_add_notification_column_to_rules.py | 1 + .../45378a1e76a8_create_collection_replica_table.py | 1 + .../versions/4783c1f49cb4_create_distance_table.py | 1 + .../versions/4df2c5ddabc0_remove_temporary_dids.py | 1 + .../575767d9f89_added_source_history_table.py | 1 + .../58c8b78301ab_rename_callback_to_message.py | 1 + .../5f139f77382a_added_child_rule_id_column.py | 1 + .../versions/688ef1840840_adding_did_meta_table.py | 1 + ...bf173_add_didsfollowed_and_followevents_table.py | 1 + ...7ec22226cdbf_new_replica_state_for_temporary_.py | 1 + ...2df38_new_table_for_lifetime_model_exceptions.py | 1 + .../versions/9a1b149a2044_add_saml_identity_type.py | 1 + .../versions/9a45bc4ea66d_add_vp_table.py | 1 + .../versions/a08fa8de1545_transfer_stats_table.py | 1 + .../a616581ee47_added_columns_to_table_requests.py | 1 + .../ae2a56fcc89_added_comment_column_to_rules.py | 1 + .../b7d287de34fd_removal_of_replicastate_source.py | 1 + ...1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py | 1 + .../versions/bb695f45c04_extend_request_state.py | 1 + ...a1c1474_correct_pk_and_idx_for_history_tables.py | 1 + .../c0937668555f_add_qos_policy_map_table.py | 1 + ...48206e_add_did_type_column_index_on_did_meta_.py | 1 + ...ebad904c4dd_new_payload_column_for_heartbeats.py | 1 + ...c6e0_oauth2_0_and_jwt_feature_support_adding_.py | 1 + ...23453595260_extend_request_state_for_preparer.py | 1 + .../d91002c5841_new_account_limits_table.py | 1 + .../versions/e59300c8b179_support_for_archive.py | 1 + .../f41ffe206f37_oracle_global_temporary_tables.py | 1 + pyproject.toml | 3 +++ tests/conftest.py | 12 ++++++++---- tests/rsemgr_api_test.py | 1 + tests/temp_factories.py | 3 ++- tests/test_abacus_account.py | 1 + tests/test_abacus_collection_replica.py | 1 + tests/test_abacus_rse.py | 1 + tests/test_account.py | 1 + tests/test_account_limits.py | 1 + tests/test_api_external_representation.py | 1 + tests/test_auditor.py | 1 + tests/test_auditor_hdfs.py | 1 + tests/test_auditor_srmdumps.py | 1 + tests/test_authentication.py | 1 + tests/test_automatix.py | 1 + tests/test_bad_replica.py | 1 + tests/test_bb8.py | 1 + tests/test_belleii.py | 1 + tests/test_bin_rucio.py | 1 + tests/test_clients.py | 2 +- tests/test_config.py | 1 + tests/test_conveyor.py | 4 ++-- tests/test_conveyor_submitter.py | 4 ++-- tests/test_counter.py | 1 + tests/test_credential.py | 1 + tests/test_curl.py | 1 + tests/test_daemons.py | 1 + tests/test_dataset_replicas.py | 3 ++- tests/test_db.py | 3 ++- tests/test_did.py | 1 + tests/test_did_meta_plugins.py | 1 + tests/test_download.py | 1 + tests/test_dumper.py | 1 + tests/test_dumper_data_model.py | 1 + tests/test_filter_engine.py | 1 + tests/test_heartbeat.py | 1 + tests/test_hermes.py | 1 + tests/test_identity.py | 1 + tests/test_impl_upload_download.py | 1 + tests/test_import_export.py | 1 + tests/test_judge_cleaner.py | 1 + tests/test_judge_evaluator.py | 1 + tests/test_judge_injector.py | 1 + tests/test_judge_repairer.py | 1 + tests/test_lifetime.py | 1 + tests/test_message.py | 1 + tests/test_meta_conventions.py | 1 + tests/test_meta_did.py | 1 + tests/test_multi_vo.py | 1 + tests/test_naming_convention.py | 1 + tests/test_oauthmanager.py | 5 +++-- tests/test_oidc.py | 1 + tests/test_preparer.py | 1 + tests/test_quarantined_replica.py | 1 + tests/test_reaper.py | 4 ++-- tests/test_replica.py | 3 ++- tests/test_replica_recoverer.py | 1 + tests/test_replica_sorting.py | 1 + tests/test_request.py | 1 + tests/test_root_proxy.py | 1 + tests/test_rse.py | 1 + tests/test_rse_expression_parser.py | 1 + tests/test_rse_lfn2path.py | 1 + tests/test_rse_protocol_gfal2.py | 1 + tests/test_rse_protocol_gfal2_impl.py | 1 + tests/test_rse_protocol_posix.py | 1 + tests/test_rse_protocol_rclone.py | 1 + tests/test_rse_protocol_rsync.py | 1 + tests/test_rse_protocol_srm.py | 1 + tests/test_rse_protocol_ssh.py | 1 + tests/test_rse_protocol_webdav.py | 1 + tests/test_rse_protocol_xrootd.py | 1 + tests/test_rse_selector.py | 1 + tests/test_rucio_server.py | 1 + tests/test_rule.py | 1 + tests/test_schema_cms.py | 1 + tests/test_scope.py | 1 + tests/test_subscription.py | 1 + tests/test_throttler.py | 3 ++- tests/test_tpc.py | 1 + tests/test_trace.py | 1 + tests/test_transfer.py | 1 + tests/test_transfer_plugins.py | 1 + tests/test_undertaker.py | 1 + tests/test_upload.py | 1 + tests/test_utils.py | 1 + tools/convert_database_vo.py | 13 +++++++------ tools/generate_rest_api_doc.py | 1 + 144 files changed, 173 insertions(+), 28 deletions(-) diff --git a/bin/rucio b/bin/rucio index a5126969c0..acf8c92ad5 100755 --- a/bin/rucio +++ b/bin/rucio @@ -31,6 +31,8 @@ from copy import deepcopy from datetime import datetime from functools import wraps +from tabulate import tabulate + # rucio module has the same name as this executable module, so this rule fails. pylint: disable=no-name-in-module from rucio import version from rucio.client import Client @@ -58,7 +60,6 @@ from rucio.common.exception import ( from rucio.common.extra import import_extras from rucio.common.test_rucio_server import TestRucioServer from rucio.common.utils import Color, StoreAndDeprecateWarningAction, chunks, detect_client_location, extract_scope, parse_did_filter_from_string, parse_did_filter_from_string_fe, setup_logger, sizefmt -from tabulate import tabulate EXTRA_MODULES = import_extras(['argcomplete']) diff --git a/bin/rucio-admin b/bin/rucio-admin index 84fee6bb5c..f635081dab 100755 --- a/bin/rucio-admin +++ b/bin/rucio-admin @@ -28,6 +28,8 @@ from configparser import NoOptionError, NoSectionError from functools import wraps from textwrap import dedent +from tabulate import tabulate + from rucio import version from rucio.client import Client from rucio.common.config import config_get @@ -53,7 +55,6 @@ from rucio.common.exception import ( from rucio.common.extra import import_extras from rucio.common.utils import StoreAndDeprecateWarningAction, chunks, clean_surls, construct_surl, extract_scope, get_bytes_value_from_string, parse_response, render_json, sizefmt from rucio.rse import rsemanager as rsemgr -from tabulate import tabulate EXTRA_MODULES = import_extras(['argcomplete']) diff --git a/bin/rucio-cache-client b/bin/rucio-cache-client index 39004e2a81..17a796fac4 100755 --- a/bin/rucio-cache-client +++ b/bin/rucio-cache-client @@ -26,6 +26,7 @@ import sys import stomp from jsonschema import validate + from rucio.client.didclient import DIDClient from rucio.client.rseclient import RSEClient from rucio.common.config import config_get, config_get_int diff --git a/bin/rucio-dumper b/bin/rucio-dumper index c0654dd9e7..4b1cfb9a1a 100755 --- a/bin/rucio-dumper +++ b/bin/rucio-dumper @@ -18,9 +18,10 @@ import datetime import logging import sys +import tabulate + import rucio.common.dumper.consistency as consistency import rucio.common.dumper.data_models as data_models -import tabulate from rucio.common.dumper import error logger = logging.getLogger('rucio-dumper') diff --git a/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py b/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py index f052c1e053..e9ea39c776 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/01eaf73ab656_add_new_rule_notification_state_progress.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py b/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py index 5949e9ef4d..fa79625142 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/0f1adb7a599a_create_transfer_hops_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py b/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py index 5064dd84a2..207d0c2cea 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py @@ -18,6 +18,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.constants import TransferLimitDirection from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py b/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py index 7e0cea25c7..d31d50228d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1677d4d803c8_split_rse_availability_into_multiple.py @@ -17,9 +17,10 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, drop_column, get_bind -from rucio.db.sqla.types import GUID from sqlalchemy.sql.expression import true +from rucio.db.sqla.types import GUID + # Alembic revision identifiers revision = "1677d4d803c8" down_revision = "fe1a65b176c9" diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py index b7fbda96b8..ecdcf35b1c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1a29d6a9504c_add_didtype_chck_to_requests.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, drop_column + from rucio.db.sqla.constants import DIDType # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py b/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py index e97657a5c0..799a87eba5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1c45d9730ca6_increase_identity_length.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import alter_column, create_check_constraint, create_foreign_key, drop_constraint, execute + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py b/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py index ae90e4ca70..ef00fc8e74 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1d1215494e95_add_quarantined_replicas_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_table + from rucio.common.schema import get_schema_value from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py b/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py index acfe2dbcb2..cfcc2aaae1 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1d96f484df21_asynchronous_rules_and_rule_approval.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, create_check_constraint, drop_column + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py index c79685bc0a..6fd93be5a5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/1fc15ab60d43_add_message_history_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py index 72c37f9595..bf66fc006a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2190e703eb6e_move_rse_settings_to_rse_attributes.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import get_bind + from rucio.db.sqla.types import GUID, BooleanString # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py index 30126f49c3..ee70363c22 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/21d6b9dc9961_add_mismatch_scheme_state_to_requests.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py b/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py index 5e3fe729d0..f12a4f9e3d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py b/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py index 5bf8b973a0..d1fe490a4a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/277b5fbb41d3_switch_heartbeats_executable.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_primary_key, drop_column, drop_constraint + from rucio.db.sqla.models import String # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py b/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py index ec003a4fc2..b93eaf0628 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2854cd9e168_added_rule_id_column.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, drop_column + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py index a2757dfdd2..e7ee8b7808 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2af3291ec4c_added_replicas_history_table.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_constraint, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py b/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py index 2f2b286a15..291d59e946 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/2edee4a83846_add_source_to_requests_and_requests_.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, drop_column + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py b/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py index 62af248031..172e1fec1e 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3082b8cef557_add_naming_convention_table_and_closed_.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_column, drop_table + from rucio.common.schema import get_schema_value from rucio.db.sqla.constants import KeyType diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py b/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py index d3bf7d93d2..1de0c2c6c4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3152492b110b_added_staging_area_column.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, create_check_constraint, drop_column, drop_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py b/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py index 576b3cda1b..2e95ad85c7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/32c7d2783f7e_create_bad_replicas_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py b/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py index e534886bf9..4921523d16 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/379a19b5332d_create_rse_limits_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py index f1da4ed33e..8a274b319f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/384b96aa0f60_created_rule_history_tables.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_index, create_primary_key, create_table, drop_index, drop_table + from rucio.db.sqla.constants import DIDType, RuleGrouping, RuleNotification, RuleState from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py b/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py index bfd29f56bb..6277f84350 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3ad36e2268b0_create_collection_replicas_updates_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_check_constraint, create_index, create_primary_key, create_table, drop_column, drop_constraint, drop_index, drop_table + from rucio.db.sqla.constants import DIDType from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py b/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py index 82021f3517..bcb2fa7ec3 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3c9df354071b_extend_waiting_request_state.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py b/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py index e5f7beb9db..f9039cd5e4 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/3d9813fab443_add_a_new_state_lost_in_badfilesstatus.py @@ -16,6 +16,7 @@ from alembic import context from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py index 9baea20caa..ef655a85d9 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4207be2fd914_add_notification_column_to_rules.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, drop_column + from rucio.db.sqla.constants import RuleNotification from rucio.db.sqla.util import try_drop_constraint diff --git a/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py b/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py index 8e97d1b0ea..32c39482c6 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/45378a1e76a8_create_collection_replica_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.constants import DIDType, ReplicaState from rucio.db.sqla.types import GUID from rucio.db.sqla.util import try_drop_constraint diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py b/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py index 5fb5c946e9..9f2897cf04 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4783c1f49cb4_create_distance_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py b/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py index 7771616a85..1ff7139be2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/4df2c5ddabc0_remove_temporary_dids.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_index, create_primary_key, create_table, drop_table + from rucio.common.schema import get_schema_value from rucio.db.sqla.types import GUID, InternalScopeString diff --git a/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py b/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py index 4040acb62f..7d0506b69f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/575767d9f89_added_source_history_table.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_table, drop_column, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py b/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py index 176ad53ccd..fc2b563f63 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/58c8b78301ab_rename_callback_to_message.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint, create_primary_key, drop_constraint, rename_table + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py b/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py index 7e5454ec3e..4198c387a8 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/5f139f77382a_added_child_rule_id_column.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_foreign_key, create_index, drop_column, drop_constraint, drop_index + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py b/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py index d6d3b9eae8..7c3dca225a 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/688ef1840840_adding_did_meta_table.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_foreign_key, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import JSON # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py b/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py index 7e3cc226e7..fc340b40c7 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/7541902bf173_add_didsfollowed_and_followevents_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.constants import DIDType # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py b/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py index cdfd24dadf..dcc15d6873 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/7ec22226cdbf_new_replica_state_for_temporary_.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py b/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py index 040fcd9811..2c3f9ed70d 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/914b8f02df38_new_table_for_lifetime_model_exceptions.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_primary_key, create_table, drop_table + from rucio.db.sqla.constants import DIDType, LifetimeExceptionsState from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py b/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py index 40475c388c..ea5836c63f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/9a1b149a2044_add_saml_identity_type.py @@ -16,6 +16,7 @@ from alembic import context from alembic.op import create_check_constraint, drop_constraint, execute + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py b/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py index acb69ede8a..57dd66c4c0 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/9a45bc4ea66d_add_vp_table.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_foreign_key, create_primary_key, create_table, drop_table + from rucio.common.schema import get_schema_value from rucio.db.sqla.types import JSON diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py b/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py index d9bc461c34..9c98b27b95 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a08fa8de1545_transfer_stats_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py b/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py index f36809f8ff..28b6b2d15f 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/a616581ee47_added_columns_to_table_requests.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, drop_column + from rucio.db.sqla.models import String # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py b/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py index 9f3c158a2b..161cc42336 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/ae2a56fcc89_added_comment_column_to_rules.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, drop_column + from rucio.db.sqla.models import String # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py b/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py index 538bbc5d7e..f229f571b2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b7d287de34fd_removal_of_replicastate_source.py @@ -16,6 +16,7 @@ from alembic import context, op from alembic.op import create_check_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py b/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py index 25bd74cb07..0061e9ef88 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/b96a1c7e1cc4_new_bad_pfns_table_and_bad_replicas_.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, create_check_constraint, create_foreign_key, create_index, create_primary_key, create_table, drop_column, drop_constraint, drop_index, drop_table + from rucio.db.sqla.constants import BadPFNStatus from rucio.db.sqla.util import try_drop_constraint diff --git a/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py b/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py index 58eefe65fd..fb502a951c 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/bb695f45c04_extend_request_state.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context, op from alembic.op import add_column, create_check_constraint, drop_column, drop_constraint + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py index 8b4a4f269e..328d31efc5 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/bf3baa1c1474_correct_pk_and_idx_for_history_tables.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_primary_key, drop_column, drop_constraint, drop_index + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py b/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py index b4435893d3..eef7f3dab9 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/c0937668555f_add_qos_policy_map_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py b/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py index cc44706f98..917d353df1 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/ccdbcd48206e_add_did_type_column_index_on_did_meta_.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic.context import get_context from alembic.op import add_column, create_index, drop_column, drop_index, execute + from rucio.db.sqla.constants import DIDType from rucio.db.sqla.util import try_drop_constraint diff --git a/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py b/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py index b5532165b2..329d069aa1 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/cebad904c4dd_new_payload_column_for_heartbeats.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_index, drop_column, drop_index + from rucio.db.sqla.models import String # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py b/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py index 2ac9757e74..06ae41f90b 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d1189a09c6e0_oauth2_0_and_jwt_feature_support_adding_.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, alter_column, create_check_constraint, create_index, create_primary_key, create_table, drop_column, drop_table, execute + from rucio.db.sqla.types import InternalAccountString from rucio.db.sqla.util import try_drop_constraint diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py b/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py index bb4b246cf6..d41a57c0b2 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d23453595260_extend_request_state_for_preparer.py @@ -17,6 +17,7 @@ """ from alembic import context, op + from rucio.db.sqla.util import try_drop_constraint # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py b/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py index 026686e22b..b69f939b24 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/d91002c5841_new_account_limits_table.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_check_constraint, create_foreign_key, create_primary_key, create_table, drop_table + from rucio.db.sqla.types import GUID # Alembic revision identifiers diff --git a/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py b/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py index b848254b63..254ce68d45 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/e59300c8b179_support_for_archive.py @@ -19,6 +19,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import add_column, create_foreign_key, create_index, create_primary_key, create_table, drop_column, drop_table + from rucio.db.sqla.models import String from rucio.db.sqla.types import GUID diff --git a/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py b/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py index 96380c25f6..b218999d72 100644 --- a/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py +++ b/lib/rucio/db/sqla/migrate_repo/versions/f41ffe206f37_oracle_global_temporary_tables.py @@ -17,6 +17,7 @@ import sqlalchemy as sa from alembic import context from alembic.op import create_table, drop_table + from rucio.common.schema import get_schema_value from rucio.db.sqla.types import GUID, InternalScopeString, String diff --git a/pyproject.toml b/pyproject.toml index 7a3aea538e..db4c6068fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,3 +56,6 @@ ignore = [ "UP032", # Use f-string instead of `format` call "SIM210", ] + +[tool.ruff.lint.isort] +known-first-party = ["rucio"] diff --git a/tests/conftest.py b/tests/conftest.py index b47feb6e1c..a2ce4c8080 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -171,6 +171,7 @@ def download_client(): @pytest.fixture def rest_client(): from flask.testing import FlaskClient + from rucio.tests.common import print_response from rucio.web.rest.flaskapi.v1.main import application @@ -393,13 +394,14 @@ def __create_in_memory_db_table(name, *columns, **kwargs): """ import datetime - from rucio.db.sqla.models import ModelBase - from rucio.db.sqla.session import create_engine, get_maker from sqlalchemy import CheckConstraint, Column, DateTime from sqlalchemy.orm import registry from sqlalchemy.pool import StaticPool from sqlalchemy.schema import Table + from rucio.db.sqla.models import ModelBase + from rucio.db.sqla.session import create_engine, get_maker + engine = create_engine('sqlite://', connect_args={'check_same_thread': False}, poolclass=StaticPool) # Create a class which inherits from ModelBase. This will allow us to use the rucio-specific methods like .save() @@ -438,9 +440,10 @@ def message_mock(): """ from unittest import mock + from sqlalchemy import Column + from rucio.common.utils import generate_uuid from rucio.db.sqla.models import GUID, CheckConstraint, Index, PrimaryKeyConstraint, String, Text - from sqlalchemy import Column InMemoryMessage = __create_in_memory_db_table( 'message_' + generate_uuid(), @@ -473,10 +476,11 @@ def core_config_mock(request): """ from unittest import mock + from sqlalchemy import Column + from rucio.common.utils import generate_uuid from rucio.db.sqla.models import PrimaryKeyConstraint, String from rucio.db.sqla.session import get_session - from sqlalchemy import Column # Get the fixture parameters table_content = [] diff --git a/tests/rsemgr_api_test.py b/tests/rsemgr_api_test.py index 2276a3272f..47a0ca5ed9 100644 --- a/tests/rsemgr_api_test.py +++ b/tests/rsemgr_api_test.py @@ -20,6 +20,7 @@ from uuid import uuid4 as uuid import pytest + from rucio.common import exception from rucio.common.utils import adler32, md5 from rucio.rse import rsemanager as mgr diff --git a/tests/temp_factories.py b/tests/temp_factories.py index 1cbdd38eb4..00fcf26e35 100644 --- a/tests/temp_factories.py +++ b/tests/temp_factories.py @@ -18,6 +18,8 @@ from random import choice from string import ascii_uppercase +from sqlalchemy import and_, delete, or_ + from rucio.client.client import Client from rucio.client.uploadclient import UploadClient from rucio.common.schema import get_schema_value @@ -30,7 +32,6 @@ from rucio.db.sqla.session import transactional_session from rucio.tests.common import did_name_generator from rucio.tests.common_server import cleanup_db_deps -from sqlalchemy import and_, delete, or_ def _to_external(did): diff --git a/tests/test_abacus_account.py b/tests/test_abacus_account.py index 7569f26993..ca23773e2d 100644 --- a/tests/test_abacus_account.py +++ b/tests/test_abacus_account.py @@ -14,6 +14,7 @@ import pytest + from rucio.common.schema import get_schema_value from rucio.core.account import get_usage_history from rucio.core.account_counter import update_account_counter_history diff --git a/tests/test_abacus_collection_replica.py b/tests/test_abacus_collection_replica.py index e117f1dd56..1d47aa55b7 100644 --- a/tests/test_abacus_collection_replica.py +++ b/tests/test_abacus_collection_replica.py @@ -14,6 +14,7 @@ import pytest + from rucio.common.exception import DataIdentifierNotFound from rucio.common.schema import get_schema_value from rucio.core.did import add_did, get_did diff --git a/tests/test_abacus_rse.py b/tests/test_abacus_rse.py index b5a63f0194..ed0f7e002f 100644 --- a/tests/test_abacus_rse.py +++ b/tests/test_abacus_rse.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.schema import get_schema_value from rucio.core.rse import get_rse_usage from rucio.daemons.abacus.rse import rse_update diff --git a/tests/test_account.py b/tests/test_account.py index 86359a953d..2585707144 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -15,6 +15,7 @@ from json import loads import pytest + from rucio.api.account import account_exists, add_account, del_account, get_account_info, update_account from rucio.common.config import config_get from rucio.common.exception import AccountNotFound, Duplicate, InvalidObject diff --git a/tests/test_account_limits.py b/tests/test_account_limits.py index f73b233ae3..7d9a532507 100644 --- a/tests/test_account_limits.py +++ b/tests/test_account_limits.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.core import account_limit diff --git a/tests/test_api_external_representation.py b/tests/test_api_external_representation.py index dfdf8a540f..0302c454e0 100644 --- a/tests/test_api_external_representation.py +++ b/tests/test_api_external_representation.py @@ -18,6 +18,7 @@ from json import loads import pytest + import rucio.api.account_limit as api_acc_lim import rucio.api.rse as api_rse import rucio.core.account_counter as account_counter diff --git a/tests/test_auditor.py b/tests/test_auditor.py index 4bd7b05644..94f4dbc6c1 100644 --- a/tests/test_auditor.py +++ b/tests/test_auditor.py @@ -21,6 +21,7 @@ from unittest import mock import pytest + from rucio.daemons import auditor diff --git a/tests/test_auditor_hdfs.py b/tests/test_auditor_hdfs.py index 4f6d1a2081..3680d8215c 100644 --- a/tests/test_auditor_hdfs.py +++ b/tests/test_auditor_hdfs.py @@ -18,6 +18,7 @@ from unittest import mock import pytest + from rucio.daemons.auditor import hdfs diff --git a/tests/test_auditor_srmdumps.py b/tests/test_auditor_srmdumps.py index 1e3be3f7b8..2a04e18157 100644 --- a/tests/test_auditor_srmdumps.py +++ b/tests/test_auditor_srmdumps.py @@ -17,6 +17,7 @@ from unittest import mock import pytest + from rucio.daemons.auditor import srmdumps diff --git a/tests/test_authentication.py b/tests/test_authentication.py index d35a8813c8..9491c4632c 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -18,6 +18,7 @@ import pytest from requests import session + from rucio.api.authentication import get_auth_token_saml, get_auth_token_ssh, get_auth_token_user_pass, get_ssh_challenge_token from rucio.common.exception import AccessDenied, CannotAuthenticate, Duplicate from rucio.common.utils import ssh_sign diff --git a/tests/test_automatix.py b/tests/test_automatix.py index 57f0e74241..3d70fc7163 100644 --- a/tests/test_automatix.py +++ b/tests/test_automatix.py @@ -19,6 +19,7 @@ from string import ascii_uppercase import pytest + from rucio.common.config import config_add_section, config_has_section, config_remove_option, config_set from rucio.common.types import InternalScope from rucio.core.did import get_metadata, list_dids, list_files diff --git a/tests/test_bad_replica.py b/tests/test_bad_replica.py index 06a9bc3260..c58c0b6379 100644 --- a/tests/test_bad_replica.py +++ b/tests/test_bad_replica.py @@ -16,6 +16,7 @@ from json import dumps, loads import pytest + from rucio.client.rseclient import RSEClient from rucio.common.exception import InvalidType, RucioException, UnsupportedOperation from rucio.common.utils import clean_surls, generate_uuid diff --git a/tests/test_bb8.py b/tests/test_bb8.py index 081435eae3..49716d08ad 100644 --- a/tests/test_bb8.py +++ b/tests/test_bb8.py @@ -15,6 +15,7 @@ from datetime import datetime, timedelta import pytest + from rucio.common.exception import RuleNotFound, UnsupportedOperation from rucio.core.account_limit import set_local_account_limit from rucio.core.did import attach_dids, set_metadata, set_status diff --git a/tests/test_belleii.py b/tests/test_belleii.py index 41ba7966cd..48cabc1df9 100644 --- a/tests/test_belleii.py +++ b/tests/test_belleii.py @@ -15,6 +15,7 @@ from datetime import datetime import pytest + from rucio.common.exception import InvalidObject from rucio.common.schema.belleii import validate_schema from rucio.common.utils import extract_scope, generate_uuid diff --git a/tests/test_bin_rucio.py b/tests/test_bin_rucio.py index 0b5b707fa4..b543e0bf41 100755 --- a/tests/test_bin_rucio.py +++ b/tests/test_bin_rucio.py @@ -20,6 +20,7 @@ from os import environ, listdir, path, remove, rmdir, stat, unlink import pytest + from rucio.client.accountlimitclient import AccountLimitClient from rucio.client.configclient import ConfigClient from rucio.client.didclient import DIDClient diff --git a/tests/test_clients.py b/tests/test_clients.py index affa544cea..a7ff353a42 100644 --- a/tests/test_clients.py +++ b/tests/test_clients.py @@ -16,12 +16,12 @@ from os import rename import pytest + from rucio.client.baseclient import BaseClient from rucio.client.client import Client from rucio.common.config import Config, config_get, config_set from rucio.common.exception import CannotAuthenticate, ClientProtocolNotSupported, RucioException from rucio.common.utils import execute - from tests.mocks.mock_http_server import MockServer diff --git a/tests/test_config.py b/tests/test_config.py index 2b48ce0cf3..11ec9a86a9 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + import rucio.core.config as core_config from rucio.client.configclient import ConfigClient from rucio.common import exception diff --git a/tests/test_conveyor.py b/tests/test_conveyor.py index cc107239cb..887e5e5668 100644 --- a/tests/test_conveyor.py +++ b/tests/test_conveyor.py @@ -20,6 +20,8 @@ from urllib.parse import parse_qsl, urlencode, urlparse, urlunparse import pytest +from sqlalchemy import update + import rucio.daemons.reaper.reaper from rucio.common.exception import ReplicaNotFound, RequestNotFound from rucio.common.types import InternalAccount @@ -48,8 +50,6 @@ from rucio.db.sqla.session import read_session, transactional_session from rucio.tests.common import skip_rse_tests_with_accounts from rucio.transfertool.fts3 import FTS3Transfertool -from sqlalchemy import update - from tests.mocks.mock_http_server import MockServer from tests.ruciopytest import NoParallelGroups diff --git a/tests/test_conveyor_submitter.py b/tests/test_conveyor_submitter.py index b72f4aaa3a..35cc92df75 100644 --- a/tests/test_conveyor_submitter.py +++ b/tests/test_conveyor_submitter.py @@ -18,6 +18,8 @@ from unittest.mock import patch import pytest +from sqlalchemy import delete + from rucio.common.exception import RequestNotFound from rucio.core import config as core_config from rucio.core import distance as distance_core @@ -30,8 +32,6 @@ from rucio.db.sqla.constants import RequestState from rucio.db.sqla.models import Request, Source from rucio.db.sqla.session import read_session, transactional_session -from sqlalchemy import delete - from tests.ruciopytest import NoParallelGroups diff --git a/tests/test_counter.py b/tests/test_counter.py index 0fe8fdd6b1..9833344bdb 100644 --- a/tests/test_counter.py +++ b/tests/test_counter.py @@ -15,6 +15,7 @@ from time import sleep import pytest + from rucio.core import account_counter, rse_counter from rucio.core.account import get_usage from rucio.daemons.abacus.account import account_update diff --git a/tests/test_credential.py b/tests/test_credential.py index 14ac34f467..efa6e540a1 100644 --- a/tests/test_credential.py +++ b/tests/test_credential.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.exception import UnsupportedOperation from rucio.core.credential import get_signed_url from rucio.core.replica import add_replicas diff --git a/tests/test_curl.py b/tests/test_curl.py index 2d1a1e77e7..f189aff1aa 100644 --- a/tests/test_curl.py +++ b/tests/test_curl.py @@ -16,6 +16,7 @@ import os import pytest + from rucio.common.config import config_get, config_get_bool from rucio.tests.common import account_name_generator, execute, get_long_vo, rse_name_generator diff --git a/tests/test_daemons.py b/tests/test_daemons.py index 56b1d6e5c2..643b1d7d02 100644 --- a/tests/test_daemons.py +++ b/tests/test_daemons.py @@ -15,6 +15,7 @@ from unittest import mock import pytest + import rucio.db.sqla.util from rucio.common import exception from rucio.daemons.abacus import account, collection_replica, rse diff --git a/tests/test_dataset_replicas.py b/tests/test_dataset_replicas.py index 3a4af174d2..ee80558c22 100644 --- a/tests/test_dataset_replicas.py +++ b/tests/test_dataset_replicas.py @@ -13,6 +13,8 @@ # limitations under the License. import pytest +from sqlalchemy.orm.exc import NoResultFound + from rucio.client.didclient import DIDClient from rucio.client.replicaclient import ReplicaClient from rucio.client.ruleclient import RuleClient @@ -24,7 +26,6 @@ from rucio.db.sqla import constants, models from rucio.db.sqla.constants import ReplicaState from rucio.tests.common import did_name_generator, rse_name_generator -from sqlalchemy.orm.exc import NoResultFound class TestDatasetReplicaClient: diff --git a/tests/test_db.py b/tests/test_db.py index 648fb1d332..8f959bfcd3 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -15,9 +15,10 @@ from unittest.mock import patch import pytest +from sqlalchemy import text + from rucio.common.exception import InputValidationError from rucio.db.sqla.session import NullPool, QueuePool, SingletonThreadPool, _get_engine_poolclass, get_session -from sqlalchemy import text def test_db_connection(): diff --git a/tests/test_did.py b/tests/test_did.py index 307cc0c101..9b1a2b64a2 100644 --- a/tests/test_did.py +++ b/tests/test_did.py @@ -15,6 +15,7 @@ from datetime import datetime, timedelta import pytest + from rucio.api import did, scope from rucio.common import exception from rucio.common.exception import DataIdentifierAlreadyExists, DataIdentifierNotFound, FileAlreadyExists, FileConsistencyMismatch, InvalidPath, ScopeNotFound, UnsupportedOperation, UnsupportedStatus diff --git a/tests/test_did_meta_plugins.py b/tests/test_did_meta_plugins.py index 9b9f3057f4..7659c6cdce 100644 --- a/tests/test_did_meta_plugins.py +++ b/tests/test_did_meta_plugins.py @@ -15,6 +15,7 @@ from copy import deepcopy import pytest + from rucio.client.didclient import DIDClient from rucio.common.exception import KeyNotFound from rucio.common.utils import generate_uuid diff --git a/tests/test_download.py b/tests/test_download.py index 378c000fdb..20bf8c2dc7 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -21,6 +21,7 @@ from zipfile import ZipFile import pytest + from rucio.client.downloadclient import DownloadClient, FileDownloadState from rucio.common.config import config_add_section, config_set from rucio.common.exception import InputValidationError, NoFilesDownloaded, RucioException diff --git a/tests/test_dumper.py b/tests/test_dumper.py index 2b34572ba1..ef7ee4f42a 100644 --- a/tests/test_dumper.py +++ b/tests/test_dumper.py @@ -22,6 +22,7 @@ import pytest import requests + from rucio.common import config, dumper from rucio.tests.common import make_temp_file, mock_open diff --git a/tests/test_dumper_data_model.py b/tests/test_dumper_data_model.py index 25cd68f0fa..196a336200 100644 --- a/tests/test_dumper_data_model.py +++ b/tests/test_dumper_data_model.py @@ -19,6 +19,7 @@ import pytest import requests + from rucio.common import dumper from rucio.common.dumper import data_models diff --git a/tests/test_filter_engine.py b/tests/test_filter_engine.py index 7ec609a71a..05e661fcf0 100644 --- a/tests/test_filter_engine.py +++ b/tests/test_filter_engine.py @@ -17,6 +17,7 @@ from datetime import datetime, timedelta import pytest + from rucio.common.exception import DuplicateCriteriaInDIDFilter from rucio.common.utils import generate_uuid from rucio.core.did import add_did diff --git a/tests/test_heartbeat.py b/tests/test_heartbeat.py index e3d2f3e7fe..9aedb6b09b 100644 --- a/tests/test_heartbeat.py +++ b/tests/test_heartbeat.py @@ -17,6 +17,7 @@ from datetime import datetime, timedelta import pytest + from rucio.core.heartbeat import cardiac_arrest, die, list_heartbeats, list_payload_counts, live, sanity_check from rucio.db.sqla.models import Heartbeats from rucio.db.sqla.session import transactional_session diff --git a/tests/test_hermes.py b/tests/test_hermes.py index f10e905a46..ce84a4a3ae 100644 --- a/tests/test_hermes.py +++ b/tests/test_hermes.py @@ -23,6 +23,7 @@ import pytest import requests import stomp + from rucio.common.config import config_get, config_get_int from rucio.core.message import add_message, retrieve_messages, truncate_messages from rucio.daemons.hermes import hermes diff --git a/tests/test_identity.py b/tests/test_identity.py index 997aa38165..86acc526f9 100644 --- a/tests/test_identity.py +++ b/tests/test_identity.py @@ -16,6 +16,7 @@ import string import pytest + from rucio.common.config import config_get_bool from rucio.common.exception import IdentityError, IdentityNotFound from rucio.common.types import InternalAccount diff --git a/tests/test_impl_upload_download.py b/tests/test_impl_upload_download.py index 31afea25bc..49eafe2b1b 100644 --- a/tests/test_impl_upload_download.py +++ b/tests/test_impl_upload_download.py @@ -16,6 +16,7 @@ from os import path import pytest + from rucio.common.utils import execute from rucio.common.utils import generate_uuid as uuid from rucio.tests.common import skip_rse_tests_with_accounts diff --git a/tests/test_import_export.py b/tests/test_import_export.py index bcad63fd3e..01285dbb6b 100644 --- a/tests/test_import_export.py +++ b/tests/test_import_export.py @@ -15,6 +15,7 @@ from copy import deepcopy import pytest + from rucio.client.exportclient import ExportClient from rucio.client.importclient import ImportClient from rucio.common.config import config_add_section, config_has_section, config_set diff --git a/tests/test_judge_cleaner.py b/tests/test_judge_cleaner.py index 4c4a414c44..3249975010 100644 --- a/tests/test_judge_cleaner.py +++ b/tests/test_judge_cleaner.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.config import config_get_bool from rucio.common.types import InternalAccount, InternalScope from rucio.common.utils import generate_uuid as uuid diff --git a/tests/test_judge_evaluator.py b/tests/test_judge_evaluator.py index aa9f582ec1..b133c1459f 100644 --- a/tests/test_judge_evaluator.py +++ b/tests/test_judge_evaluator.py @@ -15,6 +15,7 @@ from typing import TYPE_CHECKING import pytest + from rucio.common.config import config_get_bool from rucio.common.types import InternalAccount, InternalScope from rucio.common.utils import generate_uuid as uuid diff --git a/tests/test_judge_injector.py b/tests/test_judge_injector.py index 636256f612..eafbd0e0bd 100644 --- a/tests/test_judge_injector.py +++ b/tests/test_judge_injector.py @@ -15,6 +15,7 @@ from datetime import datetime, timedelta import pytest + from rucio.common.config import config_get_bool from rucio.common.exception import RuleNotFound from rucio.common.types import InternalAccount, InternalScope diff --git a/tests/test_judge_repairer.py b/tests/test_judge_repairer.py index 25b05a889e..4cf17bdf3e 100644 --- a/tests/test_judge_repairer.py +++ b/tests/test_judge_repairer.py @@ -17,6 +17,7 @@ import pytest from dogpile.cache import make_region + from rucio.common.config import config_get, config_get_bool from rucio.common.types import InternalAccount, InternalScope from rucio.core.account_limit import set_local_account_limit diff --git a/tests/test_lifetime.py b/tests/test_lifetime.py index 06e15ccb60..a2001d601a 100644 --- a/tests/test_lifetime.py +++ b/tests/test_lifetime.py @@ -18,6 +18,7 @@ from datetime import datetime, timedelta import pytest + from rucio.common.exception import ConfigNotFound, UnsupportedOperation from rucio.common.policy import REGION from rucio.common.utils import generate_uuid as uuid diff --git a/tests/test_message.py b/tests/test_message.py index a0d701c3bb..2030a13db0 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -17,6 +17,7 @@ import string import pytest + from rucio.common.constants import MAX_MESSAGE_LENGTH from rucio.common.exception import InvalidObject, RucioException from rucio.common.utils import generate_uuid diff --git a/tests/test_meta_conventions.py b/tests/test_meta_conventions.py index b182faf16d..70aa89685b 100644 --- a/tests/test_meta_conventions.py +++ b/tests/test_meta_conventions.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.exception import InvalidValueForKey, RucioException, UnsupportedKeyType, UnsupportedValueType from rucio.common.utils import generate_uuid as uuid from rucio.core.meta_conventions import add_key diff --git a/tests/test_meta_did.py b/tests/test_meta_did.py index b106eb2592..037956ffe8 100644 --- a/tests/test_meta_did.py +++ b/tests/test_meta_did.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.utils import generate_uuid as uuid diff --git a/tests/test_multi_vo.py b/tests/test_multi_vo.py index bb60ee9231..7d0beaa15a 100644 --- a/tests/test_multi_vo.py +++ b/tests/test_multi_vo.py @@ -23,6 +23,7 @@ import pytest from oic import rndstr + from rucio.api import vo as vo_api from rucio.api.account import add_account, list_accounts from rucio.api.account_limit import set_local_account_limit diff --git a/tests/test_naming_convention.py b/tests/test_naming_convention.py index 54d2ef18d4..59ca818b36 100644 --- a/tests/test_naming_convention.py +++ b/tests/test_naming_convention.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.exception import InvalidObject from rucio.common.types import InternalScope from rucio.common.utils import generate_uuid diff --git a/tests/test_oauthmanager.py b/tests/test_oauthmanager.py index d1ee8c401d..31ec57ac9b 100644 --- a/tests/test_oauthmanager.py +++ b/tests/test_oauthmanager.py @@ -18,11 +18,12 @@ import pytest from oic import rndstr +from sqlalchemy import and_, or_ +from sqlalchemy.sql.expression import true + from rucio.daemons.oauthmanager.oauthmanager import run, stop from rucio.db.sqla import models from rucio.db.sqla.session import get_session -from sqlalchemy import and_, or_ -from sqlalchemy.sql.expression import true new_token_dict = {'access_token': '', 'expires_in': 3599, diff --git a/tests/test_oidc.py b/tests/test_oidc.py index 54e04516a5..7ad0fc1b27 100644 --- a/tests/test_oidc.py +++ b/tests/test_oidc.py @@ -22,6 +22,7 @@ import pytest from jwkest.jwt import JWT from oic import rndstr + from rucio.common.config import config_get_bool from rucio.common.exception import CannotAuthenticate, DatabaseException, Duplicate from rucio.common.types import InternalAccount diff --git a/tests/test_preparer.py b/tests/test_preparer.py index db81c3a6d1..914da6a90e 100644 --- a/tests/test_preparer.py +++ b/tests/test_preparer.py @@ -14,6 +14,7 @@ import pytest + from rucio.core.distance import add_distance, get_distances from rucio.core.replica import add_replicas from rucio.core.request import get_request, list_and_mark_transfer_requests_and_source_replicas, list_transfer_limits, set_transfer_limit diff --git a/tests/test_quarantined_replica.py b/tests/test_quarantined_replica.py index 6daeacb8ad..d37865613a 100644 --- a/tests/test_quarantined_replica.py +++ b/tests/test_quarantined_replica.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.config import config_get_bool from rucio.common.utils import generate_uuid from rucio.core.quarantined_replica import add_quarantined_replicas, delete_quarantined_replicas, list_quarantined_replicas diff --git a/tests/test_reaper.py b/tests/test_reaper.py index b907de4290..9e6fdfa773 100644 --- a/tests/test_reaper.py +++ b/tests/test_reaper.py @@ -15,6 +15,8 @@ from datetime import datetime, timedelta import pytest +from sqlalchemy import and_, or_ + from rucio.api import replica as replica_api from rucio.api import rse as rse_api from rucio.common.exception import DataIdentifierNotFound, ReplicaNotFound @@ -33,8 +35,6 @@ from rucio.db.sqla.models import ConstituentAssociationHistory from rucio.db.sqla.session import get_session, read_session from rucio.tests.common import rse_name_generator, skip_rse_tests_with_accounts -from sqlalchemy import and_, or_ - from tests.ruciopytest import NoParallelGroups __mock_protocol = {'scheme': 'MOCK', diff --git a/tests/test_replica.py b/tests/test_replica.py index 94e5c1b518..c09deecc58 100644 --- a/tests/test_replica.py +++ b/tests/test_replica.py @@ -23,6 +23,8 @@ import pytest import xmltodict +from werkzeug.datastructures import Headers, MultiDict + from rucio.client.ruleclient import RuleClient from rucio.common.exception import AccessDenied, DatabaseException, DataIdentifierNotFound, InputValidationError, ReplicaIsLocked, ReplicaNotFound, RucioException, ScopeNotFound from rucio.common.schema import get_schema_value @@ -38,7 +40,6 @@ from rucio.db.sqla.session import transactional_session from rucio.rse import rsemanager as rsemgr from rucio.tests.common import Mime, accept, auth, did_name_generator, execute, headers -from werkzeug.datastructures import Headers, MultiDict if TYPE_CHECKING: from .temp_factories import TemporaryRSEFactory diff --git a/tests/test_replica_recoverer.py b/tests/test_replica_recoverer.py index 6b9792fdb3..bad4062f5b 100644 --- a/tests/test_replica_recoverer.py +++ b/tests/test_replica_recoverer.py @@ -19,6 +19,7 @@ from time import sleep import pytest + from rucio.core import rse_expression_parser from rucio.core.did import set_metadata from rucio.core.replica import list_bad_replicas_status, list_replicas, update_replica_state diff --git a/tests/test_replica_sorting.py b/tests/test_replica_sorting.py index cf0bc45940..9c39ab1a34 100644 --- a/tests/test_replica_sorting.py +++ b/tests/test_replica_sorting.py @@ -21,6 +21,7 @@ import geoip2.database import pytest + from rucio.common.config import config_get from rucio.common.utils import parse_replicas_from_string from rucio.core import replica_sorter, rse_expression_parser diff --git a/tests/test_request.py b/tests/test_request.py index f0294f47a7..fefaa17026 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -17,6 +17,7 @@ from typing import Union import pytest + from rucio.common.config import config_get_bool from rucio.common.utils import generate_uuid, parse_response from rucio.core.distance import add_distance diff --git a/tests/test_root_proxy.py b/tests/test_root_proxy.py index 7f21b63608..a9ca7bca26 100644 --- a/tests/test_root_proxy.py +++ b/tests/test_root_proxy.py @@ -15,6 +15,7 @@ from urllib.parse import urlencode import pytest + from rucio.core.config import set as config_set from rucio.core.replica import add_replicas, delete_replicas from rucio.core.rse import add_protocol, add_rse, add_rse_attribute, del_rse diff --git a/tests/test_rse.py b/tests/test_rse.py index 0d7f75552d..b4069545f3 100644 --- a/tests/test_rse.py +++ b/tests/test_rse.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.client.replicaclient import ReplicaClient from rucio.common import exception from rucio.common.exception import Duplicate, InputValidationError, InvalidObject, ResourceTemporaryUnavailable, RSEAttributeNotFound, RSENotFound, RSEOperationNotSupported, RSEProtocolNotSupported diff --git a/tests/test_rse_expression_parser.py b/tests/test_rse_expression_parser.py index 85b3ab1f76..18f9e90431 100644 --- a/tests/test_rse_expression_parser.py +++ b/tests/test_rse_expression_parser.py @@ -16,6 +16,7 @@ from string import ascii_lowercase, ascii_uppercase import pytest + from rucio.common.exception import InvalidRSEExpression, RSEWriteBlocked from rucio.core import rse, rse_expression_parser diff --git a/tests/test_rse_lfn2path.py b/tests/test_rse_lfn2path.py index a3131ef9c5..7269f0347a 100644 --- a/tests/test_rse_lfn2path.py +++ b/tests/test_rse_lfn2path.py @@ -17,6 +17,7 @@ from configparser import NoOptionError, NoSectionError import pytest + from rucio.common import config from rucio.rse.protocols.protocol import RSEDeterministicTranslation diff --git a/tests/test_rse_protocol_gfal2.py b/tests/test_rse_protocol_gfal2.py index 024e0e8314..05c3de10ef 100644 --- a/tests/test_rse_protocol_gfal2.py +++ b/tests/test_rse_protocol_gfal2.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import execute from rucio.rse import rsemanager as mgr from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_gfal2_impl.py b/tests/test_rse_protocol_gfal2_impl.py index ee36c7852b..4622638e82 100644 --- a/tests/test_rse_protocol_gfal2_impl.py +++ b/tests/test_rse_protocol_gfal2_impl.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import execute from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_posix.py b/tests/test_rse_protocol_posix.py index 4611d6672c..5a58d1dc22 100644 --- a/tests/test_rse_protocol_posix.py +++ b/tests/test_rse_protocol_posix.py @@ -16,6 +16,7 @@ import shutil import pytest + from rucio.rse import rsemanager as mgr from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_rclone.py b/tests/test_rse_protocol_rclone.py index 2f7895f56b..20dcb59b21 100644 --- a/tests/test_rse_protocol_rclone.py +++ b/tests/test_rse_protocol_rclone.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import PREFERRED_CHECKSUM, execute, set_preferred_checksum from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_rsync.py b/tests/test_rse_protocol_rsync.py index 8af7538f27..4152643cc0 100644 --- a/tests/test_rse_protocol_rsync.py +++ b/tests/test_rse_protocol_rsync.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import PREFERRED_CHECKSUM, execute, set_preferred_checksum from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_srm.py b/tests/test_rse_protocol_srm.py index 57bff73d26..1af552099c 100644 --- a/tests/test_rse_protocol_srm.py +++ b/tests/test_rse_protocol_srm.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import execute from rucio.rse import rsemanager as mgr from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_ssh.py b/tests/test_rse_protocol_ssh.py index 25d6496fc7..6646e14dcc 100644 --- a/tests/test_rse_protocol_ssh.py +++ b/tests/test_rse_protocol_ssh.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import PREFERRED_CHECKSUM, execute, set_preferred_checksum from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_webdav.py b/tests/test_rse_protocol_webdav.py index bbc09bee04..e961aefae0 100644 --- a/tests/test_rse_protocol_webdav.py +++ b/tests/test_rse_protocol_webdav.py @@ -16,6 +16,7 @@ import pytest import requests + from rucio.common.exception import FileReplicaAlreadyExists from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_protocol_xrootd.py b/tests/test_rse_protocol_xrootd.py index 128e9138c6..137c5db01e 100644 --- a/tests/test_rse_protocol_xrootd.py +++ b/tests/test_rse_protocol_xrootd.py @@ -15,6 +15,7 @@ import os import pytest + from rucio.common.utils import execute from rucio.rse import rsemanager from rucio.tests.common import load_test_conf_file, skip_rse_tests_with_accounts diff --git a/tests/test_rse_selector.py b/tests/test_rse_selector.py index 4b8f65c0d5..d698e11cd9 100644 --- a/tests/test_rse_selector.py +++ b/tests/test_rse_selector.py @@ -14,6 +14,7 @@ import pytest + from rucio.common.exception import InsufficientAccountLimit, InsufficientTargetRSEs from rucio.core.account_counter import increase, update_account_counter from rucio.core.account_limit import set_global_account_limit, set_local_account_limit diff --git a/tests/test_rucio_server.py b/tests/test_rucio_server.py index 49484c4a8e..87ff880dce 100644 --- a/tests/test_rucio_server.py +++ b/tests/test_rucio_server.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + import rucio.common.test_rucio_server as server_test diff --git a/tests/test_rule.py b/tests/test_rule.py index bc47cc0bee..13ee4d2f42 100644 --- a/tests/test_rule.py +++ b/tests/test_rule.py @@ -20,6 +20,7 @@ from typing import TYPE_CHECKING import pytest + import rucio.api.rule from rucio.api.account import add_account from rucio.client.ruleclient import RuleClient diff --git a/tests/test_schema_cms.py b/tests/test_schema_cms.py index 16915d5642..8fb83fe9ba 100644 --- a/tests/test_schema_cms.py +++ b/tests/test_schema_cms.py @@ -13,6 +13,7 @@ # limitations under the License. import pytest + from rucio.common.exception import InvalidObject from rucio.common.schema.cms import validate_schema diff --git a/tests/test_scope.py b/tests/test_scope.py index 4f8cde8179..5468824acf 100644 --- a/tests/test_scope.py +++ b/tests/test_scope.py @@ -15,6 +15,7 @@ from json import loads import pytest + from rucio.common.exception import AccountNotFound, Duplicate, InvalidObject, ScopeNotFound from rucio.common.types import InternalScope from rucio.common.utils import generate_uuid as uuid diff --git a/tests/test_subscription.py b/tests/test_subscription.py index fdf5bb9ba8..93b17c3687 100644 --- a/tests/test_subscription.py +++ b/tests/test_subscription.py @@ -17,6 +17,7 @@ from json.decoder import JSONDecodeError import pytest + from rucio.api.subscription import add_subscription, get_subscription_by_id, list_subscription_rule_states, list_subscriptions, update_subscription from rucio.common.exception import InvalidObject, SubscriptionDuplicate, SubscriptionNotFound from rucio.common.schema import get_schema_value diff --git a/tests/test_throttler.py b/tests/test_throttler.py index 437abab06a..26b0105b44 100644 --- a/tests/test_throttler.py +++ b/tests/test_throttler.py @@ -15,6 +15,8 @@ from datetime import datetime, timedelta import pytest +from sqlalchemy import delete + from rucio.common.utils import generate_uuid from rucio.core.did import add_did, attach_dids from rucio.core.distance import add_distance @@ -35,7 +37,6 @@ from rucio.db.sqla.constants import DIDType, RequestState, RequestType, TransferLimitDirection from rucio.db.sqla.session import get_session, transactional_session from rucio.tests.common import skiplimitedsql -from sqlalchemy import delete @pytest.fixture diff --git a/tests/test_tpc.py b/tests/test_tpc.py index 57a85dae21..919786d955 100644 --- a/tests/test_tpc.py +++ b/tests/test_tpc.py @@ -18,6 +18,7 @@ import time import pytest + from rucio.client.rseclient import RSEClient from rucio.client.ruleclient import RuleClient from rucio.common.utils import generate_uuid, run_cmd_process diff --git a/tests/test_trace.py b/tests/test_trace.py index ee861d2701..57473e0162 100644 --- a/tests/test_trace.py +++ b/tests/test_trace.py @@ -19,6 +19,7 @@ import uuid import pytest + from rucio.common.exception import InvalidObject from rucio.common.schema.generic import IPv4orIPv6 from rucio.core.trace import SCHEMAS, validate_schema diff --git a/tests/test_transfer.py b/tests/test_transfer.py index e0651b05e3..e9e1ce3e4e 100644 --- a/tests/test_transfer.py +++ b/tests/test_transfer.py @@ -16,6 +16,7 @@ from concurrent.futures import ThreadPoolExecutor import pytest + from rucio.common.exception import NoDistance from rucio.common.utils import generate_uuid from rucio.core import request as request_core diff --git a/tests/test_transfer_plugins.py b/tests/test_transfer_plugins.py index d62bee6d05..2f665700cd 100644 --- a/tests/test_transfer_plugins.py +++ b/tests/test_transfer_plugins.py @@ -15,6 +15,7 @@ import logging import pytest + from rucio.core import distance as distance_core from rucio.core import replica as replica_core from rucio.core import rule as rule_core diff --git a/tests/test_undertaker.py b/tests/test_undertaker.py index faa7d79787..f1336c8475 100644 --- a/tests/test_undertaker.py +++ b/tests/test_undertaker.py @@ -16,6 +16,7 @@ from logging import getLogger import pytest + from rucio.common.policy import get_policy from rucio.common.types import InternalScope from rucio.core.account_limit import set_local_account_limit diff --git a/tests/test_upload.py b/tests/test_upload.py index 731ba3f337..1ebd050971 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -20,6 +20,7 @@ from unittest.mock import patch import pytest + from rucio.client.uploadclient import UploadClient from rucio.common.config import config_add_section, config_set from rucio.common.exception import InputValidationError, NoFilesUploaded, NotAllFilesUploaded diff --git a/tests/test_utils.py b/tests/test_utils.py index 73c9286266..5bcc9fa1cf 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -18,6 +18,7 @@ from re import match import pytest + from rucio.common.exception import InvalidType from rucio.common.logging import formatted_logger from rucio.common.utils import Availability, adler32, bittorrent_v2_merkle_sha256, md5, parse_did_filter_from_string, retrying diff --git a/tools/convert_database_vo.py b/tools/convert_database_vo.py index fa177319d5..7fbc580569 100755 --- a/tools/convert_database_vo.py +++ b/tools/convert_database_vo.py @@ -24,6 +24,13 @@ from datetime import datetime # noqa: E402 from traceback import format_exc # noqa: E402 +from sqlalchemy import func # noqa: E402 +from sqlalchemy.engine import reflection # noqa: E402 +from sqlalchemy.schema import AddConstraint, DropConstraint, ForeignKeyConstraint, MetaData, Table # noqa: E402 +from sqlalchemy.sql import bindparam # noqa: E402 +from sqlalchemy.sql.expression import cast # noqa: E402 +from sqlalchemy.types import CHAR # noqa: E402 + from rucio.common.config import config_get_bool # noqa: E402 from rucio.common.types import InternalAccount # noqa: E402 from rucio.common.utils import StoreTrueAndDeprecateWarningAction # noqa: E402 @@ -31,12 +38,6 @@ from rucio.core.vo import list_vos # noqa: E402 from rucio.db.sqla import session # noqa: E402 from rucio.db.sqla.util import create_root_account # noqa: E402 -from sqlalchemy import func # noqa: E402 -from sqlalchemy.engine import reflection # noqa: E402 -from sqlalchemy.schema import AddConstraint, DropConstraint, ForeignKeyConstraint, MetaData, Table # noqa: E402 -from sqlalchemy.sql import bindparam # noqa: E402 -from sqlalchemy.sql.expression import cast # noqa: E402 -from sqlalchemy.types import CHAR # noqa: E402 def split_vo(dialect, column, return_vo=False): diff --git a/tools/generate_rest_api_doc.py b/tools/generate_rest_api_doc.py index 965bda521a..665fbba28c 100755 --- a/tools/generate_rest_api_doc.py +++ b/tools/generate_rest_api_doc.py @@ -15,6 +15,7 @@ from apispec import APISpec from apispec_webframeworks.flask import FlaskPlugin + from rucio.vcsversion import VERSION_INFO from rucio.web.rest.flaskapi.v1.main import application