Skip to content

Commit e5d44cf

Browse files
thedavekwonfacebook-github-bot
authored andcommitted
Rename kUseCAPIUri to kPythonUseCAPIUri
Summary: to make it consistent with other naming Reviewed By: yoney Differential Revision: D66393710 fbshipit-source-id: 26af1ec644c610ff09b25172b2ce6e93b5fae99a
1 parent 438f0e4 commit e5d44cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

thrift/compiler/ast/uri.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ inline constexpr auto kPythonFlagsUri =
135135
"facebook.com/thrift/annotation/python/Flags";
136136
inline constexpr auto kPythonNameUri =
137137
"facebook.com/thrift/annotation/python/Name";
138-
inline constexpr auto kUseCAPIUri =
138+
inline constexpr auto kPythonUseCAPIUri =
139139
"facebook.com/thrift/annotation/python/UseCAPI";
140140

141141
// Hack:

thrift/compiler/generate/t_mstch_python_capi_generator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ class python_capi_mstch_struct : public mstch_struct {
571571

572572
mstch::node marshal_capi() {
573573
const auto marshal_override =
574-
struct_->find_structured_annotation_or_null(kUseCAPIUri);
574+
struct_->find_structured_annotation_or_null(kPythonUseCAPIUri);
575575
auto force_serialize = [marshal_override]() {
576576
const auto serialize_field = marshal_override
577577
? marshal_override->get_value_from_structured_annotation_or_null(

0 commit comments

Comments
 (0)