# HG changeset patch # User David McClosky # Date 1181929292 0 # Node ID 0db89c347000e4d71c6258fd54eb1632ea38f2cb # Parent 430014be95ce1bce43e8ac5e41be8d00c350c1fd Submaster: use leveldict kw where we used to just pass leveldicts diff -r 430014be95ce -r 0db89c347000 light9/Submaster.py --- a/light9/Submaster.py Fri Jun 15 18:06:46 2007 +0000 +++ b/light9/Submaster.py Fri Jun 15 17:41:32 2007 +0000 @@ -246,7 +246,7 @@ def fullsub(*chans): """Make a submaster with chans at full.""" return Submaster('%r' % chans, - dict([(c, 1.0) for c in chans]), temporary=True) + leveldict=dict([(c, 1.0) for c in chans]), temporary=True) # a global instance of Submasters, created on demand _submasters = None @@ -270,14 +270,14 @@ try: val = int(name) - s = Submaster("#%d" % val, {val : 1.0}, temporary=True) + s = Submaster("#%d" % val, leveldict={val : 1.0}, temporary=True) return s except ValueError: pass try: subnum = Patch.get_dmx_channel(name) - s = Submaster("'%s'" % name, {subnum : 1.0}, temporary=True) + s = Submaster("'%s'" % name, leveldict={subnum : 1.0}, temporary=True) return s except ValueError: pass