git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e668028
)
- check lists correctly
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 25 Oct 2006 19:33:52 +0000
(19:33 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 25 Oct 2006 19:33:52 +0000
(19:33 +0000)
PLC/Method.py
patch
|
blob
|
history
diff --git
a/PLC/Method.py
b/PLC/Method.py
index
a84f9a2
..
dbe1286
100644
(file)
--- a/
PLC/Method.py
+++ b/
PLC/Method.py
@@
-4,7
+4,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Method.py,v 1.1
1 2006/10/19 21:38:08 tmack
Exp $
+# $Id: Method.py,v 1.1
2 2006/10/25 14:26:08 mlhuang
Exp $
#
import xmlrpclib
#
import xmlrpclib
@@
-320,8
+320,10
@@
class Method:
if isinstance(expected, (list, tuple)):
for i in range(len(value)):
if i >= len(expected):
if isinstance(expected, (list, tuple)):
for i in range(len(value)):
if i >= len(expected):
- i = len(expected) - 1
- self.type_check(name + "[]", value[i], expected[i], args)
+ j = len(expected) - 1
+ else:
+ j = i
+ self.type_check(name + "[]", value[i], expected[j], args)
# If a struct with particular (or required) types of items is
# expected.
# If a struct with particular (or required) types of items is
# expected.