<s> import logging <EOL> import pprint <EOL> from swiftclient . service import SwiftService <EOL> from sys import argv <EOL> logging . basicConfig ( level = logging . ERROR ) <EOL> logging . getLogger ( "<STR_LIT>" ) . setLevel ( logging . CRITICAL ) <EOL> logging . getLogger ( "<STR_LIT>" ) . setLevel ( logging . CRITICAL ) <EOL> logger = logging . getLogger ( __name__ ) <EOL> _opts = { '<STR_LIT>' : <NUM_LIT:20> } <EOL> with SwiftService ( options = _opts ) as swift : <EOL> container = argv [ <NUM_LIT:1> ] <EOL> objects = argv [ <NUM_LIT:2> : ] <EOL> header_data = { } <EOL> stats_it = swift . stat ( container = container , objects = objects ) <EOL> for stat_res in stats_it : <EOL> if stat_res [ '<STR_LIT:success>' ] : <EOL> header_data [ stat_res [ '<STR_LIT:object>' ] ] = stat_res [ '<STR_LIT>' ] <EOL> else : <EOL> logger . error ( <EOL> '<STR_LIT>' % stat_res [ '<STR_LIT:object>' ] <EOL> ) <EOL> pprint . pprint ( header_data ) </s>
