Skip to content

Commit 89f70bd

Browse files
committed
Changed Python const RO -> READONLY.
1 parent 6d7916c commit 89f70bd

16 files changed

+49
-49
lines changed

psycopg/adapter_asis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ asis_conform(asisObject *self, PyObject *args)
7474
/* object member list */
7575

7676
static struct PyMemberDef asisObject_members[] = {
77-
{"adapted", T_OBJECT, offsetof(asisObject, wrapped), RO},
77+
{"adapted", T_OBJECT, offsetof(asisObject, wrapped), READONLY},
7878
{NULL}
7979
};
8080

psycopg/adapter_binary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ binary_conform(binaryObject *self, PyObject *args)
149149
/* object member list */
150150

151151
static struct PyMemberDef binaryObject_members[] = {
152-
{"adapted", T_OBJECT, offsetof(binaryObject, wrapped), RO},
153-
{"buffer", T_OBJECT, offsetof(binaryObject, buffer), RO},
152+
{"adapted", T_OBJECT, offsetof(binaryObject, wrapped), READONLY},
153+
{"buffer", T_OBJECT, offsetof(binaryObject, buffer), READONLY},
154154
{NULL}
155155
};
156156

psycopg/adapter_datetime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ pydatetime_conform(pydatetimeObject *self, PyObject *args)
133133
/* object member list */
134134

135135
static struct PyMemberDef pydatetimeObject_members[] = {
136-
{"adapted", T_OBJECT, offsetof(pydatetimeObject, wrapped), RO},
137-
{"type", T_INT, offsetof(pydatetimeObject, type), RO},
136+
{"adapted", T_OBJECT, offsetof(pydatetimeObject, wrapped), READONLY},
137+
{"type", T_INT, offsetof(pydatetimeObject, type), READONLY},
138138
{NULL}
139139
};
140140

psycopg/adapter_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ list_conform(listObject *self, PyObject *args)
136136
/* object member list */
137137

138138
static struct PyMemberDef listObject_members[] = {
139-
{"adapted", T_OBJECT, offsetof(listObject, wrapped), RO},
139+
{"adapted", T_OBJECT, offsetof(listObject, wrapped), READONLY},
140140
{NULL}
141141
};
142142

psycopg/adapter_mxdatetime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ mxdatetime_conform(mxdatetimeObject *self, PyObject *args)
137137
/* object member list */
138138

139139
static struct PyMemberDef mxdatetimeObject_members[] = {
140-
{"adapted", T_OBJECT, offsetof(mxdatetimeObject, wrapped), RO},
141-
{"type", T_INT, offsetof(mxdatetimeObject, type), RO},
140+
{"adapted", T_OBJECT, offsetof(mxdatetimeObject, wrapped), READONLY},
141+
{"type", T_INT, offsetof(mxdatetimeObject, type), READONLY},
142142
{NULL}
143143
};
144144

psycopg/adapter_pboolean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pboolean_conform(pbooleanObject *self, PyObject *args)
8383
/* object member list */
8484

8585
static struct PyMemberDef pbooleanObject_members[] = {
86-
{"adapted", T_OBJECT, offsetof(pbooleanObject, wrapped), RO},
86+
{"adapted", T_OBJECT, offsetof(pbooleanObject, wrapped), READONLY},
8787
{NULL}
8888
};
8989

psycopg/adapter_pdecimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pdecimal_conform(pdecimalObject *self, PyObject *args)
105105
/* object member list */
106106

107107
static struct PyMemberDef pdecimalObject_members[] = {
108-
{"adapted", T_OBJECT, offsetof(pdecimalObject, wrapped), RO},
108+
{"adapted", T_OBJECT, offsetof(pdecimalObject, wrapped), READONLY},
109109
{NULL}
110110
};
111111

psycopg/adapter_pfloat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pfloat_conform(pfloatObject *self, PyObject *args)
7575
/* object member list */
7676

