1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-15 06:03:38 +01:00

Removed prints and extract function from init module

This commit is contained in:
2020-07-13 21:38:06 +02:00
parent 025878dfe5
commit 4216fef20e
20 changed files with 97 additions and 336 deletions

View File

@@ -5,7 +5,6 @@ Created on 23 Sep 2010
"""
import re, string, traceback, numbers
from ebook_converter import prints
from ebook_converter.constants_old import DEBUG
from ebook_converter.utils.formatter_functions import formatter_functions
@@ -373,7 +372,7 @@ class TemplateFormatter(string.Formatter):
if DEBUG: # and getattr(e, 'is_locking_error', False):
traceback.print_exc()
if column_name:
prints('Error evaluating column named:', column_name)
print('Error evaluating column named: {column_name}')
ans = error_value + ' ' + str(e)
return ans