mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Sync with GitHub 7418571de67e000d789651dd58177cadae0e32f8 (PY-17437)
This commit is contained in:
@@ -1351,6 +1351,13 @@ class str(basestring):
|
||||
"""
|
||||
return 0
|
||||
|
||||
def format(self, *args, **kwargs):
|
||||
"""Perform a string formatting operation.
|
||||
|
||||
:rtype: string
|
||||
"""
|
||||
return ''
|
||||
|
||||
def index(self, sub, start=None, end=None):
|
||||
"""Like find(), but raise ValueError when the substring is not
|
||||
found.
|
||||
@@ -1734,6 +1741,13 @@ class unicode(basestring):
|
||||
"""
|
||||
return 0
|
||||
|
||||
def format(self, *args, **kwargs):
|
||||
"""Perform a string formatting operation.
|
||||
|
||||
:rtype: unicode
|
||||
"""
|
||||
return ''
|
||||
|
||||
def index(self, sub, start=None, end=None):
|
||||
"""Like find(), but raise ValueError when the substring is not
|
||||
found.
|
||||
|
||||
@@ -1424,6 +1424,13 @@ class str(object):
|
||||
"""
|
||||
return 0
|
||||
|
||||
def format(self, *args, **kwargs):
|
||||
"""Perform a string formatting operation.
|
||||
|
||||
:rtype: str
|
||||
"""
|
||||
return ''
|
||||
|
||||
def index(self, sub, start=None, end=None):
|
||||
"""Like find(), but raise ValueError when the substring is not
|
||||
found.
|
||||
|
||||
Reference in New Issue
Block a user