]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't use \ for continuation lines; minor changes.
authorGuido van Rossum <guido@python.org>
Wed, 6 May 1992 09:47:10 +0000 (09:47 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 May 1992 09:47:10 +0000 (09:47 +0000)
Modules/cdmodule.c

index 5e85bccbc4f0f3415edb8ca05535b35a263943e0..40a12fca81cc45e0d0be7c88b749ce3afcaa2635 100644 (file)
@@ -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 *