Skip to content

Commit 95727e2

Browse files
authored
Merge pull request #158 from hugovk/rm-2
Drop support for Python 2.7
2 parents fd70da8 + 1112c87 commit 95727e2

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ language: python
33
sudo: false
44

55
python:
6-
- 2.7
76
- 3.6
87
- 3.5
98
- 3.4
109
- pypy3
11-
- pypy
1210

1311
# whitelist
1412
# gh-pages is otherwise ignored by Travis CI

scripts/gpo_member_photos.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,16 @@
44
Scrape https://memberguide.gpo.gov and
55
save members' photos named after their Bioguide IDs.
66
"""
7-
from __future__ import print_function, unicode_literals
87
import argparse
98
import datetime
9+
import json
1010
import os
1111
import re
1212
import sys
13-
import json
1413
import time
15-
try:
16-
# Python 3
17-
from urllib.error import HTTPError
18-
from urllib.parse import urlencode
19-
from urllib.request import urlretrieve
20-
except ImportError:
21-
# Python 2
22-
from urllib import urlretrieve
23-
from urllib2 import HTTPError
24-
from urllib import urlencode
14+
from urllib.error import HTTPError
15+
from urllib.parse import urlencode
16+
from urllib.request import urlretrieve
2517

2618
# pip install -r requirements.txt
2719
import mechanicalsoup

scripts/missing.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44
Find missing images.
55
"""
6-
from __future__ import print_function
76
import os
87

98
# pip install -r requirements.txt

0 commit comments

Comments
 (0)