Skip to content

Commit

Permalink
this appears t obe the actually correct API
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaynor committed Feb 12, 2013
1 parent b7cc766 commit f440f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion topaz/objects/stringobject.py
Expand Up @@ -7,6 +7,7 @@
from rpython.rlib.rbigint import rbigint
from rpython.rlib.rerased import new_static_erasing_pair
from rpython.rlib.rsre import rsre_core
from rpython.rlib.rstring import split

from topaz.module import ClassDef
from topaz.modules.comparable import Comparable
Expand Down Expand Up @@ -516,7 +517,7 @@ def method_split(self, space, w_sep=None, limit=0):
if w_sep is None or space.is_kind_of(w_sep, space.w_string):
sep = space.str_w(w_sep) if w_sep else None
return space.newarray([
space.newstr_fromstr(s) for s in space.str_w(self).split(sep, limit - 1)
space.newstr_fromstr(s) for s in split(space.str_w(self), sep, limit - 1)
])
elif space.is_kind_of(w_sep, space.w_regexp):
results_w = []
Expand Down

0 comments on commit f440f5f

Please sign in to comment.