summaryrefslogtreecommitdiff
path: root/creole/shared/base_emitter.py
diff options
context:
space:
mode:
authorJens Diemer <github.com@jensdiemer.de>2020-02-07 15:20:53 +0100
committerGitHub <noreply@github.com>2020-02-07 15:20:53 +0100
commit00cbba43f0fcc8648bc1d2bb461647741f00bc4a (patch)
tree621c49dcc3501b3fff2e96708042c2ab788a832b /creole/shared/base_emitter.py
parent68db4925bfc29c5dfd7ae33c7fe25fe83fb055d4 (diff)
parent784a4d82909d83f31fd13d31120eca6c274e1b60 (diff)
downloadcreole-1.4.4.tar.gz
Merge pull request #46 from jedie/code-updatesv1.4.4
Code updates
Diffstat (limited to 'creole/shared/base_emitter.py')
-rw-r--r--creole/shared/base_emitter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/creole/shared/base_emitter.py b/creole/shared/base_emitter.py
index d0c98f1..a6e2819 100644
--- a/creole/shared/base_emitter.py
+++ b/creole/shared/base_emitter.py
@@ -1,4 +1,3 @@
-
"""
Base document tree emitter
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -15,7 +14,7 @@ from creole.shared.markup_table import MarkupTable
from creole.shared.unknown_tags import transparent_unknown_nodes
-class BaseEmitter(object):
+class BaseEmitter:
"""
Build from a document_tree (html2creole.parser.HtmlParser instance) a
creole markup text.
@@ -236,4 +235,4 @@ class BaseEmitter(object):
def debug_msg(self, method, txt):
if not self.debugging:
return
- print("%13s: %s" % (method, txt))
+ print(f"{method:>13}: {txt}")