Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove some trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-king-jena committed Nov 2, 2013
1 parent 1a12ce6 commit 11bd210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/misc/weak_dict.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ cdef extern from "Python.h":
#PyWeakref_GetObject with borrowed references. This is the recommended
#strategy according to Cython/Includes/cpython/__init__.pxd
PyObject* PyWeakref_GetObject(PyObject * wr)

#this one's just missing.
long PyObject_Hash(object obj)

Expand Down Expand Up @@ -245,7 +245,7 @@ cdef del_dictitem_by_exact_value(PyDictObject *mp, PyObject *value, long hash):
mp.ma_used -= 1
#in our case, the value is always a dead weakref, so decreffing that is
#fairly safe
Py_XDECREF(old_value)
Py_XDECREF(old_value)
#this could have any effect.
Py_XDECREF(old_key)

Expand Down Expand Up @@ -623,7 +623,7 @@ cdef class WeakValueDictionary(dict):

#def __delitem__(self, k):
#we don't really have to override this method.

def pop(self, k):
"""
Return the value for a given key, and delete it from the dictionary.
Expand Down

0 comments on commit 11bd210

Please sign in to comment.