use default argument

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-09-26 14:21:36 -05:00
parent 0f96be372d
commit cb5bd868d9
1 changed files with 1 additions and 3 deletions

View File

@ -165,10 +165,8 @@ class _Stop(Exception):
class Unserializer(object):
def __init__(self, stream, options=None):
def __init__(self, stream, options=UnserializationOptions()):
self.stream = stream
if options is None:
options = UnserializationOptions()
self.options = options
def load(self):