summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-01-03 09:31:16 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2016-01-03 09:32:05 +0200
commit8f2baa86b5695d4daf5de086b142a37363337a87 (patch)
tree7d6487bc1180a729935ae5a56b66d771ce8d305f
parent6c16e2f7464e95cd6f0a26fcb4c1432baf1f97d9 (diff)
utils.deprecated: Fix compatibility with Python 3.5
-rw-r--r--efl/utils/deprecated.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/efl/utils/deprecated.pyx b/efl/utils/deprecated.pyx
index a46ddd3..c06839a 100644
--- a/efl/utils/deprecated.pyx
+++ b/efl/utils/deprecated.pyx
@@ -76,12 +76,12 @@ class WRAPPER(object):
76 76
77 def __call__(self, *args, **kwargs): 77 def __call__(self, *args, **kwargs):
78 cdef: 78 cdef:
79 object stack 79 list stack
80 tuple caller 80 tuple caller
81 str msg 81 str msg
82 82
83 stack = traceback.extract_stack() 83 stack = list(traceback.extract_stack())
84 caller = stack[-1] 84 caller = tuple(stack[-1])
85 caller_module, caller_line, caller_name, caller_code = caller 85 caller_module, caller_line, caller_name, caller_code = caller
86 if caller_code is not None: 86 if caller_code is not None:
87 if hasattr(self.f, "__objclass__"): 87 if hasattr(self.f, "__objclass__"):