Skip to content

Commit 7355a5e

Browse files
committed
Pin pylint version & fix linting error
1 parent 3cac5af commit 7355a5e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ python:
55
install:
66
- pip install -Ur requirements.txt
77
- pip install -Ur dev_requirements.txt
8-
- pip install codecov
98
script:
109
- python -m pylint ./pusher_push_notifications/*.py
1110
- python -m nose -s --with-coverage

dev_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nose==1.3.7
2-
pylint
2+
pylint==1.9.4
33
requests-mock==1.5.2
44
collective.checkdocs==0.2
5+
codecov==2.0.15

pusher_push_notifications/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def _handle_http_error(response_body, status_code):
5757
)
5858
if status_code == 401:
5959
raise PusherAuthError(error_string)
60-
elif status_code == 404:
60+
if status_code == 404:
6161
raise PusherMissingInstanceError(error_string)
62-
elif 400 <= status_code < 500:
62+
if 400 <= status_code < 500:
6363
raise PusherValidationError(error_string)
64-
elif 500 <= status_code < 600:
64+
if 500 <= status_code < 600:
6565
raise PusherServerError(error_string)
6666

6767

0 commit comments

Comments
 (0)