diff options
Diffstat (limited to 'Demo/rpc/xdr.py')
-rw-r--r-- | Demo/rpc/xdr.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/rpc/xdr.py b/Demo/rpc/xdr.py index 41c970a..5338aef 100644 --- a/Demo/rpc/xdr.py +++ b/Demo/rpc/xdr.py @@ -184,8 +184,7 @@ class Unpacker: x = self.unpack_uint() if x == 0: break if x <> 1: - raise RuntimeError, \ - '0 or 1 expected, got ' + `x` + raise RuntimeError, '0 or 1 expected, got %r' % (x, ) item = unpack_item() list.append(item) return list |