Skip to content

Commit

Permalink
Restore Python 2.5 compatibility by importing with_statement
Browse files Browse the repository at this point in the history
The `setup.py` script and some of the unit tests use `with` statements.
This breaks installation and unit tests on Python 2.5; Python 2.5
support is still advertised in the `classifiers`.
  • Loading branch information
lpsinger committed Mar 14, 2014
1 parent 26f6707 commit 987b56c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import with_statement
import sys
from setuptools import setup, find_packages

Expand Down
1 change: 1 addition & 0 deletions tests/test_phone_numbers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import with_statement
import json
import unittest

Expand Down
1 change: 1 addition & 0 deletions tests/test_rest.py.inactive
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import with_statement
import json
import os
import unittest
Expand Down
1 change: 1 addition & 0 deletions tests/test_twiml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
import unittest
import xml.etree.ElementTree as ET

Expand Down

0 comments on commit 987b56c

Please sign in to comment.