From be760fc708f0e26bcb5010340f78058034882cb6 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Mon, 10 Aug 2009 11:37:46 -0500 Subject: [PATCH] Fix some python 2.5 errors. --- README | 1 + tweepy/binder.py | 4 ++-- tweepy/cache.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index 6b28470..8a4a4e0 100644 --- a/README +++ b/README @@ -22,6 +22,7 @@ Getting started: Author: Joshua Roesslein License: MIT Dependencies: + Python 2.5+ Simplejson **Included in python 2.6+ Python-OAuth diff --git a/tweepy/binder.py b/tweepy/binder.py index 1eb78bf..028324b 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -67,9 +67,9 @@ def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False, # Open connection if api.secure: - conn = httplib.HTTPSConnection(_host, timeout=10) + conn = httplib.HTTPSConnection(_host) else: - conn = httplib.HTTPConnection(_host, timeout=10) + conn = httplib.HTTPConnection(_host) # Build request conn.request(method, url, headers=headers) diff --git a/tweepy/cache.py b/tweepy/cache.py index 98e821a..e7f9e05 100644 --- a/tweepy/cache.py +++ b/tweepy/cache.py @@ -2,6 +2,8 @@ # Copyright 2009 Joshua Roesslein # See LICENSE +from __future__ import with_statement + import time import threading import os -- 2.25.1