Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 591826f

Browse files
author
Dimitar Tasev
committed
Fixes pylint errors
1 parent 41b2de3 commit 591826f

File tree

1 file changed

+7
-1
lines changed
  • WebApp/autoreduce_webapp/autoreduce_webapp

1 file changed

+7
-1
lines changed

WebApp/autoreduce_webapp/autoreduce_webapp/urls.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@
2121

2222

2323
class NegativeIntConverter:
24-
regex = '-?\d+'
24+
regex = r'-?\d+'
2525

2626
def to_python(self, value):
27+
"""
28+
Return the value as a Python object
29+
"""
2730
return int(value)
2831

2932
def to_url(self, value):
33+
"""
34+
Return the value as a URL string
35+
"""
3036
return '%d' % value
3137

3238

0 commit comments

Comments
 (0)