Skip to content

Commit 8f12ce9

Browse files
Py3 bug fix: integer division in Py.Dict
1 parent 5993910 commit 8f12ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addin/xlpython/xlpyserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def DictFromArray(self, kvpairs):
106106
def Dict(self, *kvpairs):
107107
if len(kvpairs) % 2 != 0:
108108
raise Exception("Arguments must be alternating keys and values.")
109-
n = len(kvpairs) / 2
109+
n = int(len(kvpairs) / 2)
110110
d = {}
111111
for k in range(n):
112112
key = FromVariant(kvpairs[2*k])

0 commit comments

Comments
 (0)