Change suppress_warnings to verbose

This commit is contained in:
Vinayak Mehta
2018-12-12 09:58:34 +05:30
parent 50780e24f8
commit e50f9c8847
8 changed files with 23 additions and 18 deletions
+3 -2
View File
@@ -345,9 +345,10 @@ class Lattice(BaseParser):
return table
def extract_tables(self, filename):
def extract_tables(self, filename, verbose=True):
self._generate_layout(filename)
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
if verbose:
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
if not self.horizontal_text:
warnings.warn("No tables found on {}".format(
+3 -2
View File
@@ -384,9 +384,10 @@ class Stream(BaseParser):
return table
def extract_tables(self, filename):
def extract_tables(self, filename, verbose=True):
self._generate_layout(filename)
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
if verbose:
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
if not self.horizontal_text:
warnings.warn("No tables found on {}".format(