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): ...@@ -358,7 +358,7 @@ class Application(object):
def _getMasterConnection(self): def _getMasterConnection(self):
""" Connect to the primary master node on demand """ """ Connect to the primary master node on demand """
# acquire the lock to allow only one thread to connect to the primary # 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: try:
if self.master_conn is None: if self.master_conn is None:
self.new_oid_list = [] self.new_oid_list = []
...@@ -725,7 +725,7 @@ class Application(object): ...@@ -725,7 +725,7 @@ class Application(object):
ext = dumps(transaction._extension) ext = dumps(transaction._extension)
oid_list = self.local_var.data_dict.keys() oid_list = self.local_var.data_dict.keys()
# Store data on each node # 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) cell_list = self._getCellListForTID(self.local_var.tid, writable=True)
self.local_var.voted_counter = 0 self.local_var.voted_counter = 0
for cell in cell_list: for cell in cell_list:
......
...@@ -360,7 +360,7 @@ class Connection(BaseConnection): ...@@ -360,7 +360,7 @@ class Connection(BaseConnection):
PACKET_LOGGER.dispatch(self, packet, ' to ') PACKET_LOGGER.dispatch(self, packet, ' to ')
try: try:
self.write_buf += str(packet) self.write_buf += str(packet)
except PacketMalformedError, m: except PacketMalformedError:
logging.critical('trying to send a too big message') logging.critical('trying to send a too big message')
raise raise
......
...@@ -144,7 +144,7 @@ class SocketConnector: ...@@ -144,7 +144,7 @@ class SocketConnector:
def __repr__(self): def __repr__(self):
try: try:
fileno = str(self.socket.fileno()) fileno = str(self.socket.fileno())
except socket.error, (err, errmsg): except socket.error:
fileno = '?' fileno = '?'
result = '<%s at 0x%x fileno %s %s>' % (self.__class__.__name__, result = '<%s at 0x%x fileno %s %s>' % (self.__class__.__name__,
id(self), fileno, self.socket.getsockname()) 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