From 6a71ba2b06eab54b5b622f7a9705bcc121fa1591 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 13 Jul 2024 22:18:33 -0500 Subject: [PATCH] Use new attrs style --- src/pgwui_common/views/page_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.34.1