Permalink
Browse files

modernize pyrex -> cython

  • Loading branch information...
1 parent 61ab61b commit 6240f95eb8cbce8b99148dbdabd88d6b2c360666 @samrushing samrushing committed Jun 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 coro/local.pyx
View
@@ -130,12 +130,12 @@ cdef class ThreadLocal:
cdef coro co
# _all_threads.itervalues() might be better here.
- for co in PyDict_Values(_all_threads):
+ for co in _all_threads.values():
if co._tdict is not None:
# Avoiding exceptions for performance.
# Would be much better to just call PyDict_DelItem, but we've
# defined it with except -1.
- if PyDict_Contains(co._tdict, self.key):
+ if co._tdict.has_key (self.key):
del co._tdict[self.key]
property __dict__:

0 comments on commit 6240f95

Please sign in to comment.