<s> from __future__ import absolute_import <EOL> from __future__ import print_function <EOL> from django . core . management . base import BaseCommand <EOL> from zerver . models import get_realm , Realm <EOL> import sys <EOL> class Command ( BaseCommand ) : <EOL> help = """<STR_LIT>""" <EOL> def add_arguments ( self , parser ) : <EOL> parser . add_argument ( '<STR_LIT>' , metavar = '<STR_LIT>' , type = str , <EOL> help = "<STR_LIT>" ) <EOL> def handle ( self , * args , ** options ) : <EOL> realm = options [ '<STR_LIT>' ] <EOL> try : <EOL> realm = get_realm ( realm ) <EOL> except Realm . DoesNotExist : <EOL> print ( '<STR_LIT>' % ( realm , ) ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> users = realm . get_admin_users ( ) <EOL> if users : <EOL> print ( '<STR_LIT>' ) <EOL> for user in users : <EOL> print ( '<STR_LIT>' % ( user . email , user . full_name ) ) <EOL> else : <EOL> print ( '<STR_LIT>' ) <EOL> print ( '<STR_LIT>' ) </s>
