<s> from __future__ import print_function <EOL> import os <EOL> import six <EOL> import pyrax <EOL> import pyrax . exceptions as exc <EOL> pyrax . set_setting ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> creds_file = os . path . expanduser ( "<STR_LIT>" ) <EOL> pyrax . set_credential_file ( creds_file ) <EOL> pq = pyrax . queues <EOL> queues = pq . list ( ) <EOL> if not queues : <EOL> print ( "<STR_LIT>" ) <EOL> exit ( ) <EOL> print ( "<STR_LIT>" ) <EOL> for pos , queue in enumerate ( queues ) : <EOL> print ( "<STR_LIT>" % ( pos , queue . name ) ) <EOL> snum = six . moves . input ( "<STR_LIT>" ) <EOL> if not snum : <EOL> exit ( ) <EOL> try : <EOL> num = int ( snum ) <EOL> except ValueError : <EOL> print ( "<STR_LIT>" % snum ) <EOL> exit ( ) <EOL> if not <NUM_LIT:0> <= num < len ( queues ) : <EOL> print ( "<STR_LIT>" % snum ) <EOL> exit ( ) <EOL> pq . delete ( queues [ num ] ) <EOL> print ( "<STR_LIT>" % queue . name ) </s>
