def escalate_prerelease_permissions(app, validation, version):
 app_permissions = (validation.get('permissions') or [])
 if any(((perm in PRERELEASE_PERMISSIONS) for perm in app_permissions)):
  nobody = UserProfile.objects.get(email=settings.NOBODY_EMAIL_ADDRESS)
  escalate_app(app, version, nobody, 'App uses prerelease permissions', mkt.LOG.ESCALATION_PRERELEASE_APP)

def escalate_prerelease_permissions ( app , validation , version ) : app_permissions = ( validation . get ( 'permissions' ) or [ ] ) if any ( ( ( perm in PRERELEASE_PERMISSIONS ) for perm in app_permissions ) ) : nobody = UserProfile . objects . get ( email = settings . NOBODY_EMAIL_ADDRESS ) escalate_app ( app , version , nobody , 'App uses prerelease permissions' , mkt . LOG . ESCALATION_PRERELEASE_APP )
escalate the app if it uses prerelease permissions .