Commit 5755bc57 authored by Dmitry Trofimov's avatar Dmitry Trofimov
Browse files

Fix condition for Python 2.4 (PY-14437).

parent 33a51d07
Branches unavailable Tags unavailable
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -423,7 +423,10 @@ def array_to_xml(array, roffset, coffset, rows, cols, format):
if rows == 1 and cols == 1:
value = array[0]
else:
dim = col if (rows == 1) else row
if rows == 1:
dim = col
else:
dim = row
value = array[dim]
if "ndarray" in str(type(value)):
value = value[0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment