Skip to content

Commit 2c7a33c

Browse files
committed
Enable Python 2.6 support
1 parent 5b34e8a commit 2c7a33c

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: python
22
sudo: false
33
python:
4+
- '2.6'
45
- '2.7'
56
- '3.3'
67
- '3.4'

dotenv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import os
44
import warnings
5-
from collections import OrderedDict
5+
try:
6+
from collections import OrderedDict
7+
except ImportError:
8+
from ordereddict import OrderedDict
69

710
import click
811

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
py_modules=['dotenv'],
1616
install_requires=[
1717
'click>=5.0',
18+
'ordereddict'
1819
],
1920
entry_points='''
2021
[console_scripts]

0 commit comments

Comments
 (0)