From cb5bd868d906b106a753ffc929bf37f8d2633272 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 26 Sep 2009 14:21:36 -0500 Subject: [PATCH] use default argument --HG-- branch : trunk --- py/execnet/serializer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py/execnet/serializer.py b/py/execnet/serializer.py index ba24b5904..349ab139e 100755 --- a/py/execnet/serializer.py +++ b/py/execnet/serializer.py @@ -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):