0
0
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:
Hye-Shik Chang 2004-08-04 08:01:06 +00:00
parent e9ddfbb412
commit 4189c643f8

View File

@ -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