Skip to content

Commit 192a043

Browse files
committed
Fix str.count naming
1 parent d49c01a commit 192a043

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_unicode.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_expandtabs_optimization
2929
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_expandtabs_overflows_gracefully
3030
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_extended_getslice
31+
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_find_etc_raise_correct_error_messages
3132
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_fixtype
3233
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_floatformatting
3334
*graalpython.lib-python.3.test.test_unicode.UnicodeTest.test_format_auto_numbering

graalpython/lib-graalpython/str.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def strformat(___self, *___args, **___kwargs):
336336
str.format = strformat
337337

338338

339-
def strcount(self, sub, start=None, end=None):
339+
def count(self, sub, start=None, end=None):
340340
selfLeng = len(self)
341341
subLeng = len(sub)
342342
if start == None:
@@ -365,7 +365,7 @@ def strcount(self, sub, start=None, end=None):
365365
return cnt
366366

367367

368-
str.count = strcount
368+
str.count = count
369369

370370

371371
def encode(self, encoding="utf-8", errors="strict"):

0 commit comments

Comments
 (0)