[pypy-commit] pypy py3.6: Remove import on weakref._remove_dead_weakref
rmariano
pypy.commits at gmail.com
Sat Jul 15 12:06:31 EDT 2017
Author: Mariano Anaya <marianoanaya at gmail.com>
Branch: py3.6
Changeset: r91878:6538ff6342b3
Date: 2017-07-15 18:05 +0200
http://bitbucket.org/pypy/pypy/changeset/6538ff6342b3/
Log: Remove import on weakref._remove_dead_weakref
The function is already defined in the module, so it can be imported
from there directly. The import (of a function that doesn't exist),
would be overridden anyway by the definition of the function that
lies after.
diff --git a/lib-python/3/weakref.py b/lib-python/3/weakref.py
--- a/lib-python/3/weakref.py
+++ b/lib-python/3/weakref.py
@@ -16,8 +16,8 @@
proxy,
CallableProxyType,
ProxyType,
- ReferenceType,
- _remove_dead_weakref)
+ ReferenceType
+)
from _weakrefset import WeakSet, _IterationGuard
More information about the pypy-commit
mailing list