"""
__version__ = '1.0'
-from models import *
-from error import TweepError
-from api import API
-from cache import *
-from auth import BasicAuthHandler, OAuthHandler
-from streaming import Stream
+from . models import *
+from . error import TweepError
+from . api import API
+from . cache import *
+from . auth import BasicAuthHandler, OAuthHandler
+from . streaming import Stream
# Global, unauthenticated instance of API
api = API()
# Copyright 2009 Joshua Roesslein
# See LICENSE
-from binder import bind_api
-from parsers import *
-from error import TweepError
+from . binder import bind_api
+from . parsers import *
+from . error import TweepError
"""Twitter API"""
class API(object):
from urllib import quote
import base64
-import oauth
-from error import TweepError
+from . import oauth
+from . error import TweepError
class AuthHandler(object):
import httplib
import urllib
-from parsers import parse_error
-from error import TweepError
+from . parsers import parse_error
+from . error import TweepError
def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False,
timeout=None, host=None):
# Copyright 2009 Joshua Roesslein
# See LICENSE
-from __future__ import with_statement
+from __future__ import with_statement # need this for py2.5
import time
import threading
import fcntl
import cPickle as pickle
-from error import TweepError
+from . error import TweepError
"""Cache interface"""
class Cache(object):
# Copyright 2009 Joshua Roesslein
# See LICENSE
-from error import TweepError
+from . error import TweepError
class Model(object):
from datetime import datetime
-from models import models
+from . models import models
try:
import json