summaryrefslogtreecommitdiff
path: root/pelican/tests/test_plugins.py
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2020-04-26 09:55:08 +0200
committerJustin Mayer <entroP@gmail.com>2020-04-27 09:45:31 +0200
commitd43b786b300358e8a4cbae4afc4052199a7af762 (patch)
tree8c2231297301b1eb307e3c132ca4710cacd5eef0 /pelican/tests/test_plugins.py
parent2cd1d44576ecc4fd0cc532cbb19c2b934ab5c665 (diff)
downloadpelican-remove-legacy.tar.gz
Modernize code base to Python 3+ syntaxremove-legacy
Replaces syntax that was relevant in earlier Python versions but that now has modernized equivalents.
Diffstat (limited to 'pelican/tests/test_plugins.py')
-rw-r--r--pelican/tests/test_plugins.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pelican/tests/test_plugins.py b/pelican/tests/test_plugins.py
index 4f62c4a5..730aa6d5 100644
--- a/pelican/tests/test_plugins.py
+++ b/pelican/tests/test_plugins.py
@@ -1,6 +1,3 @@
-# -*- coding: utf-8 -*-
-from __future__ import print_function, unicode_literals
-
import os
from contextlib import contextmanager
@@ -84,9 +81,9 @@ class PluginTest(unittest.TestCase):
def test_load_plugins(self):
def get_plugin_names(plugins):
- return set(
+ return {
plugin.NAME if hasattr(plugin, 'NAME') else plugin.__name__
- for plugin in plugins)
+ for plugin in plugins}
# existing namespace plugins
existing_ns_plugins = load_plugins({})