forked from M-Labs/artiq
1
0
Fork 0

gateware/rtio/core: avoid potential python bug

This commit is contained in:
Sebastien Bourdeauducq 2015-12-26 22:11:57 +08:00
parent 24fa74a8ab
commit 9ba8dfbf23
1 changed files with 6 additions and 1 deletions

View File

@ -290,8 +290,13 @@ class _InputManager(Module):
class Channel: class Channel:
def __init__(self, interface, probes=[], overrides=[], def __init__(self, interface, probes=None, overrides=None,
ofifo_depth=64, ififo_depth=64): ofifo_depth=64, ififo_depth=64):
if probes is None:
probes = []
if overrides is None:
overrides = []
self.interface = interface self.interface = interface
self.probes = probes self.probes = probes
self.overrides = overrides self.overrides = overrides