Skip to content

Commit 6f750e4

Browse files
author
charz
committed
Add Python 2.6 support.
1 parent 3ea8089 commit 6f750e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/testlink/testlinkapigeneric.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,12 @@ def _convertPostionalArgs(self, methodName, valueList):
10261026
(methodName, length_NameList, length_ValueList)
10271027
new_msg = '%s\n expected args: %s' % (new_msg, ', '.join(nameList))
10281028
raise testlinkerrors.TLArgError(new_msg)
1029-
return {nameList[x] : valueList[x] for x in range(len(nameList)) }
1029+
1030+
ret = {}
1031+
for x in range(len(nameList)):
1032+
ret.update({nameList[x] : valueList[x] })
1033+
1034+
return ret
10301035

10311036
def _getAttachmentArgs(self, attachmentfile):
10321037
""" returns dictionary with key/value pairs needed, to transfer

0 commit comments

Comments
 (0)