[py-svn] py-virtualenv commit 24c4fa1656bc: use default argument
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 28 22:46:56 CEST 2009
# HG changeset patch -- Bitbucket.org
# Project py-virtualenv
# URL http://bitbucket.org/RonnyPfannschmidt/py-virtualenv/overview/
# User Benjamin Peterson <benjamin at python.org>
# Date 1253992896 18000
# Node ID 24c4fa1656bc03dbd51841bc803d02526afeb758
# Parent 1cba43c6180ca40ecc6315d8805a4b4714931a69
use default argument
--- 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):
More information about the pytest-commit
mailing list