[Scipy-svn] r6475 - trunk/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Tue Jun 1 19:26:07 EDT 2010
Author: oliphant
Date: 2010-06-01 18:26:07 -0500 (Tue, 01 Jun 2010)
New Revision: 6475
Modified:
trunk/scipy/stats/distributions.py
Log:
Fix Python < 2.6 syntax in the trunk.
Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py 2010-06-01 23:13:36 UTC (rev 6474)
+++ trunk/scipy/stats/distributions.py 2010-06-01 23:26:07 UTC (rev 6475)
@@ -1903,7 +1903,6 @@
return a, b, floc, fscale
else: # do general fit
return super(beta_gen, self).fit(data, *args, **kwds)
-
beta = beta_gen(a=0.0, b=1.0, name='beta',shapes='a, b',extradoc="""
Beta distribution
@@ -5104,7 +5103,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