Skip to content
Browse files

super() does not need self in method call

  • Loading branch information
Kwpolska committed Jun 13, 2017
1 parent e7c01e8 commit 17c3df1fb571a561e309adec414cac102d709dcb
Showing with 3 additions and 3 deletions.
  1. +1 −1 nikola/plugins/command/
  2. +2 −2 nikola/
@@ -191,7 +191,7 @@ def log_message(self, *args):
if self.quiet:
return super().log_message(self, *args)
return super().log_message(*args)

# NOTICE: this is a patched version of send_head() to disable all sorts of
# caching. `nikola serve` is a development server, hence caching should
@@ -1291,7 +1291,7 @@ def publish(self, handler):
"""Publish a feed."""
if self.xsl_stylesheet_href:
handler.processingInstruction("xml-stylesheet", 'type="text/xsl" href="{0}" media="all"'.format(self.xsl_stylesheet_href))
super().publish(self, handler)

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

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

0 comments on commit 17c3df1

Please sign in to comment.
You can’t perform that action at this time.