Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad Num Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore TupleLoad Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Break If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad NameLoad body If CompareGt NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Num For NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad TupleLoad ListLoad Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore UnaryOpNot NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str While CompareNotEq NameLoad Num body AugAssignAdd SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Slice NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Break Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str orelse AugAssignAdd SubscriptStore NameLoad Index Num NameLoad If BoolOpOr NameLoad CompareGtE Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad TryFinally body TryExcept body If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Num If CompareEq NameLoad Num body If NameLoad body Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad decorator_list decorator_list
N/A N/A Hook server code.

Contains the :class:`~gitobox.server.Server` class which is used to communicate
with the Git hook.
 __future__ unicode_literals N/A logging N/A select N/A socket N/A sys N/A time gitobox.utils irange iteritems itervalues Server N/A object N/A N/A A server, that receives a bunch of lines on a TCP socket.

    Listens on a random TCP port (`port` attribute) and calls back the given
    function when the specified number of lines have been received.

    The callback gets passed the data (list of bytes objects), the connection
    and the address, so more data can be exchanged.
     N/A TIMEOUT 5.0 N/A LENGTH 1024 __init__ N/A N/A self client_lines callback N/A N/A N/A N/A self _callback callback N/A N/A self _client_lines client_lines N/A N/A self _server None N/A port N/A irange 15550 15580 N/A N/A server N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A address N/A 127.0.0.1 port N/A N/A N/A N/A N/A server bind address N/A N/A N/A server listen 5 N/A N/A N/A N/A socket error N/A N/A N/A N/A N/A N/A logging debug Server created on %s:%d address N/A N/A self _server server N/A N/A self port port N/A N/A N/A N/A self _server None N/A N/A N/A N/A logging critical Couldn't find a TCP port to listen on N/A N/A N/A sys exit 1 N/A run N/A N/A self N/A N/A N/A clients N/A N/A next_timeout None N/A now N/A N/A time time N/A True N/A N/A sockets N/A N/A self _server N/A N/A N/A sockets extend clients N/A timeout N/A N/A next_timeout None None N/A N/A next_timeout now 0.2 N/A N/A rlist _ _ N/A N/A select select sockets N/A N/A timeout N/A now N/A N/A time time N/A N/A sock N/A data timeout addr N/A list N/A iteritems clients N/A N/A N/A now timeout N/A N/A N/A clients N/A sock N/A N/A N/A sock send timed out
ERROR
 N/A N/A N/A sock close N/A N/A N/A logging debug Connection from %s timed out addr N/A next_timeout -1 N/A sock rlist N/A N/A N/A sock N/A self _server N/A N/A N/A conn addr N/A N/A N/A self _server accept N/A N/A N/A logging debug Connection from %s addr N/A timeout N/A now N/A self TIMEOUT N/A N/A clients N/A conn N/A N/A timeout addr N/A N/A next_timeout None N/A N/A next_timeout timeout N/A N/A next_timeout N/A min next_timeout timeout N/A N/A N/A data timeout addr N/A clients N/A conn N/A res N/A N/A conn recv N/A N/A self LENGTH N/A len N/A data N/A -1 N/A done N/A res N/A res N/A N/A end N/A N/A res find N/A N/A end -1 N/A N/A N/A data N/A -1 N/A res N/A end N/A N/A N/A len data N/A self _client_lines N/A N/A done True N/A N/A N/A N/A data append N/A res N/A res N/A N/A end 1 N/A end N/A N/A res find N/A N/A N/A data N/A -1 res N/A N/A done N/A N/A len N/A data N/A -1 N/A self LENGTH N/A N/A N/A clients N/A conn N/A N/A N/A N/A N/A N/A N/A len data N/A self _client_lines N/A N/A N/A N/A self _callback data conn addr N/A N/A N/A Exception N/A N/A N/A N/A conn send internal server error
ERROR
 N/A N/A N/A N/A N/A conn close N/A next_timeout -1 N/A N/A next_timeout -1 N/A N/A clients N/A N/A next_timeout N/A min N/A t N/A N/A _ t _ N/A itervalues clients N/A N/A next_timeout None N/A N/A