Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
guppy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
msemper
guppy
Commits
9fa1ad9d
Commit
9fa1ad9d
authored
11 years ago
by
auscompgeek
Committed by
Svetlana Tkachenko
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
PEP8 E251: whitespace around kwarg/param '='
Signed-off-by:
Gryllida A
<
Gryllida@GMAIL.com
>
parent
2ca0b442
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
plugins/__init__.py
+1
-1
1 addition, 1 deletion
plugins/__init__.py
plugins/info.py
+1
-1
1 addition, 1 deletion
plugins/info.py
plugins/rss.py
+1
-1
1 addition, 1 deletion
plugins/rss.py
plugins/urltitle.py
+1
-1
1 addition, 1 deletion
plugins/urltitle.py
with
4 additions
and
4 deletions
plugins/__init__.py
+
1
−
1
View file @
9fa1ad9d
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
plugins/info.py
+
1
−
1
View file @
9fa1ad9d
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
plugins/rss.py
+
1
−
1
View file @
9fa1ad9d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
plugins/urltitle.py
+
1
−
1
View file @
9fa1ad9d
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment