summaryrefslogtreecommitdiff
path: root/creole/shared/document_tree.py
diff options
context:
space:
mode:
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)