[python-arrayfire] 221/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 7b9f5ac6e9a0030392933cd8f993f9961845c5e7
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 4854d93..936b840 100644
--- a/arrayfire/library.py
+++ b/arrayfire/library.py
@@ -488,7 +488,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