summaryrefslogtreecommitdiff
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-06-04 04:23:29 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2004-06-04 04:23:29 +0000
commit72fc0c5ecabed9ecaa0032c85192f8fab3895292 (patch)
treeb1075e73f09d4fbc86ac3cf375e83777adcce89c /Lib/UserString.py
parent9d990cf3be3bdf1b9e64636769f48ff947ce69a6 (diff)
downloadcpython-72fc0c5ecabed9ecaa0032c85192f8fab3895292.tar.gz
Add comments for unicode-only methods to give hints on AttributeError
tracebacks. (Suggested by Walter Dörwald)
Diffstat (limited to 'Lib/UserString.py')
-rwxr-xr-xLib/UserString.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py
index 914f3ce14a..1f1e87c499 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