diff options
author | Guido van Rossum <guido@python.org> | 1992-05-06 09:47:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-05-06 09:47:10 (GMT) |
commit | cbcdff7fcfaaa03710fcc9590b8d79e22315aff2 (patch) | |
tree | b8538fefa862f9e8c1183ecded151ea4258ab8e3 /Modules | |
parent | a3cd071e4c105d672ff8719e84f509e8b1d8bd35 (diff) | |
download | cpython-cbcdff7fcfaaa03710fcc9590b8d79e22315aff2.zip cpython-cbcdff7fcfaaa03710fcc9590b8d79e22315aff2.tar.gz cpython-cbcdff7fcfaaa03710fcc9590b8d79e22315aff2.tar.bz2 |
Don't use \ for continuation lines; minor changes.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cdmodule.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index 5e85bcc..40a12fc 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 * |