Use new attrs style
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 14 Jul 2024 03:18:33 +0000 (22:18 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 14 Jul 2024 03:18:33 +0000 (22:18 -0500)
src/pgwui_common/views/page_views.py

index 956c17cb7a08c4bf66d85a3c0b11191414924660..3f4c3101ab51406b08b6d83752f959e80fcf1f92 100644 (file)
 '''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: