Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 2.7 #158

Merged
merged 1 commit into from
Jul 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ language: python
sudo: false

python:
- 2.7
- 3.6
- 3.5
- 3.4
- pypy3
- pypy

# whitelist
# gh-pages is otherwise ignored by Travis CI
Expand Down
16 changes: 4 additions & 12 deletions scripts/gpo_member_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@
Scrape https://memberguide.gpo.gov and
save members' photos named after their Bioguide IDs.
"""
from __future__ import print_function, unicode_literals
import argparse
import datetime
import json
import os
import re
import sys
import json
import time
try:
# Python 3
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlretrieve
except ImportError:
# Python 2
from urllib import urlretrieve
from urllib2 import HTTPError
from urllib import urlencode
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlretrieve

# pip install -r requirements.txt
import mechanicalsoup
Expand Down
1 change: 0 additions & 1 deletion scripts/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
Find missing images.
"""
from __future__ import print_function
import os

# pip install -r requirements.txt
Expand Down