summaryrefslogtreecommitdiff
path: root/creole/shared/document_tree.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/document_tree.py
parent68db4925bfc29c5dfd7ae33c7fe25fe83fb055d4 (diff)
parent784a4d82909d83f31fd13d31120eca6c274e1b60 (diff)
downloadcreole-00cbba43f0fcc8648bc1d2bb461647741f00bc4a.tar.gz
Merge pull request #46 from jedie/code-updatesv1.4.4
Code updates
Diffstat (limited to 'creole/shared/document_tree.py')
-rw-r--r--creole/shared/document_tree.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/creole/shared/document_tree.py b/creole/shared/document_tree.py
index 20c6a44..fdcc863 100644
--- a/creole/shared/document_tree.py
+++ b/creole/shared/document_tree.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# coding: utf-8
+
"""
python-creole
@@ -83,13 +82,13 @@ class DocNode:
continue
if callable(getattr(self, i)):
continue
- print("%20s: %r" % (i, getattr(self, i, "---")))
+ print(f"{i:>20}: {getattr(self, i, '---')!r}")
class DebugList(list):
def __init__(self, html2creole):
self.html2creole = html2creole
- super(DebugList, self).__init__()
+ super().__init__()
def append(self, item):
# for stack_frame in inspect.stack(): print(stack_frame)