Skip to content

Commit

Permalink
PEP8 and Pyflakes cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed Sep 17, 2012
1 parent c1dd1bf commit c8b94e0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions commonware/exceptions/middleware.py
Expand Up @@ -21,14 +21,3 @@ def process_exception(self, request, exception):
# Clearing out all cookies in request.META. They will already
# be sent with request.COOKIES.
request.META['HTTP_COOKIE'] = '******'


class HidePasswordOnException(ScrubRequestOnException):
def __init__(self):
import warnings
warnings.warn(
"The middleware at `commonware.middleware.HidePasswordOnException` "
"is deprecated; use `commonware.middleware.ScrubRequestOnException` "
"instead.",
DeprecationWarning
)
1 change: 1 addition & 0 deletions commonware/request/middleware.py
Expand Up @@ -4,6 +4,7 @@

TYPES = (socket.AF_INET, socket.AF_INET6)


def is_valid(ip):
for af in TYPES:
try:
Expand Down
1 change: 0 additions & 1 deletion commonware/response/cookies/tests.py
@@ -1,6 +1,5 @@
from django.http import HttpResponse
from mock import patch
from nose.tools import eq_

from commonware.response.cookies.monkeypatch import patch_all

Expand Down

0 comments on commit c8b94e0

Please sign in to comment.