From: Karl O. Pinc Date: Sun, 14 Jul 2024 03:18:33 +0000 (-0500) Subject: Use new attrs style X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=6a71ba2b06eab54b5b622f7a9705bcc121fa1591;p=pgwui_common Use new attrs style --- diff --git a/src/pgwui_common/views/page_views.py b/src/pgwui_common/views/page_views.py index 956c17c..3f4c310 100644 --- a/src/pgwui_common/views/page_views.py +++ b/src/pgwui_common/views/page_views.py @@ -22,17 +22,17 @@ '''Return a page that's a file in the file system ''' -import attr +import attrs from pyramid.response import FileResponse from pgwui_common import exceptions as ex -@attr.s +@attrs.define(slots=False) class PageViewer(): '''A class of views that return file content ''' - request = attr.ib() + request = attrs.field() def page(self, page_name): try: