From b0c4c0c5f90fb871e7435896c2df6c4b5b43bd52 Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 16 Jan 2019 03:46:04 +0100 Subject: [PATCH] remove redundant backslashes in between brackets --- .../management/commands/swap_from_auto_track_cohort_pilot.py | 2 +- scripts/xblock/xblock_counts.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py b/openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py index 72f079392b..b538b8a8b4 100644 --- a/openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py +++ b/openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py @@ -55,7 +55,7 @@ class Command(BaseCommand): raise CommandError("No audit_cohort_names set for MigrateVerifiedTrackCohortsSetting with ID: '%s'" % verified_track_cohorts_setting.id) - print("Running for MigrateVerifiedTrackCohortsSetting with old_course_key='%s' and rerun_course_key='%s'" % \ + print("Running for MigrateVerifiedTrackCohortsSetting with old_course_key='%s' and rerun_course_key='%s'" % (verified_track_cohorts_setting.old_course_key, verified_track_cohorts_setting.rerun_course_key)) # Get the CourseUserGroup IDs for the audit course names from the old course diff --git a/scripts/xblock/xblock_counts.py b/scripts/xblock/xblock_counts.py index bc93c3f6c1..49bc301d85 100644 --- a/scripts/xblock/xblock_counts.py +++ b/scripts/xblock/xblock_counts.py @@ -167,7 +167,7 @@ def _get_block_types_from_json_file(xblock_json_file): try: json_data = json.loads(json_file.read()) except ValueError as e: - print('xBlock configuration file does not match the expected layout and is ' \ + print('xBlock configuration file does not match the expected layout and is ' 'missing "data" list: %s' % xblock_json_file) sys.exit(text_type(e)) if 'data' in json_data: @@ -176,7 +176,7 @@ def _get_block_types_from_json_file(xblock_json_file): type_set.add(xblock['name']) return type_set else: - print('xBlock configuration file does not match the expected layout and is ' \ + print('xBlock configuration file does not match the expected layout and is ' 'missing "data" list: %s' % xblock_json_file) sys.exit(2)