[Scipy-svn] r6461 - branches/0.8.x/scipy/stats

scipy-svn at scipy.org scipy-svn at scipy.org
Mon May 31 19:51:47 EDT 2010


Author: oliphant
Date: 2010-05-31 18:51:46 -0500 (Mon, 31 May 2010)
New Revision: 6461

Modified:
   branches/0.8.x/scipy/stats/distributions.py
Log:
Fix syntax for Python < 2.6

Modified: branches/0.8.x/scipy/stats/distributions.py
===================================================================
--- branches/0.8.x/scipy/stats/distributions.py	2010-05-31 23:49:24 UTC (rev 6460)
+++ branches/0.8.x/scipy/stats/distributions.py	2010-05-31 23:51:46 UTC (rev 6461)
@@ -5024,7 +5024,7 @@
 
         signature = inspect.getargspec(self._stats.im_func)
         if (signature[2] is not None) or ('moments' in signature[0]):
-            mu, mu2, g1, g2 = self._stats(*args,moments=moments)
+            mu, mu2, g1, g2 = self._stats(*args,**{'moments':moments})
         else:
             mu, mu2, g1, g2 = self._stats(*args)
         if g1 is None:




More information about the Scipy-svn mailing list