summaryrefslogtreecommitdiff
path: root/bs4/formatter.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-03-24 09:44:12 -0400
committerLeonard Richardson <leonardr@segfault.org>2023-03-24 09:44:12 -0400
commit5003f474b26505c9bfc6c44d1f78af76ff8f2634 (patch)
treebf2cfcad8fed19425339d76a2a3978e416d8d37a /bs4/formatter.py
parenta342497cb81f01384d61e467daf91540369d4fc3 (diff)
Using a format string is very slightly slower than just adding all the bits of the string together.
Diffstat (limited to 'bs4/formatter.py')
-rw-r--r--bs4/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/formatter.py b/bs4/formatter.py
index 83cc1c5..c821318 100644
--- a/bs4/formatter.py
+++ b/bs4/formatter.py
@@ -97,7 +97,7 @@ class Formatter(EntitySubstitution):
else:
indent = ' '
self.indent = indent
-
+
def substitute(self, ns):
"""Process a string that needs to undergo entity substitution.
This may be a string encountered in an attribute value or as