Commit 1f94c313 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Few pending clean.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@827 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent da537116
...@@ -29,6 +29,7 @@ class Storage(BaseStorage.BaseStorage, ...@@ -29,6 +29,7 @@ class Storage(BaseStorage.BaseStorage,
__name__ = 'NEOStorage' __name__ = 'NEOStorage'
def __init__(self, master_nodes, name, connector, read_only=False, **kw): def __init__(self, master_nodes, name, connector, read_only=False, **kw):
BaseStorage.BaseStorage.__init__(self)
self._is_read_only = read_only self._is_read_only = read_only
logging.basicConfig(level=logging.DEBUG, format=DEFAULT_LOG_FORMAT) logging.basicConfig(level=logging.DEBUG, format=DEFAULT_LOG_FORMAT)
self.app = Application(master_nodes, name, connector) self.app = Application(master_nodes, name, connector)
......
from threading import Lock as threading_Lock from threading import Lock as threading_Lock
from threading import RLock as threading_RLock from threading import RLock as threading_RLock
from threading import currentThread from threading import currentThread
import traceback
import sys
import os
""" """
Verbose locking classes. Verbose locking classes.
......
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
import struct import struct
from struct import pack, unpack from struct import pack, unpack
from socket import inet_ntoa, inet_aton from socket import inet_ntoa, inet_aton
#import logging
#from neo.util import dump
class EnumItem(int): class EnumItem(int):
""" """
...@@ -453,7 +451,6 @@ class Packet(object): ...@@ -453,7 +451,6 @@ class Packet(object):
# packet parser # packet parser
def parse(msg): def parse(msg):
# logging.debug('parsing %s', dump(msg))
if len(msg) < MIN_PACKET_SIZE: if len(msg) < MIN_PACKET_SIZE:
return None return None
msg_id, msg_type, msg_len = unpack('!LHL', msg[:PACKET_HEADER_SIZE]) msg_id, msg_type, msg_len = unpack('!LHL', msg[:PACKET_HEADER_SIZE])
......
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