Merge pull request #22649 from edx/feanil/fix_pep8
Fix all E303 pep8 errors.
This commit is contained in:
@@ -3,7 +3,6 @@ Account constants
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Django forms for accounts
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django import forms
|
||||
from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Views related to Account Settings. """
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Django Signal related functionality for user_api accounts
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.dispatch import Signal
|
||||
|
||||
# Signal to retire a user from LMS-initiated mailings (course mailings, etc)
|
||||
|
||||
@@ -5,7 +5,6 @@ Most of the functionality is covered in test_views.py.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import itertools
|
||||
import re
|
||||
import unicodedata
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Unit tests for custom UserProfile properties. """
|
||||
|
||||
|
||||
|
||||
import ddt
|
||||
from completion import models
|
||||
from completion.test_utils import CompletionWaffleTestMixin
|
||||
|
||||
@@ -4,7 +4,6 @@ Utility functions, constants, etc. for testing.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from openedx.core.djangoapps.user_api.accounts import EMAIL_MAX_LENGTH, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH
|
||||
from util.password_policy_validators import DEFAULT_MAX_PASSWORD_LENGTH
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ UserCourseTag model.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
from openedx.core.lib.cache_utils import get_cache
|
||||
|
||||
@@ -3,7 +3,6 @@ Defines the URL routes for this app.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from rest_framework import routers
|
||||
|
||||
@@ -17,7 +17,6 @@ will be have the 'email-optin' tag set to 'False'.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import csv
|
||||
import logging
|
||||
import time
|
||||
|
||||
@@ -5,7 +5,6 @@ Optionally takes in username, email, and course UUID arguments.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
from textwrap import dedent
|
||||
from uuid import uuid4
|
||||
|
||||
@@ -3,7 +3,6 @@ Message Types for user_api emails
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from openedx.core.djangoapps.ace_common.message import BaseMessageType
|
||||
|
||||
@@ -4,7 +4,6 @@ Adds user's tags to tracking event context.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from eventtracking import tracker
|
||||
from opaque_keys import InvalidKeyError
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
@@ -4,7 +4,6 @@ Unit tests for preference APIs.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import json
|
||||
|
||||
import ddt
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for the user API at the HTTP request level. """
|
||||
|
||||
|
||||
|
||||
import json
|
||||
from unittest import skipUnless
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Defines the URL routes for this app.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""HTTP end-points for the User API. """
|
||||
|
||||
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.exceptions import NON_FIELD_ERRORS, PermissionDenied, ValidationError
|
||||
from django.db import transaction
|
||||
|
||||
Reference in New Issue
Block a user