7777
static struct PyMemberDef pfloatObject_members[] = {
78-
{"adapted", T_OBJECT, offsetof(pfloatObject, wrapped), RO},
78+
{"adapted", T_OBJECT, offsetof(pfloatObject, wrapped), READONLY},
7979
{NULL}
8080
};
8181

psycopg/adapter_qstring.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ qstring_conform(qstringObject *self, PyObject *args)
181181
/* object member list */
182182

183183
static struct PyMemberDef qstringObject_members[] = {
184-
{"adapted", T_OBJECT, offsetof(qstringObject, wrapped), RO},
185-
{"buffer", T_OBJECT, offsetof(qstringObject, buffer), RO},
186-
{"encoding", T_STRING, offsetof(qstringObject, encoding), RO},
184+
{"adapted", T_OBJECT, offsetof(qstringObject, wrapped), READONLY},
185+
{"buffer", T_OBJECT, offsetof(qstringObject, buffer), READONLY},
186+
{"encoding", T_STRING, offsetof(qstringObject, encoding), READONLY},
187187
{NULL}
188188
};
189189

psycopg/connection_type.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -787,31 +787,31 @@ static struct PyMethodDef connectionObject_methods[] = {
787787

788788
static struct PyMemberDef connectionObject_members[] = {
789789
#ifdef PSYCOPG_EXTENSIONS
790-
{"closed", T_LONG, offsetof(connectionObject, closed), RO,
790+
{"closed", T_LONG, offsetof(connectionObject, closed), READONLY,
791791
"True if the connection is closed."},
792792
{"isolation_level", T_LONG,
793-
offsetof(connectionObject, isolation_level), RO,
793+
offsetof(connectionObject, isolation_level), READONLY,
794794
"The current isolation level."},
795-
{"encoding", T_STRING, offsetof(connectionObject, encoding), RO,
795+
{"encoding", T_STRING, offsetof(connectionObject, encoding), READONLY,
796796
"The current client encoding."},
797-
{"notices", T_OBJECT, offsetof(connectionObject, notice_list), RO},
798-
{"notifies", T_OBJECT, offsetof(connectionObject, notifies), RO},
799-
{"dsn", T_STRING, offsetof(connectionObject, dsn), RO,
797+
{"notices", T_OBJECT, offsetof(connectionObject, notice_list), READONLY},
798+
{"notifies", T_OBJECT, offsetof(connectionObject, notifies), READONLY},
799+
{"dsn", T_STRING, offsetof(connectionObject, dsn), READONLY,
800800
"The current connection string."},
801-
{"async", T_LONG, offsetof(connectionObject, async), RO,
801+
{"async", T_LONG, offsetof(connectionObject, async), READONLY,
802802
"True if the connection is asynchronous."},
803803
{"status", T_INT,
804-
offsetof(connectionObject, status), RO,
804+
offsetof(connectionObject, status), READONLY,
805805
"The current transaction status."},
806-
{"string_types", T_OBJECT, offsetof(connectionObject, string_types), RO,
806+
{"string_types", T_OBJECT, offsetof(connectionObject, string_types), READONLY,
807807
"A set of typecasters to convert textual values."},
808-
{"binary_types", T_OBJECT, offsetof(connectionObject, binary_types), RO,
808+
{"binary_types", T_OBJECT, offsetof(connectionObject, binary_types), READONLY,
809809
"A set of typecasters to convert binary values."},
810810
{"protocol_version", T_INT,
811-
offsetof(connectionObject, protocol), RO,
811+
offsetof(connectionObject, protocol), READONLY,
812812
"Protocol version used for this connection. Currently always 3."},
813813
{"server_version", T_INT,
814-
offsetof(connectionObject, server_version), RO,
814+
offsetof(connectionObject, server_version), READONLY,
815815
"Server version."},
816816
#endif
817817
{NULL}

0 commit comments

Comments
 (0)