Skip to content
Snippets Groups Projects
Commit 9fa1ad9d authored by auscompgeek's avatar auscompgeek Committed by Svetlana Tkachenko
Browse files

PEP8 E251: whitespace around kwarg/param '='


Signed-off-by: default avatarGryllida A <Gryllida@GMAIL.com>
parent 2ca0b442
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def plugin(cls):
#return cls, since decorators must return the "new" type
return cls
def refresh(pluginName = None):
def refresh(pluginName=None):
"""
Refreshes the list of module/class pairs, and plugin/class pairs.
......
......@@ -96,7 +96,7 @@ class Info(object):
else: # tell the user in private that there is no such factoid (in-channel is annoying)
self.server.doNotice(nick, "I don't know what " + key + " is.")
def handle_command(self, channel, user, cmd, args, info_silent = False):
def handle_command(self, channel, user, cmd, args, info_silent=False):
def learn():
if len(args) < 1:
......
......@@ -100,7 +100,7 @@ class Rss(object):
url = row[3]
last_known_id = row[0]
bool_updated = 0
request = urllib.request.Request(url, headers = {'user-agent': 'guppy ' + self.server.config["version"]})
request = urllib.request.Request(url, headers={'user-agent': 'guppy ' + self.server.config["version"]})
s = urllib.request.urlopen(request)
s = s.read()
root = ET.fromstring(s)
......
......@@ -26,7 +26,7 @@ class Urltitle(object):
def _get_title(self, url):
try:
request = urllib.request.Request(url, headers = {'user-agent': 'guppy ' + self.server.config["version"]})
request = urllib.request.Request(url, headers={'user-agent': 'guppy ' + self.server.config["version"]})
s = urllib.request.urlopen(request)
return url + " - " + s.read().decode('utf-8', 'replace').split("<title>")[1].split("</title>")[0]
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment