Skip to content

Commit 2adbdec

Browse files
committed
Update docstring format
1 parent 9c803b1 commit 2adbdec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/newegg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"""
1212

1313
import json
14-
import requests
1514
import re
1615

16+
import requests
17+
1718
from cloudbot import hook
1819
from cloudbot.util import formatting, web
1920

20-
2121
# CONSTANTS
2222

2323
ITEM_URL = "https://www.newegg.com/Product/Product.aspx?Item={}"
@@ -94,7 +94,7 @@ def newegg_url(match):
9494

9595
@hook.command()
9696
def newegg(text):
97-
"""newegg <item name> - searches newegg.com for <item name>"""
97+
"""<item name> - searches newegg.com for <item name>"""
9898

9999
# form the search request
100100
request = {
@@ -122,7 +122,7 @@ def newegg(text):
122122
r = request.json()
123123

124124
if r.get("Description", False):
125-
return "Newegg Error: {Description} (\x02{Code}\x02)". format(**r)
125+
return "Newegg Error: {Description} (\x02{Code}\x02)".format(**r)
126126

127127
# get the first result
128128
if r["ProductListItems"]:

0 commit comments

Comments
 (0)