summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 75a20c2..9daeeb3 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -143,12 +143,15 @@ w_object(v, p)
{
int i, n;
- if (v == NULL)
+ if (v == NULL) {
w_byte(TYPE_NULL, p);
- else if (v == Py_None)
+ }
+ else if (v == Py_None) {
w_byte(TYPE_NONE, p);
- else if (v == Py_Ellipsis)
- w_byte(TYPE_ELLIPSIS, p);
+ }
+ else if (v == Py_Ellipsis) {
+ w_byte(TYPE_ELLIPSIS, p);
+ }
else if (PyInt_Check(v)) {
long x = PyInt_AS_LONG((PyIntObject *)v);
#if SIZEOF_LONG > 4