Commit 88f7c55c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove some unused variables.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1368 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2f6ff210
......@@ -358,7 +358,7 @@ class Application(object):
def _getMasterConnection(self):
""" Connect to the primary master node on demand """
# acquire the lock to allow only one thread to connect to the primary
lock = self._connecting_to_master_node_acquire()
self._connecting_to_master_node_acquire()
try:
if self.master_conn is None:
self.new_oid_list = []
......@@ -725,7 +725,7 @@ class Application(object):
ext = dumps(transaction._extension)
oid_list = self.local_var.data_dict.keys()
# Store data on each node
pt = self._getPartitionTable()
self._getPartitionTable() # XXX: establish connection if needed
cell_list = self._getCellListForTID(self.local_var.tid, writable=True)
self.local_var.voted_counter = 0
for cell in cell_list:
......
......@@ -360,7 +360,7 @@ class Connection(BaseConnection):
PACKET_LOGGER.dispatch(self, packet, ' to ')
try:
self.write_buf += str(packet)
except PacketMalformedError, m:
except PacketMalformedError:
logging.critical('trying to send a too big message')
raise
......
......@@ -144,7 +144,7 @@ class SocketConnector:
def __repr__(self):
try:
fileno = str(self.socket.fileno())
except socket.error, (err, errmsg):
except socket.error:
fileno = '?'
result = '<%s at 0x%x fileno %s %s>' % (self.__class__.__name__,
id(self), fileno, self.socket.getsockname())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment