<s> """<STR_LIT>""" <EOL> from datetime import datetime <EOL> import sys <EOL> import json <EOL> import pipes <EOL> if sys . version_info < ( <NUM_LIT:2> , <NUM_LIT:6> ) : <EOL> has_str_format = False <EOL> else : <EOL> has_str_format = True <EOL> def print_list_apps ( apps ) : <EOL> """<STR_LIT>""" <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print "<STR_LIT>" . format ( '<STR_LIT>' , '<STR_LIT:Name>' , '<STR_LIT>' ) <EOL> for i , app in enumerate ( apps ) : <EOL> print "<STR_LIT>" . format ( <EOL> i + <NUM_LIT:1> , <EOL> app [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT:type>' ] [ '<STR_LIT:name>' ] ) <EOL> else : <EOL> print "<STR_LIT>" % ( '<STR_LIT>' , '<STR_LIT:Name>' , '<STR_LIT>' ) <EOL> for i , app in enumerate ( apps ) : <EOL> print "<STR_LIT>" % ( <EOL> i + <NUM_LIT:1> , <EOL> app [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT:type>' ] [ '<STR_LIT:name>' ] ) <EOL> def print_app_details ( app , public_key ) : <EOL> """<STR_LIT>""" <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print "<STR_LIT>" . format ( <EOL> app [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT:type>' ] [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT>' ] [ '<STR_LIT:username>' ] ) <EOL> if app [ '<STR_LIT:type>' ] [ '<STR_LIT:name>' ] == '<STR_LIT>' : <EOL> print '<STR_LIT>' . format ( app [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( app [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( public_key ) <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" . format ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in app [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" . format ( <EOL> user [ '<STR_LIT:username>' ] , <EOL> user [ '<STR_LIT:email>' ] , <EOL> user [ '<STR_LIT>' ] if '<STR_LIT>' in user else '<STR_LIT>' , <EOL> user [ '<STR_LIT>' ] if '<STR_LIT>' in user else '<STR_LIT>' <EOL> ) <EOL> print '<STR_LIT>' <EOL> for deployment in app [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" . format ( deployment [ '<STR_LIT:name>' ] ) <EOL> else : <EOL> print "<STR_LIT>" % ( <EOL> app [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT:type>' ] [ '<STR_LIT:name>' ] , <EOL> app [ '<STR_LIT>' ] [ '<STR_LIT:username>' ] ) <EOL> print '<STR_LIT>' % ( app [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % public_key <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" % ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in app [ '<STR_LIT>' ] : <EOL> if '<STR_LIT>' not in user : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> if '<STR_LIT>' not in user : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> print "<STR_LIT>" % ( user ) <EOL> print '<STR_LIT>' <EOL> for deployment in app [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" % ( deployment ) <EOL> def print_deployment_details ( deployment ) : <EOL> """<STR_LIT>""" <EOL> app , dep = deployment [ '<STR_LIT:name>' ] . split ( "<STR_LIT:/>" ) <EOL> url = "<STR_LIT>" . format ( deployment [ '<STR_LIT>' ] ) <EOL> if deployment [ '<STR_LIT>' ] : <EOL> stack = deployment [ '<STR_LIT>' ] [ '<STR_LIT:name>' ] <EOL> else : <EOL> stack = None <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT:name>' ] ) <EOL> print '<STR_LIT>' . format ( stack ) <EOL> print '<STR_LIT>' . format ( url ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT:version>' ] ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT:state>' ] ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( deployment [ '<STR_LIT>' ] * <NUM_LIT> ) <EOL> if '<STR_LIT>' in deployment and deployment [ '<STR_LIT>' ] : <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" . format ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in deployment [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" . format ( <EOL> user [ '<STR_LIT:username>' ] , <EOL> user [ '<STR_LIT:email>' ] , <EOL> user [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' if '<STR_LIT>' in user else deployment [ '<STR_LIT:name>' ] , <EOL> ) <EOL> else : <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( stack ) <EOL> print '<STR_LIT>' % ( url ) <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( deployment ) <EOL> print '<STR_LIT>' % ( deployment ) * <NUM_LIT> <EOL> if '<STR_LIT>' in deployment and deployment [ '<STR_LIT>' ] : <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" % ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in deployment [ '<STR_LIT>' ] : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' if '<STR_LIT>' in user else deployment [ '<STR_LIT:name>' ] <EOL> print "<STR_LIT>" % ( user ) <EOL> def print_user_list_app ( app ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print "<STR_LIT>" . format ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in app [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" . format ( <EOL> user [ '<STR_LIT:username>' ] , <EOL> user [ '<STR_LIT:email>' ] , <EOL> user [ '<STR_LIT>' ] if '<STR_LIT>' in user else '<STR_LIT>' , <EOL> user [ '<STR_LIT>' ] if '<STR_LIT>' in user else '<STR_LIT>' <EOL> ) <EOL> else : <EOL> print "<STR_LIT>" % ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in app [ '<STR_LIT>' ] : <EOL> if '<STR_LIT>' not in user : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> if '<STR_LIT>' not in user : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> print "<STR_LIT>" % ( user ) <EOL> def print_user_list_deployment ( deployment ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print "<STR_LIT>" . format ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in deployment [ '<STR_LIT>' ] : <EOL> print "<STR_LIT>" . format ( <EOL> user [ '<STR_LIT:username>' ] , <EOL> user [ '<STR_LIT:email>' ] , <EOL> user [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' if '<STR_LIT>' in user else deployment [ '<STR_LIT:name>' ] , <EOL> ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" % ( '<STR_LIT:Name>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for user in deployment [ '<STR_LIT>' ] : <EOL> user [ '<STR_LIT>' ] = '<STR_LIT>' if '<STR_LIT>' in user else deployment [ '<STR_LIT:name>' ] <EOL> print "<STR_LIT>" % ( user ) <EOL> def print_alias_list ( aliases ) : <EOL> """<STR_LIT>""" <EOL> if has_str_format : <EOL> print '<STR_LIT>' <EOL> print '<STR_LIT>' . format ( '<STR_LIT:name>' , '<STR_LIT:default>' , '<STR_LIT>' ) <EOL> for alias in aliases : <EOL> print '<STR_LIT>' . format ( <EOL> alias [ '<STR_LIT:name>' ] , <EOL> alias [ '<STR_LIT>' ] , <EOL> alias [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> print '<STR_LIT>' % ( '<STR_LIT:name>' , '<STR_LIT:default>' , '<STR_LIT>' ) <EOL> for alias in aliases : <EOL> print '<STR_LIT>' % ( <EOL> alias ) <EOL> def print_alias_details ( alias ) : <EOL> """<STR_LIT>""" <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , alias [ '<STR_LIT:name>' ] ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> str ( alias [ '<STR_LIT>' ] ) ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> str ( alias [ '<STR_LIT>' ] ) ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT:name>' ] ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> str ( alias [ '<STR_LIT>' ] ) ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> str ( alias [ '<STR_LIT>' ] ) ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( <EOL> '<STR_LIT>' , <EOL> alias [ '<STR_LIT>' ] ) <EOL> def print_log_entries ( logEntries , apache_type ) : <EOL> """<STR_LIT>""" <EOL> if apache_type == '<STR_LIT>' : <EOL> if has_str_format : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> try : <EOL> print r'<STR_LIT>' . format ( <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:status>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] ) <EOL> except KeyError : <EOL> pass <EOL> else : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> try : <EOL> print r'<STR_LIT>' % ( <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:status>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT>" ] ) <EOL> except KeyError : <EOL> pass <EOL> elif apache_type == '<STR_LIT:error>' : <EOL> if has_str_format : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' . format ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT:type>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> else : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' % ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT:type>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> elif apache_type == '<STR_LIT>' : <EOL> if has_str_format : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' . format ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> else : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' % ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> elif apache_type == '<STR_LIT>' : <EOL> if has_str_format : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' . format ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ '<STR_LIT>' ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> else : <EOL> for entry in logEntries : <EOL> dt = datetime . fromtimestamp ( float ( entry [ "<STR_LIT:time>" ] ) ) <EOL> entry [ "<STR_LIT:time>" ] = dt . strftime ( '<STR_LIT>' ) <EOL> print r'<STR_LIT>' % ( <EOL> entry [ "<STR_LIT:time>" ] , <EOL> entry [ '<STR_LIT>' ] , <EOL> entry [ "<STR_LIT>" ] , <EOL> entry [ "<STR_LIT:message>" ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> def print_keys ( keys ) : <EOL> """<STR_LIT>""" <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> for key in keys : <EOL> print '<STR_LIT>' . format ( key [ '<STR_LIT>' ] ) <EOL> else : <EOL> for key in keys : <EOL> print '<STR_LIT>' % ( key ) <EOL> def print_key ( key ) : <EOL> """<STR_LIT>""" <EOL> print key [ "<STR_LIT:key>" ] <EOL> def print_addons ( addons ) : <EOL> """<STR_LIT>""" <EOL> if has_str_format : <EOL> for addon in addons : <EOL> print '<STR_LIT>' . format ( addon [ '<STR_LIT:name>' ] ) <EOL> for option in addon [ '<STR_LIT>' ] : <EOL> print '<STR_LIT>' . format ( option [ '<STR_LIT:name>' ] ) <EOL> else : <EOL> for addon in addons : <EOL> print '<STR_LIT>' % ( addon [ '<STR_LIT:name>' ] ) <EOL> for option in addon [ '<STR_LIT>' ] : <EOL> print '<STR_LIT>' % option [ '<STR_LIT:name>' ] <EOL> def print_addon_creds ( addons ) : <EOL> creds_format = { } <EOL> for addon in addons : <EOL> if len ( addon [ '<STR_LIT>' ] ) : <EOL> name = addon [ '<STR_LIT>' ] [ '<STR_LIT:name>' ] . split ( '<STR_LIT:.>' ) [ <NUM_LIT:0> ] . upper ( ) <EOL> creds_format [ name ] = addon [ '<STR_LIT>' ] <EOL> print json . dumps ( creds_format , indent = <NUM_LIT:4> , sort_keys = True ) <EOL> def print_addon_list ( addons ) : <EOL> """<STR_LIT>""" <EOL> for addon in addons : <EOL> print_addon_details ( addon ) <EOL> print '<STR_LIT:\n>' <EOL> def print_addon_details ( addon ) : <EOL> """<STR_LIT>""" <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , addon [ '<STR_LIT>' ] [ '<STR_LIT:name>' ] ) <EOL> if len ( addon [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> print '<STR_LIT>' <EOL> for key , value in addon [ '<STR_LIT>' ] . items ( ) : <EOL> print '<STR_LIT>' . format ( key , value ) <EOL> else : <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , addon [ '<STR_LIT>' ] [ '<STR_LIT:name>' ] ) <EOL> if len ( addon [ '<STR_LIT>' ] ) > <NUM_LIT:0> : <EOL> print '<STR_LIT>' <EOL> for key , value in addon [ '<STR_LIT>' ] . items ( ) : <EOL> print '<STR_LIT>' % ( key , value ) <EOL> def print_worker_list ( workers ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for count , worker in enumerate ( workers ) : <EOL> print '<STR_LIT>' . format ( count + <NUM_LIT:1> , worker [ '<STR_LIT>' ] , worker [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> for count , worker in enumerate ( workers ) : <EOL> print '<STR_LIT>' % ( count + <NUM_LIT:1> , worker [ '<STR_LIT>' ] , worker [ '<STR_LIT>' ] ) <EOL> def print_worker_details ( worker ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> try : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , worker [ '<STR_LIT>' ] . encode ( '<STR_LIT:utf-8>' ) ) <EOL> except UnicodeDecodeError : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT:size>' , worker [ '<STR_LIT:size>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT:size>' , worker [ '<STR_LIT:size>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , worker [ '<STR_LIT>' ] ) <EOL> def print_cronjob_list ( cronjobs ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> for count , cronjob in enumerate ( cronjobs ) : <EOL> print '<STR_LIT>' . format ( count + <NUM_LIT:1> , cronjob [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> for count , cronjob in enumerate ( cronjobs ) : <EOL> job_id = cronjob [ '<STR_LIT>' ] <EOL> print '<STR_LIT>' % ( count + <NUM_LIT:1> , job_id ) <EOL> def print_cronjob_details ( cronjob ) : <EOL> print '<STR_LIT>' <EOL> if has_str_format : <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT:url>' , cronjob [ '<STR_LIT:url>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' . format ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> else : <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT:url>' , cronjob [ '<STR_LIT:url>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' % ( '<STR_LIT>' , cronjob [ '<STR_LIT>' ] ) <EOL> def get_version ( cctrlversion , cclibversion ) : <EOL> """<STR_LIT>""" <EOL> if has_str_format : <EOL> return '<STR_LIT>' . format ( <EOL> cctrlversion , <EOL> cclibversion ) <EOL> else : <EOL> return '<STR_LIT>' % ( cctrlversion , cclibversion ) <EOL> def print_config ( config , key = None ) : <EOL> if key and key in config : <EOL> print config . get ( key ) <EOL> elif key : <EOL> print '<STR_LIT>' . format ( key ) <EOL> else : <EOL> for key in sorted ( config ) : <EOL> print u'<STR_LIT>' . format ( key , pipes . quote ( config . get ( key ) or '<STR_LIT>' ) ) </s>
