Skip to content

Commit

Permalink
trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hwrdch committed Dec 9, 2017
1 parent bb70ebd commit 5054bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/common/org/python/types/Str.java
Original file line number Diff line number Diff line change
@@ -1412,7 +1412,7 @@ public org.python.Object rsplit(org.python.Object sep, org.python.Object maxspli
temp = j;
result_list.insert(new org.python.types.Int(0), new org.python.types.Str(sb.toString()));
break;
}
}
else {
sb.insert(0, value.charAt(j));
}
@@ -1422,7 +1422,7 @@ public org.python.Object rsplit(org.python.Object sep, org.python.Object maxspli
result_list.insert(new org.python.types.Int(0), new org.python.types.Str(value.substring(0,j+1)));
}
}
else { //handles non-whitespace and non-default whitespace delimiters (Ex. rsplit("e",12) rsplit(" ",2))
else { //handles non-whitespace and non-default whitespace delimiters (Ex. rsplit("e",12) rsplit(" ",2))
int lastIndex = 0, count = 0, number = 0;
while(lastIndex != -1) {
lastIndex = value.indexOf(sepStr,lastIndex);

0 comments on commit 5054bad

Please sign in to comment.