aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-12 13:14:54 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-04-12 13:14:54 +0000
commitda704856941622a0d0a793069bc22f4dca28b546 (patch)
treecaad548a91616fea3b224848f31d2b6f5eed5f0a /Tools/bgen
parentRemove acconfig.h. (diff)
downloadcpython-da704856941622a0d0a793069bc22f4dca28b546.tar.gz
cpython-da704856941622a0d0a793069bc22f4dca28b546.tar.bz2
cpython-da704856941622a0d0a793069bc22f4dca28b546.zip
Give type name when complaining about using input-only type for output
or v.v.
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/bgenType.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py
index 9b4f11f95d5..51f5844268d 100644
--- a/Tools/bgen/bgen/bgenType.py
+++ b/Tools/bgen/bgen/bgenType.py
@@ -115,7 +115,7 @@ class InputOnlyMixIn:
"Mix-in class to boobytrap passOutput"
def passOutput(self, name):
- raise RuntimeError, "this type can only be used for input parameters"
+ raise RuntimeError, "Type '%s' can only be used for input parameters" % self.typeName
class InputOnlyType(InputOnlyMixIn, Type):
@@ -126,7 +126,7 @@ class OutputOnlyMixIn:
"Mix-in class to boobytrap passInput"
def passInput(self, name):
- raise RuntimeError, "this type can only be used for output parameters"
+ raise RuntimeError, "Type '%s' can only be used for output parameters" % self.typeName
class OutputOnlyType(OutputOnlyMixIn, Type):