remove copyright headers from source files

This commit is contained in:
David Hewitt 2023-06-02 08:15:13 +01:00
parent fa949ff627
commit 45b5ede26a
43 changed files with 0 additions and 95 deletions

View File

@ -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)]

View File

@ -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;

View File

@ -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::{

View File

@ -1,5 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use crate::{
method::{FnArg, FnSpec},
pyfunction::FunctionSignature,

View File

@ -1,5 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use std::borrow::Cow;
use crate::attributes::{

View File

@ -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,

View File

@ -1,5 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use std::collections::HashSet;
use crate::{

View File

@ -1,5 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use std::borrow::Cow;
use crate::attributes::NameAttribute;

View File

@ -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};

View File

@ -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.

View File

@ -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};

View File

@ -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")]

View File

@ -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.
//!

View File

@ -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};

View File

@ -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};

View File

@ -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

View File

@ -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};

View File

@ -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.

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
//! Python type object information
use crate::types::{PyAny, PyType};

View File

@ -1,4 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
#[cfg(feature = "experimental-inspect")]
use crate::inspect::types::TypeInfo;
use crate::{

View File

@ -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;

View File

@ -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};

View File

@ -1,5 +1,3 @@
// Copyright (c) 2022-present PyO3 Project and Contributors
use crate::ffi;
use crate::PyAny;

View File

@ -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;

View File

@ -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::{

View File

@ -1,5 +1,3 @@
// Copyright (c) 2022-present PyO3 Project and Contributors
use crate::ffi;
use crate::PyAny;

View File

@ -1,6 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
//
#[cfg(Py_LIMITED_API)]
use crate::types::PyIterator;
use crate::{

View File

@ -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};

View File

@ -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};

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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.

View File

@ -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")]

View File

@ -1,6 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
//
#[cfg(Py_LIMITED_API)]
use crate::types::PyIterator;
use crate::{

View File

@ -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};

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,3 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use std::convert::TryInto;
use crate::ffi::{self, Py_ssize_t};

View File

@ -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};