Fix PEP8: E712 comparison to True

should be 'if cond is True:' or 'if cond:'
This commit is contained in:
stv
2014-11-08 21:02:57 -08:00
parent 31d094b5b4
commit 988144f0b4

View File

@@ -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)