bugfix: handle non-existent default

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2013-12-20 10:56:46 +01:00
parent 67f61eb7ec
commit 8b0eb5766a

View file

@ -48,8 +48,8 @@ class DefaultList(list):
@classmethod
def create(cls, initial=None):
if initial:
initial = initial.split('\n')
return cls(initial)
return cls(initial.split('\n'))
return cls()
class Emulator(object):