diff options
author | elie <elie> | 2007-09-20 05:38:26 +0000 |
---|---|---|
committer | elie <elie> | 2007-09-20 05:38:26 +0000 |
commit | 1b53935c68e6ac239c0bfb3f540a9c90827c4f61 (patch) | |
tree | 43e03eb71a2eed025ff54c34373ce0247f995cec /pysnmp/carrier/asyncore/dgram | |
parent | f3a8ece824fd8dac1b0aaf0fefb0ee73ee9ce3ee (diff) | |
download | pysnmp-git-1b53935c68e6ac239c0bfb3f540a9c90827c4f61.tar.gz |
fixes to % formatting
Diffstat (limited to 'pysnmp/carrier/asyncore/dgram')
-rw-r--r-- | pysnmp/carrier/asyncore/dgram/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py index ebc2722d..b13d9391 100644 --- a/pysnmp/carrier/asyncore/dgram/base.py +++ b/pysnmp/carrier/asyncore/dgram/base.py @@ -31,14 +31,14 @@ class DgramSocketTransport(AbstractSocketTransport): try: self.socket.bind(iface) except socket.error, why: - raise error.CarrierError('bind() failed: %s' % why) + raise error.CarrierError('bind() failed: %s' % (why,)) return self def openServerMode(self, iface): try: self.socket.bind(iface) except socket.error, why: - raise error.CarrierError('bind() failed: %s' % why) + raise error.CarrierError('bind() failed: %s' % (why,)) self._iface = iface return self @@ -57,7 +57,7 @@ class DgramSocketTransport(AbstractSocketTransport): self.socket.sendto(outgoingMessage, transportAddress) except socket.error, why: if sockErrors.has_key(why[0]): - debug.logger & debug.flagIO and debug.logger('handle_write: ignoring socket error %s' % (why)) + debug.logger & debug.flagIO and debug.logger('handle_write: ignoring socket error %s' % (why,)) else: raise socket.error, why @@ -74,7 +74,7 @@ class DgramSocketTransport(AbstractSocketTransport): return except socket.error, why: if sockErrors.has_key(why[0]): - debug.logger & debug.flagIO and debug.logger('handle_read: known socket error %s' % (why)) + debug.logger & debug.flagIO and debug.logger('handle_read: known socket error %s' % (why,)) sockErrors[why[0]] and self.handle_close() return else: |