1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Removed support for Python 3.3.

This commit is contained in:
Tim Graham
2015-06-15 09:43:35 -04:00
parent e5cb4e1411
commit 7f1168e387
17 changed files with 44 additions and 65 deletions

View File

@@ -3,11 +3,12 @@ import threading
import warnings
import weakref
from django.utils import six
from django.utils.deprecation import RemovedInDjango21Warning
from django.utils.inspect import func_accepts_kwargs
from django.utils.six.moves import range
if sys.version_info < (3, 4):
if six.PY2:
from .weakref_backports import WeakMethod
else:
from weakref import WeakMethod
@@ -108,7 +109,7 @@ class Signal(object):
if hasattr(receiver, '__self__') and hasattr(receiver, '__func__'):
ref = WeakMethod
receiver_object = receiver.__self__
if sys.version_info >= (3, 4):
if six.PY3:
receiver = ref(receiver)
weakref.finalize(receiver_object, self._remove_receiver)
else: