Skip to content

Commit ce94979

Browse files
committed
Restore Python 2.6 compatibility (for now)
1 parent 97c1714 commit ce94979

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ install:
44
- PIP_USE_MIRRORS=true PIP_DOWNLOAD_CACHE=~/.cache/pip pip install tox
55

66
script:
7-
- PIP_USE_MIRRORS=true PIP_DOWNLOAD_CACHE=~/.cache/pip tox -e py33,py32,py27,pypy
7+
- PIP_USE_MIRRORS=true PIP_DOWNLOAD_CACHE=~/.cache/pip tox
88

rfc6266.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
import sys
2525

2626
LOGGER = logging.getLogger('rfc6266')
27-
LOGGER.addHandler(logging.NullHandler)
27+
try:
28+
LOGGER.addHandler(logging.NullHandler)
29+
except AttributeError:
30+
pass
2831

2932
__all__ = (
3033
'ContentDisposition',

0 commit comments

Comments
 (0)