# Path: chopsticks/pencode.py
# def pencode(obj):
#     """Encode the given Python primitive structure, returning a byte string."""
#     p = Pencoder()
#     p._pencode(obj, p.backrefs, p.out)
#     return p.getvalue()
# 
# def pdecode(buf):
#     """Decode a pencoded byte string to a structure."""
#     return PDecoder().decode(buf)


import sys
import os
import fcntl
import struct
import weakref
            import traceback
from threading import RLock
from select import select
from .pencode import pencode, pdecode
from __future__ import print_function


__metaclass__ = type

PY2 = sys.version_info < (3,)



# Path: chopsticks/pencode.py
# def pencode(obj):
#     """Encode the given Python primitive structure, returning a byte string."""
#     p = Pencoder()
#     p._pencode(obj, p.backrefs, p.out)
#     return p.getvalue()
# 
# def pdecode(buf):
#     """Decode a pencoded byte string to a structure."""
#     return PDecoder().decode(buf)


# Path: chopsticks/ioloop.py
import sys
import os
import fcntl
import struct
import weakref
            import traceback
from threading import RLock
from select import select
from .pencode import pencode, pdecode

from __future__ import print_function


__metaclass__ = type

PY2 = sys.version_info < (3,)



if PY2: