From eaa152f8838fec8365b605879ef1416b6e2d64ee Mon Sep 17 00:00:00 2001 From: skritch Date: Thu, 12 May 2016 17:19:20 -0500 Subject: [PATCH] Fixed direct importing of WeakSet and updated import lines in readme --- README.rst | 4 ++-- weakreflist/__init__.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index e133b5c..31ae731 100644 --- a/README.rst +++ b/README.rst @@ -42,7 +42,7 @@ Same as a *list* except that when a weakref-able variable is deleted, it is remo .. code-block:: python - from weakref import WeakList + from weakreflist import WeakList class A(object): """weakrefs don't function directly on object()""" @@ -62,7 +62,7 @@ Same as a *list* except that when a weakref-able variable is deleted, it is remo .. code-block:: python - from weakref import WeakList + from weakreflist import WeakList import gc class A(object): diff --git a/weakreflist/__init__.py b/weakreflist/__init__.py index 5ea8961..670a303 100644 --- a/weakreflist/__init__.py +++ b/weakreflist/__init__.py @@ -1,2 +1,4 @@ # -*- coding: utf8 -*- +from .weakreflist import WeakList + __all__ = ['weakreflist']