remove copyright headers from source files
This commit is contained in:
parent
fa949ff627
commit
45b5ede26a
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
//! This crate contains the implementation of the proc macro attributes
|
//! This crate contains the implementation of the proc macro attributes
|
||||||
|
|
||||||
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
#![warn(elided_lifetimes_in_paths, unused_lifetimes)]
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::attributes::{TextSignatureAttribute, TextSignatureAttributeValue};
|
use crate::attributes::{TextSignatureAttribute, TextSignatureAttributeValue};
|
||||||
use crate::deprecations::{Deprecation, Deprecations};
|
use crate::deprecations::{Deprecation, Deprecations};
|
||||||
use crate::params::impl_arg_params;
|
use crate::params::impl_arg_params;
|
||||||
|
|
|
@ -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.
|
//! Code generation for the function that initializes a python module and adds classes and function.
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
method::{FnArg, FnSpec},
|
method::{FnArg, FnSpec},
|
||||||
pyfunction::FunctionSignature,
|
pyfunction::FunctionSignature,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
use crate::attributes::{
|
use crate::attributes::{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
attributes::{
|
attributes::{
|
||||||
self, get_pyo3_options, take_attributes, take_pyo3_options, CrateAttribute,
|
self, get_pyo3_options, take_attributes, take_pyo3_options, CrateAttribute,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
use crate::attributes::NameAttribute;
|
use crate::attributes::NameAttribute;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
use proc_macro2::{Span, TokenStream};
|
use proc_macro2::{Span, TokenStream};
|
||||||
use quote::ToTokens;
|
use quote::ToTokens;
|
||||||
use syn::{punctuated::Punctuated, spanned::Spanned, Token};
|
use syn::{punctuated::Punctuated, spanned::Spanned, Token};
|
||||||
|
|
|
@ -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
|
//! This crate declares only the proc macro attributes, as a crate defining proc macro attributes
|
||||||
//! must not contain any other public items.
|
//! must not contain any other public items.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! Utilities for a Python callable object that invokes a Rust function.
|
//! Utilities for a Python callable object that invokes a Rust function.
|
||||||
|
|
||||||
use crate::err::{PyErr, PyResult};
|
use crate::err::{PyErr, PyResult};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! Defines conversions between Rust and Python types.
|
//! Defines conversions between Rust and Python types.
|
||||||
use crate::err::{self, PyDowncastError, PyResult};
|
use crate::err::{self, PyDowncastError, PyResult};
|
||||||
#[cfg(feature = "experimental-inspect")]
|
#[cfg(feature = "experimental-inspect")]
|
||||||
|
|
|
@ -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")]
|
#![cfg(feature = "num-bigint")]
|
||||||
//! Conversions to and from [num-bigint](https://docs.rs/num-bigint)’s [`BigInt`] and [`BigUint`] types.
|
//! Conversions to and from [num-bigint](https://docs.rs/num-bigint)’s [`BigInt`] and [`BigUint`] types.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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
|
//! Functionality for the code generated by the derive backend
|
||||||
|
|
||||||
use crate::{types::PyModule, Python};
|
use crate::{types::PyModule, Python};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::panic::PanicException;
|
use crate::panic::PanicException;
|
||||||
use crate::type_object::PyTypeInfo;
|
use crate::type_object::PyTypeInfo;
|
||||||
use crate::types::{PyTraceback, PyType};
|
use crate::types::{PyTraceback, PyType};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! Exception and warning types defined by Python.
|
//! Exception and warning types defined by Python.
|
||||||
//!
|
//!
|
||||||
//! The structs in this module represent Python's built-in exceptions and
|
//! The structs in this module represent Python's built-in exceptions and
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! Interaction with Python's global interpreter lock
|
//! Interaction with Python's global interpreter lock
|
||||||
|
|
||||||
use crate::impl_::not_send::{NotSend, NOT_SEND};
|
use crate::impl_::not_send::{NotSend, NOT_SEND};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! Support for [free allocation lists][1].
|
//! Support for [free allocation lists][1].
|
||||||
//!
|
//!
|
||||||
//! This can improve performance for types that are often created and deleted in quick succession.
|
//! This can improve performance for types that are often created and deleted in quick succession.
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
use crate::conversion::PyTryFrom;
|
use crate::conversion::PyTryFrom;
|
||||||
use crate::err::{self, PyDowncastError, PyErr, PyResult};
|
use crate::err::{self, PyDowncastError, PyErr, PyResult};
|
||||||
use crate::gil;
|
use crate::gil;
|
||||||
|
|
|
@ -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.
|
//! Fundamental properties of objects tied to the Python interpreter.
|
||||||
//!
|
//!
|
||||||
//! The Python interpreter is not threadsafe. To protect the Python interpreter in multithreaded
|
//! The Python interpreter is not threadsafe. To protect the Python interpreter in multithreaded
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
//! PyO3's prelude.
|
//! PyO3's prelude.
|
||||||
//!
|
//!
|
||||||
//! The purpose of this module is to alleviate imports of many commonly used items of the PyO3 crate
|
//! The purpose of this module is to alleviate imports of many commonly used items of the PyO3 crate
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
//! Python type object information
|
//! Python type object information
|
||||||
|
|
||||||
use crate::types::{PyAny, PyType};
|
use crate::types::{PyAny, PyType};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
#[cfg(feature = "experimental-inspect")]
|
#[cfg(feature = "experimental-inspect")]
|
||||||
use crate::inspect::types::TypeInfo;
|
use crate::inspect::types::TypeInfo;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
use crate::err::{PyErr, PyResult};
|
use crate::err::{PyErr, PyResult};
|
||||||
use crate::{ffi, AsPyPointer, Py, PyAny, Python};
|
use crate::{ffi, AsPyPointer, Py, PyAny, Python};
|
||||||
use std::os::raw::c_char;
|
use std::os::raw::c_char;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
use crate::Python;
|
use crate::Python;
|
||||||
use crate::{ffi, AsPyPointer, PyAny};
|
use crate::{ffi, AsPyPointer, PyAny};
|
||||||
use crate::{pyobject_native_type_core, PyErr, PyResult};
|
use crate::{pyobject_native_type_core, PyErr, PyResult};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2022-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::ffi;
|
use crate::ffi;
|
||||||
use crate::PyAny;
|
use crate::PyAny;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use super::PyMapping;
|
use super::PyMapping;
|
||||||
use crate::err::{self, PyErr, PyResult};
|
use crate::err::{self, PyErr, PyResult};
|
||||||
use crate::ffi::Py_ssize_t;
|
use crate::ffi::Py_ssize_t;
|
||||||
|
|
|
@ -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")]
|
#[cfg(feature = "experimental-inspect")]
|
||||||
use crate::inspect::types::TypeInfo;
|
use crate::inspect::types::TypeInfo;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2022-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::ffi;
|
use crate::ffi;
|
||||||
use crate::PyAny;
|
use crate::PyAny;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
//
|
|
||||||
|
|
||||||
#[cfg(Py_LIMITED_API)]
|
#[cfg(Py_LIMITED_API)]
|
||||||
use crate::types::PyIterator;
|
use crate::types::PyIterator;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -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::{ffi, AsPyPointer, IntoPyPointer, Py, PyAny, PyErr, PyNativeType, PyResult, Python};
|
||||||
use crate::{PyDowncastError, PyTryFrom};
|
use crate::{PyDowncastError, PyTryFrom};
|
||||||
|
|
||||||
|
|
|
@ -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 std::convert::TryInto;
|
||||||
|
|
||||||
use crate::err::{self, PyResult};
|
use crate::err::{self, PyResult};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::err::{PyDowncastError, PyErr, PyResult};
|
use crate::err::{PyDowncastError, PyErr, PyResult};
|
||||||
use crate::sync::GILOnceCell;
|
use crate::sync::GILOnceCell;
|
||||||
use crate::type_object::PyTypeInfo;
|
use crate::type_object::PyTypeInfo;
|
||||||
|
|
|
@ -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`.
|
//! Various types defined by the Python interpreter such as `int`, `str` and `tuple`.
|
||||||
|
|
||||||
pub use self::any::PyAny;
|
pub use self::any::PyAny;
|
||||||
|
|
|
@ -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::callback::IntoPyCallbackOutput;
|
||||||
use crate::err::{PyErr, PyResult};
|
use crate::err::{PyErr, PyResult};
|
||||||
use crate::exceptions;
|
use crate::exceptions;
|
||||||
|
|
|
@ -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};
|
use crate::{ffi, PyAny};
|
||||||
|
|
||||||
/// Represents a Python `int` object.
|
/// Represents a Python `int` object.
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
use crate::err::{self, PyDowncastError, PyErr, PyResult};
|
use crate::err::{self, PyDowncastError, PyErr, PyResult};
|
||||||
use crate::exceptions::PyTypeError;
|
use crate::exceptions::PyTypeError;
|
||||||
#[cfg(feature = "experimental-inspect")]
|
#[cfg(feature = "experimental-inspect")]
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
//
|
|
||||||
|
|
||||||
#[cfg(Py_LIMITED_API)]
|
#[cfg(Py_LIMITED_API)]
|
||||||
use crate::types::PyIterator;
|
use crate::types::PyIterator;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::err::{PyErr, PyResult};
|
use crate::err::{PyErr, PyResult};
|
||||||
use crate::ffi::{self, Py_ssize_t};
|
use crate::ffi::{self, Py_ssize_t};
|
||||||
use crate::{AsPyPointer, PyAny, PyObject, Python, ToPyObject};
|
use crate::{AsPyPointer, PyAny, PyObject, Python, ToPyObject};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
#[cfg(not(Py_LIMITED_API))]
|
#[cfg(not(Py_LIMITED_API))]
|
||||||
use crate::exceptions::PyUnicodeDecodeError;
|
use crate::exceptions::PyUnicodeDecodeError;
|
||||||
use crate::types::PyBytes;
|
use crate::types::PyBytes;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use crate::err::{error_on_minusone, PyResult};
|
use crate::err::{error_on_minusone, PyResult};
|
||||||
use crate::ffi;
|
use crate::ffi;
|
||||||
use crate::types::PyString;
|
use crate::types::PyString;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
|
||||||
|
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
|
|
||||||
use crate::ffi::{self, Py_ssize_t};
|
use crate::ffi::{self, Py_ssize_t};
|
||||||
|
|
|
@ -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::err::{self, PyResult};
|
||||||
use crate::{ffi, AsPyPointer, PyAny, PyTypeInfo, Python};
|
use crate::{ffi, AsPyPointer, PyAny, PyTypeInfo, Python};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue