Skip to content

Commit

Permalink
Tests passing on Python 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Sep 14, 2011
1 parent de8d6ae commit 3e0c447
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions celery/app/task/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-"
from __future__ import absolute_import
from __future__ import with_statement

import sys
import threading
Expand Down
8 changes: 6 additions & 2 deletions celery/security/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import absolute_import
from __future__ import with_statement

from kombu.serialization import unregister, SerializerNotInstalled

from .. import current_app
Expand Down Expand Up @@ -37,6 +40,7 @@ def setup_security():
"CELERY_SECURITY_CERT_STORE options are required "
"settings when using the auth serializer")

with open(key) as kf, open(cert) as cf:
register_auth(kf.read(), cf.read(), store)
with open(key) as kf:
with open(cert) as cf:
register_auth(kf.read(), cf.read(), store)
_disable_insecure_serializers()
3 changes: 3 additions & 0 deletions celery/tests/test_events/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import absolute_import
from __future__ import with_statement

import socket

from functools import partial
Expand Down

0 comments on commit 3e0c447

Please sign in to comment.