Skip to content

Commit

Permalink
added bracket for else-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hwrdch committed Nov 23, 2017
1 parent 3d007d1 commit 77c409a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/common/org/python/types/Str.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,9 @@ public org.python.Object __getitem__(org.python.Object index) {
if (slice) {
if (this.value.length() < 2){
throw new org.python.exceptions.IndexError("string index out of range");
} else
} else {
sliced = this.value.substring(1, 2);
}
} else {
sliced = this.value.substring(0, 1);
}
Expand Down

0 comments on commit 77c409a

Please sign in to comment.