[python-arrayfire] 219/250: Fixes typo that prevented setting backend.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:50 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.

commit da1cad5257185196e7bd82824ed9b962b7725c60
Author: Matthew Bergkoetter <mbergkoetter at gmail.com>
Date:   Sun Feb 21 12:29:00 2016 -0500

    Fixes typo that prevented setting backend.
---
 arrayfire/library.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrayfire/library.py b/arrayfire/library.py
index 91ba1af..9748f6c 100644
--- a/arrayfire/library.py
+++ b/arrayfire/library.py
@@ -496,7 +496,7 @@ def set_backend(name, unsafe=False):
     unsafe : optional: bool. Default: False.
            If False, does not switch backend if current backend is not unified backend.
     """
-    if (backend.is_unified() == False and unsanfe == False):
+    if (backend.is_unified() == False and unsafe == False):
         raise RuntimeError("Can not change backend after loading %s" % name)
 
     if (backend.is_unified()):

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



More information about the debian-science-commits mailing list