Skip to content

Commit

Permalink
flake8 + flakeplus
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Sep 20, 2011
1 parent 72ad710 commit 3c2cf2f
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 11 deletions.
2 changes: 2 additions & 0 deletions celery/app/task/builtins.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

_builtins = []


Expand Down
2 changes: 2 additions & 0 deletions celery/log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from . import current_app
from .local import Proxy
from .utils.log import LOG_LEVELS, LoggingProxy # noqa
Expand Down
3 changes: 2 additions & 1 deletion celery/registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""celery.registry"""
from __future__ import absolute_import

from . import current_app
from .local import Proxy

Expand Down
2 changes: 2 additions & 0 deletions celery/task/control.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from .. import current_app
from ..local import Proxy

Expand Down
23 changes: 14 additions & 9 deletions celery/tests/test_security/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Keys and certificates for tests (KEY1 is a private key of CERT1, etc.)
# Generated with:
#
# openssl genrsa -des3 -passout pass:test -out key1.key 1024
# openssl req -new -key key1.key -out key1.csr -passin pass:test
# cp key1.key key1.key.org
# openssl rsa -in key1.key.org -out key1.key -passin pass:test
# openssl x509 -req -days 365 -in cert1.csr -signkey key1.key -out cert1.crt
# rm key1.key.org cert1.csr
from __future__ import absolute_import
"""
Keys and certificates for tests (KEY1 is a private key of CERT1, etc.)
Generated with::
$ openssl genrsa -des3 -passout pass:test -out key1.key 1024
$ openssl req -new -key key1.key -out key1.csr -passin pass:test
$ cp key1.key key1.key.org
$ openssl rsa -in key1.key.org -out key1.key -passin pass:test
$ openssl x509 -req -days 365 -in cert1.csr -signkey key1.key -out cert1.crt
$ rm key1.key.org cert1.csr
"""

KEY1 = """-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDCsmLC+eqL4z6bhtv0nzbcnNXuQrZUoh827jGfDI3kxNZ2LbEy
Expand Down
2 changes: 2 additions & 0 deletions celery/tests/test_security/case.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from nose import SkipTest

from celery.tests.utils import unittest
Expand Down
2 changes: 2 additions & 0 deletions celery/tests/test_task/test_task_builtins.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from celery.task import backend_cleanup
from celery.tests.utils import unittest

Expand Down
2 changes: 2 additions & 0 deletions celery/tests/test_utils/test_utils_imports.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from celery.utils.imports import get_full_cls_name, get_cls_by_name
from celery.tests.utils import unittest

Expand Down
1 change: 0 additions & 1 deletion celery/tests/test_worker/test_worker_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from celery.log import setup_logger
from celery.result import AsyncResult
from celery.task.base import Task
from celery.utils.encoding import from_utf8
from celery.utils import uuid
from celery.utils.encoding import from_utf8
from celery.worker.job import (WorkerTaskTrace, TaskRequest,
Expand Down
2 changes: 2 additions & 0 deletions celery/utils/encoding.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

from kombu.utils.encoding import (safe_str, safe_repr, # noqa
default_encoding, from_utf8,
str_to_bytes, bytes_to_str)
2 changes: 2 additions & 0 deletions celery/utils/log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

import logging
import sys
import threading
Expand Down

0 comments on commit 3c2cf2f

Please sign in to comment.