def allowed_formats():
 if gprefs[u'auto_add_everything']:
  allowed = AllAllowed()
 else:
  allowed = (AUTO_ADDED - frozenset(gprefs[u'blocked_auto_formats']))
 return allowed

def allowed_formats ( ) : if gprefs [ u'auto_add_everything' ] : allowed = AllAllowed ( ) else : allowed = ( AUTO_ADDED - frozenset ( gprefs [ u'blocked_auto_formats' ] ) ) return allowed
return an object that can be used to test if a format is allowed for auto-adding .