8000 Restore Python 2.5 compatibility by importing with_statement · randy3465/twilio-python@987b56c · GitHub
[go: up one dir, main page]

Skip to content

Commit 987b56c

Browse files
committed
Restore Python 2.5 compatibility by importing with_statement
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`.
1 parent 26f6707 commit 987b56c

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import with_statement
12
import sys
23
from setuptools import setup, find_packages
34

tests/test_phone_numbers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import with_statement
12
import json
23
import unittest
34

tests/test_rest.py.inactive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import with_statement
12
import json
23
import os
34
import unittest

tests/test_twiml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import with_statement
23
import unittest
34
import xml.etree.ElementTree as ET
45

0 commit comments

Comments
 (0)
0