[Python-modules-commits] [python-pyld] 192/276: Use spread operator instead of apply.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-pyld.

commit 2613fda91e48d42a8e4aef6d612abe28fd9fd64e
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Tue Sep 10 15:04:21 2013 -0400

    Use spread operator instead of apply.
---
 tests/runtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/runtests.py b/tests/runtests.py
index bff80b1..fbc351b 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -172,7 +172,7 @@ class Test(unittest.TestCase):
             expect = data['expect']
 
         try:
-            result = apply(getattr(jsonld, fn), params)
+            result = getattr(jsonld, fn)(*params)
             if self.is_negative:
                 raise AssertionError('Expected an error; one was not raised')
             self.assertEqual(result, expect)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git



More information about the Python-modules-commits mailing list