From 1453a86122622dc08993e1ad953170a39cb38f99 Mon Sep 17 00:00:00 2001 From: cahrens Date: Thu, 13 Mar 2014 11:57:30 -0400 Subject: [PATCH] Minor code cleanup. --- cms/djangoapps/contentstore/views/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index 4c68214aeb..75c66cb99a 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -108,7 +108,7 @@ def subsection_handler(request, tag=None, package_id=None, branch=None, version_ subsection_units = item.get_children() for unit in subsection_units: state = compute_publish_state(unit) - if state == PublishState.public or state == PublishState.draft: + if state in (PublishState.public, PublishState.draft): can_view_live = True break