From: Guido van Rossum Date: Wed, 6 May 1992 09:47:10 +0000 (+0000) Subject: Don't use \ for continuation lines; minor changes. X-Git-Tag: v0.9.8~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbcdff7fcfaaa03710fcc9590b8d79e22315aff2;p=thirdparty%2FPython%2Fcpython.git Don't use \ for continuation lines; minor changes. --- diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index 5e85bccbc4f0..40a12fca81cc 100644 --- a/Modules/cdmodule.c +++ b/Modules/cdmodule.c @@ -100,8 +100,8 @@ CD_getvolume(self, args) return NULL; } #endif - - return mkvalue("(iiiii)", CDgetvolume(self->ob_cdplayer, &vol), \ + retval = CDgetvolume(self->ob_cdplayer, &vol); + return mkvalue("(iiiii)", retval, vol.chan0, vol.chan1, vol.chan2, vol.chan3); } @@ -115,17 +115,11 @@ CD_setvolume(self, args) CheckPlayer(self); - if (!getargs(args, "(bbbb)", &vol.chan0, &vol.chan1, \ + if (!getargs(args, "(bbbb)", &vol.chan0, &vol.chan1, &vol.chan2, &vol.chan3)) return NULL; - if (!CDsetvolume(self->ob_cdplayer, &vol)) { - err_setstr(RuntimeError, "setvolume failed"); - return NULL; - } - - INCREF(None); - return None; + return newintobject(CDsetvolume(self->ob_cdplayer, &vol)); } static object *