mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
Remove .width() and .iswide() from UserString as well.
This commit is contained in:
parent
e9ddfbb412
commit
4189c643f8
@ -126,10 +126,6 @@ class UserString:
|
||||
def upper(self): return self.__class__(self.data.upper())
|
||||
def zfill(self, width): return self.__class__(self.data.zfill(width))
|
||||
|
||||
# the following methods are defined for unicode objects only:
|
||||
def iswide(self): return self.data.iswide() # unicode only
|
||||
def width(self): return self.data.width() # unicode only
|
||||
|
||||
class MutableString(UserString):
|
||||
"""mutable string objects
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user