From: Dan White Date: Wed, 17 Oct 2012 05:01:48 +0000 (-0500) Subject: yaml dump likes lists instead of tuples X-Git-Tag: bootrom-initial-submission~61 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=c10ad0d0c2f7af8c69e9735e8f967e95f6003046;p=430.git yaml dump likes lists instead of tuples --- diff --git a/python-lib/usbio.py b/python-lib/usbio.py index 49ea228..df14ebf 100644 --- a/python-lib/usbio.py +++ b/python-lib/usbio.py @@ -1864,8 +1864,8 @@ class DigiReg(AD524x): """Return a dict of settings which can be passed to constructor to restore the state.""" s = super(DigiReg, self).dump_config() - s['va_range'] = (self.va_min, self.va_max) - s['vb_range'] = (self.vb_min, self.vb_max) + s['va_range'] = [self.va_min, self.va_max] + s['vb_range'] = [self.vb_min, self.vb_max] s['aliases'] = self.aliases # saved but not used to restore via __init__() s['va'] = self.va