Skip to content

Commit 766ea47

Browse files
committed
Use array.ArrayType instead of types.ArrayType because the latter does not exist in Jython 2.5 anymore
1 parent 0817c70 commit 766ea47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/robot/utils/robottypes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
_LIST_TYPES = [ types.ListType, types.TupleType ]
2525
if os.name == 'java':
26-
_LIST_TYPES.append(types.ArrayType)
26+
import array
27+
_LIST_TYPES.append(array.ArrayType)
2728

2829

2930
def is_list(item):
@@ -89,6 +90,8 @@ def to_list(item):
8990

9091
_type_dict = dict([ (getattr(types,attr), attr) for attr in dir(types)
9192
if not attr.startswith('_') and attr != 'StringTypes' ])
93+
if os.name == 'java':
94+
_type_dict[array.ArrayType] = 'ArrayType'
9295

9396
_printable_type_mapping = {
9497
'StringType' : 'string',

0 commit comments

Comments
 (0)