From 930441d103aedd1225fc8294fc12bfad312b82a5 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sat, 15 Jun 2024 10:38:46 -0700 Subject: [PATCH] Cleanup: Systematically change pywrapcc to pybind11k --- docs/classes.rst | 2 +- include/pybind11/detail/class.h | 2 +- include/pybind11/detail/function_record_pyobject.h | 2 +- include/pybind11/detail/internals.h | 2 +- include/pybind11/pybind11.h | 2 +- include/pybind11/stl.h | 4 ++-- tests/test_pickling.cpp | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/classes.rst b/docs/classes.rst index cf3e0ad7..a38ca6ea 100644 --- a/docs/classes.rst +++ b/docs/classes.rst @@ -557,4 +557,4 @@ The ``name`` property returns the name of the enum value as a unicode string. .. note:: ``py::native_enum`` was added as an alternative to ``py::enum_`` - with http://github.com/google/pywrapcc/pull/30005 + with http://github.com/google/pybind11k/pull/30005 diff --git a/include/pybind11/detail/class.h b/include/pybind11/detail/class.h index 3be096f7..b5a2b46a 100644 --- a/include/pybind11/detail/class.h +++ b/include/pybind11/detail/class.h @@ -198,7 +198,7 @@ inline bool ensure_base_init_functions_were_called(PyObject *self) { return true; } -// See google/pywrapcc#30095 for background. +// See google/pybind11k#30095 for background. #if !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_INTERCEPTING_TP_INIT) \ && !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_DEFAULT_PYBIND11_METACLASS) # if !defined(PYPY_VERSION) diff --git a/include/pybind11/detail/function_record_pyobject.h b/include/pybind11/detail/function_record_pyobject.h index e9d42609..92875b99 100644 --- a/include/pybind11/detail/function_record_pyobject.h +++ b/include/pybind11/detail/function_record_pyobject.h @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// For background see the description of PR google/pywrapcc#30099. +// For background see the description of PR google/pybind11k#30099. #pragma once diff --git a/include/pybind11/detail/internals.h b/include/pybind11/detail/internals.h index ca8d89a2..e22c05ea 100644 --- a/include/pybind11/detail/internals.h +++ b/include/pybind11/detail/internals.h @@ -148,7 +148,7 @@ struct internals { # if PYBIND11_INTERNALS_VERSION > 4 // Note that we have to use a std::string to allocate memory to ensure a unique address // We want unique addresses since we use pointer equality to compare function records - // OBSOLETE: google/pywrapcc#30099 + // OBSOLETE: google/pybind11k#30099 std::string function_record_capsule_name = internals_function_record_capsule_name; # endif diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 925e3142..6a6b3b83 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -413,7 +413,7 @@ class cpp_function : public function { if (rec->name == nullptr) { rec->name = guarded_strdup(""); } else if (std::strcmp(rec->name, "__setstate__[non-constructor]") == 0) { - // See google/pywrapcc#30094 for background. + // See google/pybind11k#30094 for background. rec->name = guarded_strdup("__setstate__"); } else { rec->name = guarded_strdup(rec->name); diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 24c354fd..c228b164 100644 --- a/include/pybind11/stl.h +++ b/include/pybind11/stl.h @@ -377,7 +377,7 @@ struct array_caster { bool convert_elements(handle seq, bool convert) { auto l = reinterpret_borrow(seq); value.reset(new ArrayType{}); - // Using `resize` to preserve the behavior exactly as it was before google/pywrapcc#30034 + // Using `resize` to preserve the behavior exactly as it was before google/pybind11k#30034 // For the `resize` to work, `Value` must be default constructible. // For `std::valarray`, this is a requirement: // https://en.cppreference.com/w/cpp/named_req/NumericType @@ -453,7 +453,7 @@ struct array_caster { } // Code copied from PYBIND11_TYPE_CASTER macro. - // Intentionally preserving the behavior exactly as it was before google/pywrapcc#30034 + // Intentionally preserving the behavior exactly as it was before google/pybind11k#30034 template >::value, int> = 0> static handle cast(T_ *src, const return_value_policy_pack &policy, handle parent) { if (!src) { diff --git a/tests/test_pickling.cpp b/tests/test_pickling.cpp index fae2c115..831dd924 100644 --- a/tests/test_pickling.cpp +++ b/tests/test_pickling.cpp @@ -65,7 +65,7 @@ void wrap(py::module m) { namespace exercise_getinitargs_getstate_setstate { -// Exercise `__setstate__[non-constructor]` (see google/pywrapcc#30094), which +// Exercise `__setstate__[non-constructor]` (see google/pybind11k#30094), which // was added to support a pickle protocol as established with Boost.Python // (in 2002): // https://www.boost.org/doc/libs/1_31_0/libs/python/doc/v2/pickle.html @@ -103,7 +103,7 @@ void wrap(py::module m) { }, py::arg("protocol") = -1) .def( - "__setstate__[non-constructor]", // See google/pywrapcc#30094 for background. + "__setstate__[non-constructor]", // See google/pybind11k#30094 for background. [](StoreTwoWithState *self, const std::string &state) { self->SetState(state); }, py::arg("state")); }