Fix flake8 blank line errors
authorKarl O. Pinc <kop@meme.com>
Thu, 25 Oct 2018 14:04:06 +0000 (09:04 -0500)
committerKarl O. Pinc <kop@meme.com>
Thu, 25 Oct 2018 14:04:06 +0000 (09:04 -0500)
src/pgwui_upload/views/upload.py

index 2c6526a0f8ca25d294afd12f5eb702f3adc7bc97..c160d120804952e2003ba4fc8a20b3754fd66644 100644 (file)
@@ -52,31 +52,37 @@ from pgwui_core.core import (
 
 log = logging.getLogger(__name__)
 
+
 class NoTableError(Error):
     '''No table uploaded'''
     def __init__(self, e, descr='', detail=''):
         super(NoTableError, self).__init__(e, descr, detail)
 
+
 class BadTableError(Error):
     '''Supplied name does not work for a table or view'''
     def __init__(self, e, descr='', detail=''):
         super(BadTableError, self).__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)
 
+
 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)
 
+
 class CannotInsertError(BadTableError):
     '''Cannot insert into the supplied table or view'''
     def __init__(self, e, descr='', detail=''):
         super(CannotInsertError, self).__init__(e, descr, detail)
 
+
 class BadHeadersError(Error):
     '''The headers in the uploaded file are bad.'''
     def __init__(self, e, descr='', detail=''):
@@ -145,7 +151,7 @@ class TableUploadHandler(TabularFileUploadHandler):
             errors.append(NoTableError('No table or view name supplied'))
 
         self.double_validator(errors)
-        
+
         return errors
 
     def write(self, result, errors):
@@ -239,7 +245,7 @@ class TableUploadHandler(TabularFileUploadHandler):
                 insert_stmt += col_sep + col_name
                 value_string += col_sep + '%s'
                 col_sep = ', '
-                
+
         if bad_cols:
             detail = (('<p>The following columns are not in the ({0})'
                        ' table or you do not have permission to access'