From 45b5ede26aa856a171a0c24c58e2150f4151f1e2 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 2 Jun 2023 08:15:13 +0100 Subject: [PATCH] remove copyright headers from source files --- pyo3-macros-backend/src/lib.rs | 1 - pyo3-macros-backend/src/method.rs | 2 -- pyo3-macros-backend/src/module.rs | 1 - pyo3-macros-backend/src/params.rs | 2 -- pyo3-macros-backend/src/pyclass.rs | 2 -- pyo3-macros-backend/src/pyfunction.rs | 2 -- pyo3-macros-backend/src/pyimpl.rs | 2 -- pyo3-macros-backend/src/pymethod.rs | 2 -- pyo3-macros-backend/src/utils.rs | 1 - pyo3-macros/src/lib.rs | 1 - src/callback.rs | 2 -- src/conversion.rs | 2 -- src/conversions/num_bigint.rs | 4 ---- src/derive_utils.rs | 4 ---- src/err/mod.rs | 2 -- src/exceptions.rs | 2 -- src/gil.rs | 2 -- src/impl_/freelist.rs | 2 -- src/instance.rs | 1 - src/marker.rs | 4 ---- src/prelude.rs | 2 -- src/type_object.rs | 1 - src/types/boolobject.rs | 1 - src/types/bytearray.rs | 1 - src/types/capsule.rs | 1 - src/types/code.rs | 2 -- src/types/dict.rs | 2 -- src/types/floatob.rs | 3 --- src/types/frame.rs | 2 -- src/types/frozenset.rs | 3 --- src/types/iterator.rs | 4 ---- src/types/list.rs | 4 ---- src/types/mapping.rs | 2 -- src/types/mod.rs | 2 -- src/types/module.rs | 4 ---- src/types/num.rs | 4 ---- src/types/sequence.rs | 1 - src/types/set.rs | 3 --- src/types/slice.rs | 2 -- src/types/string.rs | 2 -- src/types/traceback.rs | 2 -- src/types/tuple.rs | 2 -- src/types/typeobject.rs | 4 ---- 43 files changed, 95 deletions(-) diff --git a/pyo3-macros-backend/src/lib.rs b/pyo3-macros-backend/src/lib.rs index 1ba9c8ab..61cdbb63 100644 --- a/pyo3-macros-backend/src/lib.rs +++ b/pyo3-macros-backend/src/lib.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors //! This crate contains the implementation of the proc macro attributes #![warn(elided_lifetimes_in_paths, unused_lifetimes)] diff --git a/pyo3-macros-backend/src/method.rs b/pyo3-macros-backend/src/method.rs index 09b8b26d..a867a301 100644 --- a/pyo3-macros-backend/src/method.rs +++ b/pyo3-macros-backend/src/method.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::attributes::{TextSignatureAttribute, TextSignatureAttributeValue}; use crate::deprecations::{Deprecation, Deprecations}; use crate::params::impl_arg_params; diff --git a/pyo3-macros-backend/src/module.rs b/pyo3-macros-backend/src/module.rs index cb2fda00..e6db7007 100644 --- a/pyo3-macros-backend/src/module.rs +++ b/pyo3-macros-backend/src/module.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors //! Code generation for the function that initializes a python module and adds classes and function. use crate::{ diff --git a/pyo3-macros-backend/src/params.rs b/pyo3-macros-backend/src/params.rs index 32a9be5d..b1e85381 100644 --- a/pyo3-macros-backend/src/params.rs +++ b/pyo3-macros-backend/src/params.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::{ method::{FnArg, FnSpec}, pyfunction::FunctionSignature, diff --git a/pyo3-macros-backend/src/pyclass.rs b/pyo3-macros-backend/src/pyclass.rs index 7e7ac6b6..f723da09 100644 --- a/pyo3-macros-backend/src/pyclass.rs +++ b/pyo3-macros-backend/src/pyclass.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use std::borrow::Cow; use crate::attributes::{ diff --git a/pyo3-macros-backend/src/pyfunction.rs b/pyo3-macros-backend/src/pyfunction.rs index 8f56b3e9..53188c7c 100644 --- a/pyo3-macros-backend/src/pyfunction.rs +++ b/pyo3-macros-backend/src/pyfunction.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::{ attributes::{ self, get_pyo3_options, take_attributes, take_pyo3_options, CrateAttribute, diff --git a/pyo3-macros-backend/src/pyimpl.rs b/pyo3-macros-backend/src/pyimpl.rs index d0a1b615..0ab0695e 100644 --- a/pyo3-macros-backend/src/pyimpl.rs +++ b/pyo3-macros-backend/src/pyimpl.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use std::collections::HashSet; use crate::{ diff --git a/pyo3-macros-backend/src/pymethod.rs b/pyo3-macros-backend/src/pymethod.rs index 9689d863..76ebc947 100644 --- a/pyo3-macros-backend/src/pymethod.rs +++ b/pyo3-macros-backend/src/pymethod.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use std::borrow::Cow; use crate::attributes::NameAttribute; diff --git a/pyo3-macros-backend/src/utils.rs b/pyo3-macros-backend/src/utils.rs index c9e02d85..5cffe120 100644 --- a/pyo3-macros-backend/src/utils.rs +++ b/pyo3-macros-backend/src/utils.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors use proc_macro2::{Span, TokenStream}; use quote::ToTokens; use syn::{punctuated::Punctuated, spanned::Spanned, Token}; diff --git a/pyo3-macros/src/lib.rs b/pyo3-macros/src/lib.rs index 38793431..37c7e6e9 100644 --- a/pyo3-macros/src/lib.rs +++ b/pyo3-macros/src/lib.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors //! This crate declares only the proc macro attributes, as a crate defining proc macro attributes //! must not contain any other public items. diff --git a/src/callback.rs b/src/callback.rs index 6d592537..611b1787 100644 --- a/src/callback.rs +++ b/src/callback.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Utilities for a Python callable object that invokes a Rust function. use crate::err::{PyErr, PyResult}; diff --git a/src/conversion.rs b/src/conversion.rs index c5bda16f..85e9f04e 100644 --- a/src/conversion.rs +++ b/src/conversion.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Defines conversions between Rust and Python types. use crate::err::{self, PyDowncastError, PyResult}; #[cfg(feature = "experimental-inspect")] diff --git a/src/conversions/num_bigint.rs b/src/conversions/num_bigint.rs index 08cc0fb1..52ff2149 100644 --- a/src/conversions/num_bigint.rs +++ b/src/conversions/num_bigint.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - #![cfg(feature = "num-bigint")] //! Conversions to and from [num-bigint](https://docs.rs/num-bigint)’s [`BigInt`] and [`BigUint`] types. //! diff --git a/src/derive_utils.rs b/src/derive_utils.rs index 25ea7f89..4ccb38f9 100644 --- a/src/derive_utils.rs +++ b/src/derive_utils.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - //! Functionality for the code generated by the derive backend use crate::{types::PyModule, Python}; diff --git a/src/err/mod.rs b/src/err/mod.rs index 88b03986..9c71b439 100644 --- a/src/err/mod.rs +++ b/src/err/mod.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::panic::PanicException; use crate::type_object::PyTypeInfo; use crate::types::{PyTraceback, PyType}; diff --git a/src/exceptions.rs b/src/exceptions.rs index d92e8b35..9cbc8587 100644 --- a/src/exceptions.rs +++ b/src/exceptions.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Exception and warning types defined by Python. //! //! The structs in this module represent Python's built-in exceptions and diff --git a/src/gil.rs b/src/gil.rs index fa96a910..342c8d92 100644 --- a/src/gil.rs +++ b/src/gil.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Interaction with Python's global interpreter lock use crate::impl_::not_send::{NotSend, NOT_SEND}; diff --git a/src/impl_/freelist.rs b/src/impl_/freelist.rs index d5e3d1f8..955a50a3 100644 --- a/src/impl_/freelist.rs +++ b/src/impl_/freelist.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Support for [free allocation lists][1]. //! //! This can improve performance for types that are often created and deleted in quick succession. diff --git a/src/instance.rs b/src/instance.rs index d3927768..0cbf8dbf 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors use crate::conversion::PyTryFrom; use crate::err::{self, PyDowncastError, PyErr, PyResult}; use crate::gil; diff --git a/src/marker.rs b/src/marker.rs index c6d6fc40..2e6cbe59 100644 --- a/src/marker.rs +++ b/src/marker.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - //! Fundamental properties of objects tied to the Python interpreter. //! //! The Python interpreter is not threadsafe. To protect the Python interpreter in multithreaded diff --git a/src/prelude.rs b/src/prelude.rs index a110ea5c..ca0b0cf3 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! PyO3's prelude. //! //! The purpose of this module is to alleviate imports of many commonly used items of the PyO3 crate diff --git a/src/type_object.rs b/src/type_object.rs index f36abd94..3098b072 100644 --- a/src/type_object.rs +++ b/src/type_object.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors //! Python type object information use crate::types::{PyAny, PyType}; diff --git a/src/types/boolobject.rs b/src/types/boolobject.rs index 80c453a6..919810d2 100644 --- a/src/types/boolobject.rs +++ b/src/types/boolobject.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors #[cfg(feature = "experimental-inspect")] use crate::inspect::types::TypeInfo; use crate::{ diff --git a/src/types/bytearray.rs b/src/types/bytearray.rs index 927c4500..c11af6d7 100644 --- a/src/types/bytearray.rs +++ b/src/types/bytearray.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors use crate::err::{PyErr, PyResult}; use crate::{ffi, AsPyPointer, Py, PyAny, Python}; use std::os::raw::c_char; diff --git a/src/types/capsule.rs b/src/types/capsule.rs index 7da59e73..152ac0ff 100644 --- a/src/types/capsule.rs +++ b/src/types/capsule.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors use crate::Python; use crate::{ffi, AsPyPointer, PyAny}; use crate::{pyobject_native_type_core, PyErr, PyResult}; diff --git a/src/types/code.rs b/src/types/code.rs index fc7e3e9f..c0d0ce83 100644 --- a/src/types/code.rs +++ b/src/types/code.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2022-present PyO3 Project and Contributors - use crate::ffi; use crate::PyAny; diff --git a/src/types/dict.rs b/src/types/dict.rs index 0cf7e6ca..0aedb13a 100644 --- a/src/types/dict.rs +++ b/src/types/dict.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use super::PyMapping; use crate::err::{self, PyErr, PyResult}; use crate::ffi::Py_ssize_t; diff --git a/src/types/floatob.rs b/src/types/floatob.rs index ccf73dd8..82db228d 100644 --- a/src/types/floatob.rs +++ b/src/types/floatob.rs @@ -1,6 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython #[cfg(feature = "experimental-inspect")] use crate::inspect::types::TypeInfo; use crate::{ diff --git a/src/types/frame.rs b/src/types/frame.rs index c16e1439..160f3b3b 100644 --- a/src/types/frame.rs +++ b/src/types/frame.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2022-present PyO3 Project and Contributors - use crate::ffi; use crate::PyAny; diff --git a/src/types/frozenset.rs b/src/types/frozenset.rs index 5b728784..fd2e51aa 100644 --- a/src/types/frozenset.rs +++ b/src/types/frozenset.rs @@ -1,6 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// - #[cfg(Py_LIMITED_API)] use crate::types::PyIterator; use crate::{ diff --git a/src/types/iterator.rs b/src/types/iterator.rs index cfbbd31b..3b45c113 100644 --- a/src/types/iterator.rs +++ b/src/types/iterator.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - use crate::{ffi, AsPyPointer, IntoPyPointer, Py, PyAny, PyErr, PyNativeType, PyResult, Python}; use crate::{PyDowncastError, PyTryFrom}; diff --git a/src/types/list.rs b/src/types/list.rs index 3e801276..5e951c29 100644 --- a/src/types/list.rs +++ b/src/types/list.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - use std::convert::TryInto; use crate::err::{self, PyResult}; diff --git a/src/types/mapping.rs b/src/types/mapping.rs index 602302a9..fa73176d 100644 --- a/src/types/mapping.rs +++ b/src/types/mapping.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::err::{PyDowncastError, PyErr, PyResult}; use crate::sync::GILOnceCell; use crate::type_object::PyTypeInfo; diff --git a/src/types/mod.rs b/src/types/mod.rs index 385d0af6..802a20c6 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - //! Various types defined by the Python interpreter such as `int`, `str` and `tuple`. pub use self::any::PyAny; diff --git a/src/types/module.rs b/src/types/module.rs index 970a22ff..f728d782 100644 --- a/src/types/module.rs +++ b/src/types/module.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - use crate::callback::IntoPyCallbackOutput; use crate::err::{PyErr, PyResult}; use crate::exceptions; diff --git a/src/types/num.rs b/src/types/num.rs index 21f6d72d..52251715 100644 --- a/src/types/num.rs +++ b/src/types/num.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - use crate::{ffi, PyAny}; /// Represents a Python `int` object. diff --git a/src/types/sequence.rs b/src/types/sequence.rs index ccc2d895..73e110cd 100644 --- a/src/types/sequence.rs +++ b/src/types/sequence.rs @@ -1,4 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors use crate::err::{self, PyDowncastError, PyErr, PyResult}; use crate::exceptions::PyTypeError; #[cfg(feature = "experimental-inspect")] diff --git a/src/types/set.rs b/src/types/set.rs index 36774b9a..cf043d99 100644 --- a/src/types/set.rs +++ b/src/types/set.rs @@ -1,6 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// - #[cfg(Py_LIMITED_API)] use crate::types::PyIterator; use crate::{ diff --git a/src/types/slice.rs b/src/types/slice.rs index 61574f64..e82b535a 100644 --- a/src/types/slice.rs +++ b/src/types/slice.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::err::{PyErr, PyResult}; use crate::ffi::{self, Py_ssize_t}; use crate::{AsPyPointer, PyAny, PyObject, Python, ToPyObject}; diff --git a/src/types/string.rs b/src/types/string.rs index 3998a6ad..05b7109f 100644 --- a/src/types/string.rs +++ b/src/types/string.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - #[cfg(not(Py_LIMITED_API))] use crate::exceptions::PyUnicodeDecodeError; use crate::types::PyBytes; diff --git a/src/types/traceback.rs b/src/types/traceback.rs index 7e4393eb..82916558 100644 --- a/src/types/traceback.rs +++ b/src/types/traceback.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use crate::err::{error_on_minusone, PyResult}; use crate::ffi; use crate::types::PyString; diff --git a/src/types/tuple.rs b/src/types/tuple.rs index 3a124d36..429f2d0f 100644 --- a/src/types/tuple.rs +++ b/src/types/tuple.rs @@ -1,5 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors - use std::convert::TryInto; use crate::ffi::{self, Py_ssize_t}; diff --git a/src/types/typeobject.rs b/src/types/typeobject.rs index 00ba62c3..ca4a5cdb 100644 --- a/src/types/typeobject.rs +++ b/src/types/typeobject.rs @@ -1,7 +1,3 @@ -// Copyright (c) 2017-present PyO3 Project and Contributors -// -// based on Daniel Grunwald's https://github.com/dgrunwald/rust-cpython - use crate::err::{self, PyResult}; use crate::{ffi, AsPyPointer, PyAny, PyTypeInfo, Python};