Skip to content

Commit 0b28c21

Browse files
committed
style: Lint files with pylint
1 parent 02eac0c commit 0b28c21

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

codeforces/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
CODEFORCES_API_URL = "https://codeforces.com/api/"
1717

1818

19-
def generate_api_sig(method, args, secret):
19+
def _generate_api_sig(method, args, secret):
2020
rand = "%06d" % random.randint(0, 999999)
2121
url_args = urllib.parse.urlencode(sorted(args.items()))
2222
return rand + hashlib.sha512(
@@ -51,7 +51,7 @@ def call(method, key=None, secret=None, **kwargs):
5151
if (key is not None) and (secret is not None):
5252
args['time'] = int(time.time())
5353
args['apiKey'] = key
54-
args['apiSig'] = generate_api_sig(method, args, secret)
54+
args['apiSig'] = _generate_api_sig(method, args, secret)
5555

5656
url_args = urllib.parse.urlencode(args)
5757
url = os.path.join(CODEFORCES_API_URL, "%s?%s" % (method, url_args))

codeforces/problem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def get_info(contest_id, index, lang='en'):
4949
time_limit = soup.find_all("div", class_="time-limit")[0].text[19:]
5050
memory_limit = soup.find_all("div", class_="memory-limit")[0].text[21:]
5151

52-
i = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="input")]
53-
o = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="output")]
52+
inputs = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="input")]
53+
outputs = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="output")]
5454

55-
sample_tests = zip(i, o)
55+
sample_tests = zip(inputs, outputs)
5656

5757
return (title, time_limit, memory_limit, sample_tests)

0 commit comments

Comments
 (0)