def _import_status(data, item, repo_name, repo_tag):
 status = item['status']
 try:
  if ('Downloading from' in status):
   return
  elif all(((x in string.hexdigits) for x in status)):
   data['Image'] = '{0}:{1}'.format(repo_name, repo_tag)
   data['Id'] = status
 except (AttributeError, TypeError):
  pass

def _import_status ( data , item , repo_name , repo_tag ) : status = item [ 'status' ] try : if ( 'Downloading from' in status ) : return elif all ( ( ( x in string . hexdigits ) for x in status ) ) : data [ 'Image' ] = '{0}:{1}' . format ( repo_name , repo_tag ) data [ 'Id' ] = status except ( AttributeError , TypeError ) : pass
process a status update from docker import .