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

Commit

Permalink
[STL] PEP8 code style for 'test_strings.py', 'test_utils.py', 'test_s…
Browse files Browse the repository at this point in the history
…eries.py' (#97)

* pep8 style for 'test_strings.py'; flake8 check successful

* pep8 style for 'test_utils.py'

* pep8 style for 'test_series.py'; more readable

* fixed 'test_string_series'

* removed extra white spaces

* deleted mention of flake8

* trigger build
  • Loading branch information
anmyachev authored and Vyacheslav-Smirnov committed Aug 7, 2019
1 parent a2a8ee5 commit 8641f7a
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

0 comments on commit 8641f7a

Please sign in to comment.