From d5d6e3f0d8775e9cb705d8ddd661bc30aec869c4 Mon Sep 17 00:00:00 2001 From: stv Date: Sat, 8 Nov 2014 17:32:25 -0800 Subject: [PATCH] Fix PEP8: W293 blank line contains whitespace --- common/djangoapps/request_cache/middleware.py | 2 +- common/djangoapps/user_api/tests/test_account_api.py | 2 +- docs/shared/conf.py | 2 +- lms/djangoapps/courseware/features/events.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/djangoapps/request_cache/middleware.py b/common/djangoapps/request_cache/middleware.py index ef8ec75489..6640d1a38a 100644 --- a/common/djangoapps/request_cache/middleware.py +++ b/common/djangoapps/request_cache/middleware.py @@ -7,7 +7,7 @@ class RequestCache(object): @classmethod def get_request_cache(cls): return _request_cache_threadlocal - + def clear_request_cache(self): _request_cache_threadlocal.data = {} diff --git a/common/djangoapps/user_api/tests/test_account_api.py b/common/djangoapps/user_api/tests/test_account_api.py index 2acfbd09cf..3ab1aac029 100644 --- a/common/djangoapps/user_api/tests/test_account_api.py +++ b/common/djangoapps/user_api/tests/test_account_api.py @@ -298,7 +298,7 @@ class AccountApiTest(TestCase): if create_inactive_account: # Create an account, but do not activate it account_api.create_account(self.USERNAME, self.PASSWORD, self.EMAIL) - + account_api.request_password_change(self.EMAIL, self.ORIG_HOST, self.IS_SECURE) # Verify that no email messages have been sent diff --git a/docs/shared/conf.py b/docs/shared/conf.py index 5f0a2abd89..91ce9ef1da 100644 --- a/docs/shared/conf.py +++ b/docs/shared/conf.py @@ -33,7 +33,7 @@ def add_base(paths): """ return [os.path.join(BASEDIR, x) for x in paths] - + # If extensions (or modules to document with autodoc) are in another directory, diff --git a/lms/djangoapps/courseware/features/events.py b/lms/djangoapps/courseware/features/events.py index cc81c129f7..b4b1d5001a 100644 --- a/lms/djangoapps/courseware/features/events.py +++ b/lms/djangoapps/courseware/features/events.py @@ -40,7 +40,7 @@ def reset_between_outline_scenarios(_scenario, order, outline, reasons_to_fail): def course_url_event_is_emitted(_step, url_regex): event_type = url_regex.format(world.scenario_dict['COURSE'].id) n_events_are_emitted(_step, 1, event_type, "server") - + @step(r'([aA]n?|\d+) "(.*)" (server|browser) events? is emitted$') def n_events_are_emitted(_step, count, event_type, event_source):