def output_current_flair(self, as_json=False):
        """Display the current flair for all users in the subreddit."""
        flair_list = sorted(self.current_flair(), key=lambda x: x['user'].name)
        if as_json:
            print(json.dumps(flair_list, sort_keys=True, indent=4))
            return

        for flair in flair_list:
            print(flair['user'])
            print('  Text: {}\n   CSS: {}'.format(flair['flair_text'],
                                                  flair['flair_css_class']))
def output_current_flair ( self , as_json = False ) : flair_list = sorted ( self . current_flair ( ) , key = lambda x : x [ 'user' ] . name ) if as_json : print ( json . dumps ( flair_list , sort_keys = True , indent = 4 ) ) return for flair in flair_list : print ( flair [ 'user' ] ) print ( '  Text: {}\n   CSS: {}' . format ( flair [ 'flair_text' ] , flair [ 'flair_css_class' ] ) )
Display the current flair for all users in the subreddit.