Change super() calls from python2 style to python3
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 18 Mar 2024 21:56:10 +0000 (16:56 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 18 Mar 2024 21:56:10 +0000 (16:56 -0500)
src/pgwui_upload_core/exceptions.py
src/pgwui_upload_core/views/upload.py

index ef173d885d83b9d1629654b56f5bff5d526d3daf..d92588c42e8f7f91ff9680d799d7eed89fbdb724 100644 (file)
@@ -1,4 +1,5 @@
-# Copyright (C) 2020, 2021 The Meme Factory, Inc.  http://www.karlpinc.com/
+# Copyright (C) 2020, 2021, 2024 The Meme Factory, Inc.
+# http://www.karlpinc.com/
 
 # This file is part of PGWUI_Upload.
 #
@@ -34,37 +35,37 @@ class BadFileFormatError(SetupError):
 class NoTableError(SetupError):
     '''No table uploaded'''
     def __init__(self, e, descr='', detail=''):
-        super(NoTableError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class BadTableError(SetupError):
     '''Supplied name does not work for a table or view'''
     def __init__(self, e, descr='', detail=''):
-        super(BadTableError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class MissingTableError(BadTableError):
     '''The supplied table or view does not exist'''
     def __init__(self, e, descr='', detail=''):
-        super(MissingTableError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class MissingSchemaError(BadTableError):
     '''The schema portion of the supplied table or view does not exist'''
     def __init__(self, e, descr='', detail=''):
-        super(MissingSchemaError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class CannotInsertError(BadTableError):
     '''Cannot insert into the supplied table or view'''
     def __init__(self, e, descr='', detail=''):
-        super(CannotInsertError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class BadHeadersError(SetupError):
     '''The headers in the uploaded file are bad.'''
     def __init__(self, e, descr='', detail=''):
-        super(BadHeadersError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class InsufficientPrivilegeError(SetupError):
index acb735b75059b859302a571eb85c2237d3eea977..37a994afcb42bd6f48ed924f8ea775b0afb5f3c3 100644 (file)
@@ -91,7 +91,7 @@ class SaveLine(DataLineProcessor, ParameterExecutor):
         insert_stmt    Statement used to insert into db.
                        (psycopg3 formatted for substituion)
         '''
-        super(SaveLine, self).__init__(ue, uh)
+        super().__init__(ue, uh)
         self.insert_stmt = insert_stmt
 
     def eat(self, udl):