[pypy-svn] r25423 - pypy/dist/pypy/objspace/constraint

afayolle at codespeak.net afayolle at codespeak.net
Wed Apr 5 23:29:07 CEST 2006


Author: afayolle
Date: Wed Apr  5 23:29:06 2006
New Revision: 25423

Modified:
   pypy/dist/pypy/objspace/constraint/distributor.py
Log:
added missing constructor to NaiveDistributor

Modified: pypy/dist/pypy/objspace/constraint/distributor.py
==============================================================================
--- pypy/dist/pypy/objspace/constraint/distributor.py	(original)
+++ pypy/dist/pypy/objspace/constraint/distributor.py	Wed Apr  5 23:29:06 2006
@@ -61,6 +61,9 @@
     The first new domain has a size of one,
     and the second has all the other values"""
 
+    def __init__(self, c_space):
+        AbstractDistributor.__init__(self, c_space, 2)
+        
     def _do_distribute(self, domain, choice):
         values = domain.get_values()
         if choice == 0:



More information about the Pypy-commit mailing list