Sync with GitHub 7418571de67e000d789651dd58177cadae0e32f8 (PY-17437)

This commit is contained in:
Andrey Vlasovskikh
2015-12-16 20:18:41 +03:00
parent b9ababf0f1
commit cbcceaa532
2 changed files with 21 additions and 0 deletions
@@ -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.