Close file after uploading
authorKarl O. Pinc <kop@karlpinc.com>
Wed, 13 Jan 2021 22:50:32 +0000 (16:50 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Wed, 13 Jan 2021 22:50:32 +0000 (16:50 -0600)
src/pgwui_core/core.py

index fca5958ce9eb7dc82d5302abbdd6b4007bc0990f..6779c76bcfd96d352165f2ac4a819a19de7c81ff 100644 (file)
@@ -962,6 +962,7 @@ class UploadData(DBData):
                                          self.lineno,
                                          self._parser,
                                          self._mapper)
+        self.close_fileo()
 
     def _extend(self, line, seq):
         '''Give the list as many elements as there are in the header.