From be6a0ec164309c102768970ef988c437c6a0afa6 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 12 Sep 2024 11:48:53 -0700 Subject: [PATCH] python3 --- hyde/publisher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyde/publisher.py b/hyde/publisher.py index 9d082be..1143e9a 100644 --- a/hyde/publisher.py +++ b/hyde/publisher.py @@ -45,7 +45,7 @@ class Publisher(with_metaclass(abc.ABCMeta)): if not settings: # Find the first configured publisher try: - publisher = site.config.publisher.__dict__.iterkeys().next() + publisher = next(iter(site.config.publisher.__dict__.keys())) logger.warning( "No default publisher configured. Using: %s" % publisher) settings = attrgetter("publisher.%s" % publisher)(site.config)