Skip to content

Commit a3553ef

Browse files
committed
Changes required to work on python2
1 parent 050624a commit a3553ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

arrayfire/broadcast.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
########################################################
99

1010

11-
class bcast(object):
11+
class _bcast(object):
1212
_flag = False
13-
def get():
13+
def get(self):
1414
return bcast._flag
1515

16-
def set(flag):
16+
def set(self, flag):
1717
bcast._flag = flag
1818

19-
def toggle():
19+
def toggle(self):
2020
bcast._flag ^= True
2121

22+
bcast = _bcast()
23+
2224
def broadcast(func, *args):
2325

2426
def wrapper(*func_args):

0 commit comments

Comments
 (0)