[Python-modules-commits] [python-pysolar] 05/10: Trimmed syntax on polynomial generator.
Wolfgang Borgert
debacle at moszumanska.debian.org
Fri Oct 3 23:36:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to annotated tag 0.2.1
in repository python-pysolar.
commit b71b1febe466a1b3aba6c0858dad398657fffe0f
Author: Brandon Stafford <brandon at farb.(none)>
Date: Mon Mar 3 10:06:52 2008 -0500
Trimmed syntax on polynomial generator.
---
poly.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/poly.py b/poly.py
index d92c075..b90a286 100644
--- a/poly.py
+++ b/poly.py
@@ -12,7 +12,4 @@ def buildPolyFit((a, b, c, d)):
return (lambda x: a + b * x + c * x ** 2 + (x ** 3) / d)
def buildPolyDict():
- d = {}
- polys = [(name, buildPolyFit(coeffs)) for (name, coeffs) in coeff_list]
- d = dict(polys)
- return d
+ return dict([(name, buildPolyFit(coeffs)) for (name, coeffs) in coeff_list])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pysolar.git
More information about the Python-modules-commits
mailing list