diff options
| author | 2024-04-23 00:37:58 -0400 | |
|---|---|---|
| committer | 2024-04-23 00:37:58 -0400 | |
| commit | 9b0e86a8e74768c4fe848fb5ce8d754292db4e3e (patch) | |
| tree | cfd424be8ecb68357e6e572033f08bc534bf724f /nikola/utils.py | |
| parent | 393aa58f2c5afd51f92fd9bd4b6dfd0dc90cea41 (diff) | |
New upstream version 8.3.0.upstream/8.3.0upstream
Diffstat (limited to 'nikola/utils.py')
| -rw-r--r-- | nikola/utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nikola/utils.py b/nikola/utils.py index 7157afb..20e3552 100644 --- a/nikola/utils.py +++ b/nikola/utils.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright © 2012-2022 Roberto Alsina and others. +# Copyright © 2012-2024 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated @@ -669,11 +669,9 @@ def html_tostring_fragment(document): for start in start_fragments: if doc.startswith(start): doc = doc[len(start):].strip() - print(repr(doc)) for end in end_fragments: if doc.endswith(end): doc = doc[:-len(end)].strip() - print(repr(doc)) return doc @@ -731,7 +729,7 @@ def load_messages(themes, translations, default_lang, themes_dirs): del translation except ImportError as orig: last_exception = orig - del(english) + del english sys.path = oldpath if not all(found.values()): |
