-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
^SPc @@ s` d Z d d l m Z d d l m Z d d l m Z e e ƒ d ƒ d e f d „ ƒ YZ d S( s Ping plugin for bzr.i ( t absolute_import( t Command( t lazy_importss
from bzrlib import errors
from bzrlib.smart.client import _SmartClient
from bzrlib.transport import get_transport
t cmd_pingc B@ s e Z d Z d g Z d „ Z RS( s¡ Pings a Bazaar smart server.
This command sends a 'hello' request to the given location using the bzr
smart protocol, and reports the response.
t locationc C@ sÅ t | ƒ } y | j ƒ } Wn+ t j k
rI } t j t | ƒ ƒ ‚ n Xt | ƒ } | j d ƒ \ } } | j ƒ | j j
d | f ƒ t | d d ƒ d k rÁ | j j
d | j
f ƒ n d S( Nt hellos
Response: %r
t headerss Headers: %r
( t
get_transportt get_smart_mediumt errorst
NoSmartMediumt BzrCommandErrort strt _SmartClientt call_expecting_bodyt cancel_read_bodyt outft writet getattrt NoneR ( t selfR t transportt mediumt et clientt responset handler( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/smart/ping.pyt run( s
( t __name__t
__module__t __doc__t
takes_argsR ( ( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/smart/ping.pyR s N( R t
__future__R t bzrlib.commandsR t bzrlib.lazy_importR t globalsR ( ( ( s5 /usr/lib/python2.7/dist-packages/bzrlib/smart/ping.pyt <module> s
Copyright © 2017 || Recoded By Mr.Bumblebee