Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Merge 99dc7fb into db2736f
Browse files Browse the repository at this point in the history
  • Loading branch information
anmyachev committed Jul 23, 2019
2 parents db2736f + 99dc7fb commit ad1762a
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 212 deletions.
6 changes: 3 additions & 3 deletions hpat/str_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ def str_overload_noargs(method):
@overload_method(types.UnicodeType, method)
def str_overload(in_str):
def _str_impl(in_str):
with numba.objmode(out='unicode_type'):
with numba.objmode(out='unicode_type'):
out = getattr(in_str, method)()
return out

return _str_impl

for method in str2str_noargs:
str_overload_noargs(method)

# strip string methods that take one argument and return a string
# strip string methods that take one argument and return a string
str2str_1arg = ('lstrip', 'rstrip', 'strip')

def str_overload_1arg(method):
Expand Down
Loading

0 comments on commit ad1762a

Please sign in to comment.