Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nandoflorestan committed Jun 22, 2021
1 parent 8deb7e1 commit e7f9e31
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bag/reify.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Contains the invaluable @reify decorator, stolen from Pyramid."""

from functools import update_wrapper


class reify(object):
"""Substitute decorated method with its return value on 1st use.
Expand Down Expand Up @@ -37,7 +35,7 @@ class reify(object):

def __init__(self, wrapped):
self.wrapped = wrapped
update_wrapper(self, wrapped)
self.__doc__ = wrapped.__doc__

def __get__(self, inst, objtype=None):
if inst is None:
Expand Down

0 comments on commit e7f9e31

Please sign in to comment.