Revision af6d3b5d tools/pithos-sh

b/tools/pithos-sh
317 317
        else:
318 318
            data = self.client.retrieve_object(container, object, **args)    
319 319
        
320
        f = self.file and open(self.file, 'w') or stdout
320
        f = open(self.file, 'w') if self.file else stdout
321 321
        if self.detail:
322 322
            if self.versionlist:
323 323
                print_versions(data, f=f)
......
765 765
        cmd.parser.print_help()
766 766
        exit(1)
767 767
    except Fault, f:
768
        status = f.status and '%s ' % f.status or ''
768
        status = '%s ' % f.status if f.status else ''
769 769
        print '%s%s' % (status, f.data)
770 770

  
771 771
if __name__ == '__main__':

Also available in: Unified diff