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
|
||||
|
||||
#![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::deprecations::{Deprecation, Deprecations};
|
||||
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.
|
||||
|
||||
use crate::{
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use crate::{
|
||||
method::{FnArg, FnSpec},
|
||||
pyfunction::FunctionSignature,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::attributes::{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use std::collections::HashSet;
|
||||
|
||||
use crate::{
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::attributes::NameAttribute;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -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.
|
||||
//!
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
//! Python type object information
|
||||
|
||||
use crate::types::{PyAny, PyType};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
#[cfg(feature = "experimental-inspect")]
|
||||
use crate::inspect::types::TypeInfo;
|
||||
use crate::{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2022-present PyO3 Project and Contributors
|
||||
|
||||
use crate::ffi;
|
||||
use crate::PyAny;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2022-present PyO3 Project and Contributors
|
||||
|
||||
use crate::ffi;
|
||||
use crate::PyAny;
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
//
|
||||
|
||||
#[cfg(Py_LIMITED_API)]
|
||||
use crate::types::PyIterator;
|
||||
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::{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 crate::err::{self, PyResult};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
//
|
||||
|
||||
#[cfg(Py_LIMITED_API)]
|
||||
use crate::types::PyIterator;
|
||||
use crate::{
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2017-present PyO3 Project and Contributors
|
||||
|
||||
use std::convert::TryInto;
|
||||
|
||||
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::{ffi, AsPyPointer, PyAny, PyTypeInfo, Python};
|
||||
|
||||
|
|
Loading…
Reference in a new issue