Skip to content

Commit 17c3df1

Browse files
committedJun 13, 2017
super() does not need self in method call
1 parent e7c01e8 commit 17c3df1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎nikola/plugins/command/serve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def log_message(self, *args):
191191
if self.quiet:
192192
return
193193
else:
194-
return super().log_message(self, *args)
194+
return super().log_message(*args)
195195

196196
# NOTICE: this is a patched version of send_head() to disable all sorts of
197197
# caching. `nikola serve` is a development server, hence caching should

‎nikola/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ def publish(self, handler):
12911291
"""Publish a feed."""
12921292
if self.xsl_stylesheet_href:
12931293
handler.processingInstruction("xml-stylesheet", 'type="text/xsl" href="{0}" media="all"'.format(self.xsl_stylesheet_href))
1294-
super().publish(self, handler)
1294+
super().publish(handler)
12951295

12961296
def publish_extensions(self, handler):
12971297
"""Publish extensions."""
@@ -1894,7 +1894,7 @@ def load_data(path):
18941894
import html # Python 3.4 and newer
18951895
html_unescape = html.unescape
18961896
except (AttributeError, ImportError):
1897-
from html.parser import HTMLParser # Python 3 (up to 3.4)
1897+
from html.parser import HTMLParser # Python 3.4 and older
18981898

18991899
def html_unescape(s):
19001900
"""Convert all named and numeric character references in the string s to the corresponding unicode characters."""

0 commit comments

Comments
 (0)
Please sign in to comment.