[python-arrayfire] 50/250: Changes required to work on python2

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:30 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 a3553ef7c2e78f28666c739b99915bb3c51fd20e
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Tue Jul 28 19:02:41 2015 -0400

    Changes required to work on python2
---
 arrayfire/broadcast.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/arrayfire/broadcast.py b/arrayfire/broadcast.py
index cc39c69..c8821f5 100644
--- a/arrayfire/broadcast.py
+++ b/arrayfire/broadcast.py
@@ -8,17 +8,19 @@
 ########################################################
 
 
-class bcast(object):
+class _bcast(object):
     _flag = False
-    def get():
+    def get(self):
         return bcast._flag
 
-    def set(flag):
+    def set(self, flag):
         bcast._flag = flag
 
-    def toggle():
+    def toggle(self):
         bcast._flag ^= True
 
+bcast = _bcast()
+
 def broadcast(func, *args):
 
     def wrapper(*func_args):

-- 
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