Skip to content

Commit b8420c7

Browse files
authored
Cleanup: Systematically change pywrapcc to pybind11k (#30126)
1 parent cf8345e commit b8420c7

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docs/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,4 +557,4 @@ The ``name`` property returns the name of the enum value as a unicode string.
557557
.. note::
558558

559559
``py::native_enum`` was added as an alternative to ``py::enum_``
560-
with http://github.com/google/pywrapcc/pull/30005
560+
with http://github.com/google/pybind11k/pull/30005

include/pybind11/detail/class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ inline bool ensure_base_init_functions_were_called(PyObject *self) {
198198
return true;
199199
}
200200

201-
// See google/pywrapcc#30095 for background.
201+
// See google/pybind11k#30095 for background.
202202
#if !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_INTERCEPTING_TP_INIT) \
203203
&& !defined(PYBIND11_INIT_SAFETY_CHECKS_VIA_DEFAULT_PYBIND11_METACLASS)
204204
# if !defined(PYPY_VERSION)

include/pybind11/detail/function_record_pyobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// For background see the description of PR google/pywrapcc#30099.
5+
// For background see the description of PR google/pybind11k#30099.
66

77
#pragma once
88

include/pybind11/detail/internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct internals {
148148
# if PYBIND11_INTERNALS_VERSION > 4
149149
// Note that we have to use a std::string to allocate memory to ensure a unique address
150150
// We want unique addresses since we use pointer equality to compare function records
151-
// OBSOLETE: google/pywrapcc#30099
151+
// OBSOLETE: google/pybind11k#30099
152152
std::string function_record_capsule_name = internals_function_record_capsule_name;
153153
# endif
154154

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class cpp_function : public function {
413413
if (rec->name == nullptr) {
414414
rec->name = guarded_strdup("");
415415
} else if (std::strcmp(rec->name, "__setstate__[non-constructor]") == 0) {
416-
// See google/pywrapcc#30094 for background.
416+
// See google/pybind11k#30094 for background.
417417
rec->name = guarded_strdup("__setstate__");
418418
} else {
419419
rec->name = guarded_strdup(rec->name);

include/pybind11/stl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ struct array_caster {
377377
bool convert_elements(handle seq, bool convert) {
378378
auto l = reinterpret_borrow<sequence>(seq);
379379
value.reset(new ArrayType{});
380-
// Using `resize` to preserve the behavior exactly as it was before google/pywrapcc#30034
380+
// Using `resize` to preserve the behavior exactly as it was before google/pybind11k#30034
381381
// For the `resize` to work, `Value` must be default constructible.
382382
// For `std::valarray`, this is a requirement:
383383
// https://en.cppreference.com/w/cpp/named_req/NumericType
@@ -453,7 +453,7 @@ struct array_caster {
453453
}
454454

455455
// Code copied from PYBIND11_TYPE_CASTER macro.
456-
// Intentionally preserving the behavior exactly as it was before google/pywrapcc#30034
456+
// Intentionally preserving the behavior exactly as it was before google/pybind11k#30034
457457
template <typename T_, enable_if_t<std::is_same<ArrayType, remove_cv_t<T_>>::value, int> = 0>
458458
static handle cast(T_ *src, const return_value_policy_pack &policy, handle parent) {
459459
if (!src) {

tests/test_pickling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void wrap(py::module m) {
6565

6666
namespace exercise_getinitargs_getstate_setstate {
6767

68-
// Exercise `__setstate__[non-constructor]` (see google/pywrapcc#30094), which
68+
// Exercise `__setstate__[non-constructor]` (see google/pybind11k#30094), which
6969
// was added to support a pickle protocol as established with Boost.Python
7070
// (in 2002):
7171
// https://www.boost.org/doc/libs/1_31_0/libs/python/doc/v2/pickle.html
@@ -103,7 +103,7 @@ void wrap(py::module m) {
103103
},
104104
py::arg("protocol") = -1)
105105
.def(
106-
"__setstate__[non-constructor]", // See google/pywrapcc#30094 for background.
106+
"__setstate__[non-constructor]", // See google/pybind11k#30094 for background.
107107
[](StoreTwoWithState *self, const std::string &state) { self->SetState(state); },
108108
py::arg("state"));
109109
}

0 commit comments

Comments
 (0)