Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
8c373fae
Commit
8c373fae
authored
10 years ago
by
Alexander Marchuk
Browse files
Options
Download
Email Patches
Plain Diff
fix slicing for 1d
parent
6db4766e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/helpers/pydev/pydevd_vars.py
+5
-4
python/helpers/pydev/pydevd_vars.py
with
5 additions
and
4 deletions
+5
-4
python/helpers/pydev/pydevd_vars.py
+
5
-
4
View file @
8c373fae
...
@@ -399,16 +399,17 @@ def array_to_xml(array, roffset, coffset, rows, cols, format):
...
@@ -399,16 +399,17 @@ def array_to_xml(array, roffset, coffset, rows, cols, format):
cols
=
1
cols
=
1
elif
rows
==
1
or
cols
==
1
:
elif
rows
==
1
or
cols
==
1
:
is_row
=
True
if
(
rows
==
1
)
else
False
is_row
=
True
if
(
rows
==
1
)
else
False
pure_1d
=
False
if
(
len
(
array
)
==
1
)
else
True
if
is_row
:
array
=
array
[
roffset
:]
else
:
array
=
array
[
coffset
:]
if
not
pure_1d
:
if
len
(
array
)
==
1
:
array
=
array
[
0
]
array
=
array
[
0
]
if
is_row
:
if
is_row
:
array
=
array
[
coffset
:]
cols
=
min
(
cols
,
len
(
array
))
cols
=
min
(
cols
,
len
(
array
))
else
:
else
:
array
=
array
[
roffset
:]
rows
=
min
(
rows
,
len
(
array
))
rows
=
min
(
rows
,
len
(
array
))
else
:
else
:
array
=
array
[
roffset
:,
coffset
:]
array
=
array
[
roffset
:,
coffset
:]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help