Skip to content

Commit cbcdff7

Browse files
committed
Don't use \ for continuation lines; minor changes.
1 parent a3cd071 commit cbcdff7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Modules/cdmodule.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ CD_getvolume(self, args)
100100
return NULL;
101101
}
102102
#endif
103-
104-
return mkvalue("(iiiii)", CDgetvolume(self->ob_cdplayer, &vol), \
103+
retval = CDgetvolume(self->ob_cdplayer, &vol);
104+
return mkvalue("(iiiii)", retval,
105105
vol.chan0, vol.chan1, vol.chan2, vol.chan3);
106106
}
107107

@@ -115,17 +115,11 @@ CD_setvolume(self, args)
115115

116116
CheckPlayer(self);
117117

118-
if (!getargs(args, "(bbbb)", &vol.chan0, &vol.chan1, \
118+
if (!getargs(args, "(bbbb)", &vol.chan0, &vol.chan1,
119119
&vol.chan2, &vol.chan3))
120120
return NULL;
121121

122-
if (!CDsetvolume(self->ob_cdplayer, &vol)) {
123-
err_setstr(RuntimeError, "setvolume failed");
124-
return NULL;
125-
}
126-
127-
INCREF(None);
128-
return None;
122+
return newintobject(CDsetvolume(self->ob_cdplayer, &vol));
129123
}
130124

131125
static object *

0 commit comments

Comments
 (0)