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

index aad431b2d2ebca18defb41e8fc1ef59861435c90..bf462f58db7a5a7604e9a882a2cb4a284536ef1a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2020 The Meme Factory, Inc.  http://www.karlpinc.com/
+# Copyright (C) 2020, 2024 The Meme Factory, Inc.  http://www.karlpinc.com/
 
 # This file is part of PGWUI_Upload.
 #
@@ -27,34 +27,34 @@ from pgwui_core import exceptions as core_ex
 class NoTableError(core_ex.SetupError):
     '''No table uploaded'''
     def __init__(self, e, descr='', detail=''):
-        super(NoTableError, self).__init__(e, descr, detail)
+        super().__init__(e, descr, detail)
 
 
 class BadTableError(core_ex.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(core_ex.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)
index b25ed5339ca2861fce7c7ed0bdab4e1c6dedb1ac..626ff383396d7579608f091612827d7e6b779fd0 100644 (file)
@@ -73,7 +73,7 @@ class SaveLine(DataLineProcessor):
         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):