%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/requestbuilder/mixins/ |
Current File : //proc/self/root/lib/python2.7/site-packages/requestbuilder/mixins/formatting.pyc |
� >�,Xc @ s� d d l Z d d l Z y d d l Z Wn e k r; n Xd d l m Z d e f d � � YZ d e f d � � YZ d e j k r� d e j f d � � YZ n d e f d � � YZ d d � Z d S( i����N( t Argt TabifyingMixinc B s; e Z d Z e d d d d d d d �g Z d d � Z RS( s� A command mixin that provides the tabify() function along with its associated --show-empty-fields command line arg. s --show-empty-fieldst actiont store_truet route_tot helps show empty values as "(nil)"c C sB | j d r d } n d } d j d � t | | d | �D� � S( s Join a list of strings with tabs. Nonzero items that Python considers false are printed as-is if they appear in the include list, replaced with '(nil)' if the user specifies --show-empty-fields at the command line, and omitted otherwise. t show_empty_fieldss (nil)t s c s s | ] } t | � Vq d S( N( t str( t .0t s( ( sD /usr/lib/python2.7/site-packages/requestbuilder/mixins/formatting.pys <genexpr>. s t include( t argst joint _filter_row_values( t selft fieldsR t fstr( ( sD /usr/lib/python2.7/site-packages/requestbuilder/mixins/formatting.pyt tabify# s N( t __name__t __module__t __doc__R t Nonet ARGSR ( ( ( sD /usr/lib/python2.7/site-packages/requestbuilder/mixins/formatting.pyR s t TableOutputMixinc B sM e Z e d d d d d d d �e d d d d d d d �g Z d � Z RS( s --show-headersR R R R s show column headerss --show-empty-fieldss"