This repository has been archived by the owner on Sep 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The fix is obtained from here: enthought/comtypes@7d66f3e However we can't use that repository since it contains Python 2 code. Contributes to issue CURA-3823.
- Loading branch information
1 parent
f985cfd
commit 20f8051
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- __init__.py 2017-08-11 14:40:35.464581556 +0200 | ||
+++ __init__2.py 2017-08-11 14:40:47.677067679 +0200 | ||
@@ -655,8 +655,10 @@ | ||
rescode = func(self_, *args, **kw) | ||
# If there is only a single output value, then do not expect it to | ||
# be iterable. | ||
- if len(outargs) == 1: # rescode is not iterable | ||
- return rescode.__ctypes_from_outparam__() | ||
+ if outnum == 1: # rescode is not iterable | ||
+ if len(outargs) == 1: | ||
+ rescode = rescode.__ctypes_from_outparam__() | ||
+ return rescode | ||
|
||
rescode = list(rescode) | ||
for outnum, o in outargs.items(): |