From 6838c557faaffc9fb54091dd3fa8e37ca70ab069 Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Fri, 4 Jun 2004 04:23:29 +0000 Subject: =?UTF-8?q?Add=20comments=20for=20unicode-only=20methods=20to=20gi?= =?UTF-8?q?ve=20hints=20on=20AttributeError=20tracebacks.=20(Suggested=20b?= =?UTF-8?q?y=20Walter=20D=C3=83=C2=B6rwald)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/UserString.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/UserString.py b/Lib/UserString.py index 914f3ce..1f1e87c 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -127,8 +127,8 @@ class UserString: 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() - def width(self): return self.data.width() + def iswide(self): return self.data.iswide() # unicode only + def width(self): return self.data.width() # unicode only class MutableString(UserString): """mutable string objects -- cgit v0.12