8000 Fix flake8 issues and drop py33 · pythonthings/github3.py@c50d926 · GitHub
[go: up one dir, main page]

Skip to content

Commit c50d926

Browse files
committed
Fix flake8 issues and drop py33
Ran into these in an unrelated PR. Don't have a bare except Don't use single char variables Drop py33 testing, that release is no longer supported by pytest and they are EOL upstream as well. ( pytest-dev/pytest#2812 ) Signed-off-by: Jesse Keating <jkeating@j2solutions.net>
1 parent c82e90e commit c50d926

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ matrix:
1717
include:
1818
- python: 2.7
1919
env: TOXENV=py27 REQUESTS_VERSION="===2.0.1"
20-
- python: 3.3
21-
env: TOXENV=py33 REQUESTS_VERSION="===2.0.1"
2220
- python: 3.4
2321
env: TOXENV=py34 REQUESTS_VERSION="===2.0.1"
2422
- python: 3.5
@@ -27,8 +25,6 @@ matrix:
2725
env: TOXENV=pypy REQUESTS_VERSION="===2.0.1"
2826
- python: 2.7
2927
env: TOXENV=py27 REQUESTS_VERSION=""
30-
- python: 3.3
31-
env: TOXENV=py33 REQUESTS_VERSION=""
3228
- python: 3.4
3329
env: TOXENV=py34 REQUESTS_VERSION=""
3430
- python: 3.5

appveyor.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ environment:
88
TOXENV: py27
99
- PYTHON: "C:\\Python27-x64"
1010
TOXENV: py27
11-
- PYTHON: "C:\\Python33"
12-
TOXENV: py33
13-
- PYTHON: "C:\\Python33-x64"
14-
TOXENV: py33
1511
- PYTHON: "C:\\Python34"
1612
TOXENV: py34
1713
- PYTHON: "C:\\Python34-x64"

github3/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, resp):
1818
#: List of errors provided by GitHub
1919
if error.get('errors'):
2020
self.errors = error.get('errors')
21-
except: # Amazon S3 error
21+
except Exception: # Amazon S3 error
2222
self.msg = resp.content or '[No message]'
2323

2424
def __repr__(self):

tests/integration/test_github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ def test_gitignore_templates(self):
216216
"""Test the ability to retrieve a list of gitignore templates."""
217217
cassette_name = self.cassette_name('gitignore_templates')
218218
with self.recorder.use_cassette(cassette_name):
219-
l = self.gh.gitignore_templates()
219+
thelist = self.gh.gitignore_templates()
220220

221-
assert l != []
222-
assert isinstance(l, list)
221+
assert thelist != []
222+
assert isinstance(thelist, list)
223223

224224
def test_is_following(self):
225225
"""Test the ability to check if a user is being followed."""

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,33,34,35,py},py{27,34}-flake8,docstrings
2+
envlist = py{27,34,35,py},py{27,34}-flake8,docstrings
33
minversion = 2.5.0
44

55
[testenv]

0 commit comments

Comments
 (0)
0