Author: Mariano Anaya <[email protected]>
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
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to