From 988144f0b41330db36e527cae04e08bd3dca2924 Mon Sep 17 00:00:00 2001 From: stv Date: Sat, 8 Nov 2014 21:02:57 -0800 Subject: [PATCH] Fix PEP8: E712 comparison to True should be 'if cond is True:' or 'if cond:' --- lms/djangoapps/instructor/views/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/views/tools.py b/lms/djangoapps/instructor/views/tools.py index d86b31d593..3959e2e2fb 100644 --- a/lms/djangoapps/instructor/views/tools.py +++ b/lms/djangoapps/instructor/views/tools.py @@ -59,7 +59,7 @@ def bulk_email_is_enabled_for_course(course_id): 3. Bulk email is enabled for the course. """ - bulk_email_enabled_globally = (settings.FEATURES['ENABLE_INSTRUCTOR_EMAIL'] == True) + bulk_email_enabled_globally = (settings.FEATURES['ENABLE_INSTRUCTOR_EMAIL'] is True) is_studio_course = (modulestore().get_modulestore_type(course_id) != ModuleStoreEnum.Type.xml) bulk_email_enabled_for_course = CourseAuthorization.instructor_email_enabled(course_id)